
答案1
使用等寬字體,將小寫和大寫字母設定為相同的寬度:
\documentclass{article}
\begin{document}
\noindent
{\ttfamily
a b c d e \\
E D C B A
}
\end{document}
或者,使用 排列字母tabular
:
\documentclass{article}
\begin{document}
\noindent
{\ttfamily\begin{tabular}{ *{5}{c} }
a & b & c & d & e \\
E & D & C & B & A
\end{tabular}}
\end{document}
後者方法適用於非等寬字體,您可以調整\tabcolsep
以適當地間距字母。