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

When using \label and \ref, can I get the \ref to display as a letter instead of a number (so if \ref is 3, it will print c instead)?

share|improve this question
It's quite unclear what you want: if the item to which you are referring is numbered 3, then the reference should show that number. – egreg Feb 10 '12 at 0:02
up vote 6 down vote accepted

The default counter representation is \arabic (or numerical). If you want a counter to be referenced alphabetically rather than numberically, then you can redefine the representation using


\the<counter> refers to the representation of the counter. So you're essentially redefining it from being displayed as \arabic to \alph.

If you don't care about what is displayed and how it's referenced, then the following will work:

enter image description here

\usepackage{fmtcount}% http://ctan.org/pkg/fmtcount
\section{This is a section}\label{ref:section}
This is section~\ref{ref:section}. This is section~\aaalphnum{\ref{ref:section}}.

The fmtcount package can easily be used to convert between different number formats.

share|improve this answer
I was wondering if there were a way to do this other than to counter names. – Ryan Reich Feb 10 '12 at 0:11

Any counter can be printed alphabetically using the command \alph{counter}. You can make that work with \label and \ref by redefining the counter you are referencing to print things that way. For example, to refer to sections by letter, write:

 \section{A section}
 \label{s:a section}

 In section \ref{s:a section}\dots

Of course, all your sections will be "lettered" rather than numbered; however, it is very confusing to refer to a numbered item by letter, so this is probably what you should do anyway if you want references to print letters.

share|improve this answer

Your Answer


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.