PhilTeX Forums » Using LaTeX » Text formatting and commands
enumerated lists with greek letters
(3 posts)-
I like TeX's ability to structure nested enumerated lists very much, and the ability to customise their labelling is really helpful. Is there a way to get it to use greek letters for enumerated lists? In particular, I'd like the fourth-level of nested lists to be lower-case greek letters. I'd like it to look like the output that this produces (although, obviously, it would be better if it could automatically 'count' in greek letters):
\documentclass{article}\begin{document}\begin{enumerate}\item first level\begin{enumerate}\item Second level\begin{enumerate}\item Third level\begin{enumerate}\item[$\alpha$.] fourth level\item[$\beta$.] another\item[$\gamma$.] and another\item[$\delta$.] yet more\end{enumerate}\end{enumerate}\end{enumerate}\end{enumerate}\end{document}Posted 1 year ago # -
Wow! Great -- thanks Seamus.
So, this seems to work:
\documentclass[11pt,a4paper]{article}\makeatletter \newcommand{\greek}[1]{% \expandafter\@greek\csname c@#1\endcsname } \newcommand{\@greek}[1]{% $\ifcase#1\or\alpha\or\beta\or\gamma\or\delta\or\varepsilon \or\zeta\or\eta\or\theta\or\iota\or\kappa\or\lambda \or\mu\or\nu\or\xi\or o\or\pi\or\varrho\or\sigma \or\tau\or\upsilon\or\phi\or\chi\or\psi\or\omega \else\@ctrerr\fi$ } \makeatother
\renewcommand{\theenumiv}{\greek{enumiv}}
\begin{document}
\begin{enumerate} \item first level
\begin{enumerate} \item Second level
\begin{enumerate} \item Third level
\begin{enumerate} \item fourth level \item another \item and another \item yet more \ldots
\end{enumerate} \end{enumerate} \end{enumerate} \end{enumerate} \end{document}
\end{thread}
Posted 1 year ago #
Reply
You must log in to post.