Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 20 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
add comment

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.