June 1, 2017

Inline Enumerations in LaTeX

Normally you use the \enumerate command in LaTeX to create enumerated lists like this:

  1. I
  2. use
  3. lots
  4. of
  5. space!

If you prefer your enumeration “inline”, you could do that:


  \ifcsname c@#1\endcsname



\inlineEnum{counter} Here is some text.
\inlineEnum{counter} Here is some more text.
\inlineEnum{counter} And another sentence!



Much better:

  1. Here is some text. 2) Here is some more text. 3) And another sentence!

© ho1ger 2015 - 2022