Re: Q: changing etaremune to include a fixed prefix

Jagath AR <[email protected]>
Newsgroups gmane.comp.tex.tugindia
Message-ID <CANRay2BRrzFLCDHc1NBDDRe+Y1G=GqEQOAS8CM2_cyxhjfmAaA@mail.gmail.com>
On 31 July 2011 23:36, Shrisha Rao <[email protected]> wrote:

> Greetz.
>
> I am trying to create numbered lists where each number is prefixed by a
> character (e.g., C).  I figured out that the following macro emulates the
> enumerate environment:
>
> \newcounter{ccount}
> \newenvironment{cenumerate}%
> {\begin{list}{$\mathcal{C}${}{{(\arabic{ccount})}}}%
> {\usecounter{ccount}}%
> }%
> {\end{list}}
>
> Then one can just use \begin{cenumerate} ... \end{cenumerate} so that each
> \item is marked as C(1), C(2), etc., unlike the plain (1), (2), etc., of
> enumerate.  However, I am unable to get this to work in etaremune style
> (where the numbers are marked in decreasing rather than increasing order).
>  Most obvious modifications to etaremune.sty either break it completely or
> just produce C(1), C(1), ...
>
> Any suggestions appreciated.  Thanks in advance.
>
>

Hi,
Is this what you are looking for?
%%%%%%%%%%%%%%%%
\documentclass{article}

\usepackage{etaremune}

\makeatletter
\def\labelenumi{C(\theenumi)}
\def\labelenumii{C(\theenumii)}
\def\labelenumiii{C(\theenumiii)}
\def\labelenumiv{C(\theenumiv)}

\begin{document}

\begin{etaremune}
\item test
\begin{etaremune}
\item test
\begin{etaremune}
\item test
\begin{etaremune}
\item test
\item test
\end{etaremune}
\item test
\item test
\item test
\end{etaremune}
\item test
\end{etaremune}
\item test
\item test
\end{etaremune}
\end{document}
%%%%%%%%%%%%
-- 
Regards

Jagath AR
[email protected]
_______________________________________________
Home:        http://www.tug.org.in/
TeX FAQ:     http://www.tex.ac.uk/faq
unsubscribe: http://tug.org/mailman/listinfo/tugindia
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.