TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For instance, in Welsh the alphabet starts a, b, c, ch, d, dd, etc.

Is there a way to automatically alter the ordering of lists to match this?

share|improve this question
up vote 22 down vote accepted

You could define a command for this purpose. Use that command in defining the label. Here's an example:

\documentclass{article}
\makeatletter
\newcommand*\welsh[1]{%
  \ifcase#1\or a\or b\or c\or ch\or d\or dd\or ... \else\@ctrerr\fi}
\newcommand*\Welsh[1]{%
  \ifcase#1\or A\or B\or C\or ... \else\@ctrerr\fi}
\makeatother
\renewcommand*{\theenumi}{\welsh{\value{enumi}}}
\renewcommand*{\labelenumi}{(\theenumi)}
\begin{document}
\begin{enumerate}
\item One
\item Two
\item Three
\item Four
\item Five
\item Six
\end{enumerate}
\end{document}

Output:

alt text

share|improve this answer
    
That does the trick perfectly. Diolch yn fawr! – FordBuchanan Aug 11 '10 at 18:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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