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 am using the compactenum environment from the paralist package, and would like to know how I can typeset the counter.

What I mean is

\begin{compactenum}[a)]
\item I would like to typeset "a)" here.
\end{compactenum}

I was trying to read through the documentation but couldn't figure out which macro stores the counter.

Also, in this case, I don't want to build a reference, because I am only asking for the item label inside that item, i.e., when that counter is at that particular value.

share|improve this question

1 Answer 1

up vote 8 down vote accepted

Use \labelenumi (resp. \labelenumii, ..., \labelenumiv for nested environments).

\documentclass{article}

\usepackage{paralist}

\begin{document}

\begin{compactenum}[a)]
\item I would like to typeset ``\labelenumi'' here.
\end{compactenum}

\end{document}

enter image description here

share|improve this answer
    
Thanks lockstep. –  fg nu Jul 14 '12 at 8:39

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.