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.

2
  • 1
    Can you add some example code indicating what you're trying to do? Jan 8, 2016 at 23:51
  • @ArunDebray, thanks for your kind attention. I just updated my post.
    – Frank
    Jan 9, 2016 at 1:50

1 Answer 1

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .