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.

How can I get a list environment with numbers 1°, 2°, ...? LaTeX does not accept the symbol °.

share|improve this question

2 Answers 2

Try a customization by the enumitem package and the textcomp package.

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{enumitem}
\usepackage{textcomp}

\begin{document}
  \begin{enumerate}[label={\arabic*\textdegree}]
    \item First
    \item Second
  \end{enumerate}
\end{document}

Addendum: With the right input encoding you can also insert ° directly.

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{enumitem}
\usepackage{textcomp}

\begin{document}
  \begin{enumerate}[label={\arabic*°}]
    \item First
    \item Second
  \end{enumerate}
\end{document}
share|improve this answer
    
Although the output will likely pretty pretty similar, I think this is a cleaner version than using $^\circ$. –  doncherry Dec 21 '11 at 18:14
    
@doncherry: I first thought about using \circ like Werner did. But to me it looked a bit too big as superscript. And with the right input encoding it is even possible to insert ° directly (see my addendum). –  Thorsten Donig Dec 21 '11 at 18:35
    
@ThorstenDonig: Your addendum code does not compile in TeXShop with either XeLaTeX or LuaLaLaTeX engines selected. Am I missing something? –  Sony Dec 22 '11 at 14:33
    
@Sony: By "does not compile" do you mean there is an error? Or does it just not produce the desired output? You would need an editor that is UTF8-compatible in order to compile the addendum. –  Werner Dec 22 '11 at 15:21
    
@Werner: I set the encoding to unicode(utf-8) and recompiled it. Still does not work. I get the following error message. ./differentList.tex:8: String contains an invalid utf-8 sequence l.8 \begin{enumerate}[label={\arabic*…}] –  Sony Dec 22 '11 at 16:08

The easiest way to obtain this would be to specify your enumerate label as \arabic*$^\circ$ via the enumitem package:

enter image description here

\documentclass{article}
\usepackage{enumitem}% http://ctan.org/pkg/enumitem
\begin{document}
\begin{enumerate}[label=\arabic*$^\circ$]
  \item Here is an item
  \item Here is another item
  \item This is the last item
\end{enumerate}
\end{document}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

Other alignment options are also available, if needed. A similar output is obtained via the enumerate package's label specification 1$^\circ$:

\documentclass{article}
\usepackage{enumerate}% http://ctan.org/pkg/enumerate
\begin{document}
\begin{enumerate}[1$^\circ$]
  \item Here is an item
  \item Here is another item
  \item This is the last item
\end{enumerate}
\end{document}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
share|improve this answer

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.