2

Similar to this question about enumerated items, how to do the same thing for the etaremune items?

Say, the default 'etaremune' output is:

  1. fourth
  2. third (I mean '3', not '5')
  3. second (I mean '2')
  4. first (I mean '1'). Somehow the formatting makes it '4.5.6.7'...

I am trying to add a 'star' in front of some (not all) of the entries (automatic item-counting), i.e.,

  1. fourth

*3. third

  1. second

*1. first

I have tried with the method given in the example of the enumerate environment, but the item-counting seems not working well.

Frank
  • 23

1 Answers1

1

Here are two ways -- unfortunately the enumitem package still does not support reversed enumerate lists, otherwise, this starred item would be very easy then with enumitem.

The first one checks whether the enumi counter has an odd value and uses \textasteriskcentered then (Note: odd, since the counter has not been increased at the stage of evaluation)

The other way uses a conditional \ifstarreditem and use it {\starreditemtrue \item foo} within a {...} pair, in order to limit the range of the setting of \starreditemtrue.

\documentclass{article}

\usepackage{etaremune}


\let\origlabelenumi\labelenumi % For latter purposes

\newif\ifstarreditem

\begin{document}

\renewcommand{\labelenumi}{\bfseries\ifodd\value{enumi}\textasteriskcentered\fi\theenumi.}

\begin{etaremune}
\item One
\item Two
\item Three
\item Four
\end{etaremune}

\renewcommand{\labelenumi}{\bfseries\ifstarreditem\textasteriskcentered\fi\theenumi.}

\starreditemfalse
\begin{etaremune}
\item One 
{\starreditemtrue \item Two}
\item Three
\item Four
\end{etaremune}

\end{document}

enter image description here

  • Thanks so much @Christian! This just works great! The if-condition way inside the {...} pair is quite nice! – Frank Jan 10 '16 at 01:33