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.

I'm using enumerate to create an outline that already exists. (As in, I'm copying an existing list, and I get no say in the numbers that are already picked.) My problem is that occasionally the outlines have a fractional value thrown in. One of the sections proceeds like: 1, 2, 2.5, 3.

I tried using \setcounter{enumi}{1.5} before where 2.5 goes, but LaTeX didn't like that at all. This works, but is a little clunky:

\setcounter{enumi}{1}
\renewcommand{\labelenumi}{(\theenumi.5)}
\item This is item number 2.5.
\setcounter{enumi}{2}
\renewcommand{\labelenumi}{(\theenumi)}

Is there a better way to have a decimal value?

share|improve this question
add comment

1 Answer

up vote 8 down vote accepted
\documentclass{article}
\begin{document}

\begin{enumerate}
 \item foo
 \item bar
 \item[(2.5)] foobar
 \item baz
\end{enumerate}

\end{document}
share|improve this answer
    
smack Yup, that did it. You can even format in there, so I could \item[(2.5)] like I need to. And it doesn't increment the enumi counter, which is nice. –  A. R. Diederich Dec 30 '10 at 20:54
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.