I would like to list the keywords for my thesis on the format:

  1. First Keyword, 2. Second Keyword, 3. Third Keyword, ...

But not had to type the numeration manually, so the command would be like:

\mykeywodslist{First Keyword,  Second Keyword, Third Keyword}

Then calling the command:


Would print them like:

1. First Keyword, 2. Second Keyword, 3. Third Keyword
  • Why not simply write 1. First Keyword, 2. Second Keyword, 3. Third Keyword? – Joseph Aug 19 '17 at 2:49
  • Because you have to keep track of counting them, and when you add or remove some item, you have to manually edit all the others indexes affected. – user Aug 19 '17 at 12:59
  • Considering you supposedly will have an average of 5 keywords, that's a waste of time. – Joseph Aug 19 '17 at 20:24

You can use the enumitem package with inline option:

    \item First Keyword
    \item Second Keyword
    \item Third Keyword

See documentation for changing the style of labels.

  • Thanks! Could it be attributed to a command line like \printkeywords and the inline option be local to my enumeration, so not all enumerations are inlined? – user Aug 16 '17 at 16:15
  • 1
    @user That's what the * does for you. – samcarter is at topanswers.xyz Aug 16 '17 at 16:37
  • Forgot why, but unless one knows what one is doing it's better to load enumitem with the unboxed option, also, i.e. \usepackage[inline,unboxed]{enumitem} – JPi Aug 16 '17 at 16:48

Not the answer you're looking for? Browse other questions tagged or ask your own question.