3

So I am writing an assignment for that requires me to list out a permutation of letters.

I currently have something like this

How do I make it so that each letter in the second row is directly below the letter in the first row?

4

Use a mono-spaced font which sets lower and upper case letters at the same width:

enter image description here

\documentclass{article}

\begin{document}

\noindent
{\ttfamily
  a b c d e \\
  E D C B A
}

\end{document}

Alternatively, arrange the letters using a tabular:

enter image description here

\documentclass{article}

\begin{document}

\noindent
{\ttfamily\begin{tabular}{ *{5}{c} }
  a & b & c & d & e \\
  E & D & C & B & A
\end{tabular}}

\end{document}

This latter approach works with non-mono-spaced fonts and you can adjust the \tabcolsep to space the letters appropriately.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.