6

Is there a way to make the numbering of items non italic. To to be specific in the following example I would like that (v) becomes non italic (italic blablabla is fine).

\documentclass{article} \usepackage{amsthm} \newtheorem{thm}{Theorem} \begin{document} \begin{thm} \begin{enumerate} \item[(v)] blablabla \end{enumerate} \end{thm} \begin{thm} \begin{itemize} \item[(v)] blablabla \end{itemize} \end{thm} \end{document} 
5
  • Use enumitem to control all lists. You can make the default label for enumerate upright. Also you should not be numbering items manually, again learn to use enumitem, it will make life a lot easier. If you are adamant that this should only hit theorem, you can use features from the etoolbox package to add enumitem configurations to all theorem envs Commented Nov 27, 2016 at 10:59
  • Thank you, as explained in tex.stackexchange.com/questions/100521/… using \usepackage{enumitem} \setlist[enumerate]{label={\upshape(\roman*)}} one can enumerate upright. Unfortunately in this circumstance, I should enumerate manually. Commented Nov 27, 2016 at 12:58
  • Please explain why manual? Commented Nov 27, 2016 at 13:04
  • In my situation I would like to have Theorem 1. item 1 item 2, Theorem 2 item 3 item 4 item 5 etc. Commented Nov 27, 2016 at 13:28
  • You can use \begin{enumerate}[label = \emph{\arabic*)}] Commented Mar 23, 2023 at 20:34

1 Answer 1

5

You can use the start key of enumitem or, better, the series key which makes all enumerate environments in a series to have the same layout and share the same counter. Here I use a thmenum series. Note you may have as many series as you please.

\documentclass{article} \usepackage{amsthm} \usepackage{enumitem}% \newtheorem{thm}{Theorem} \usepackage{etoolbox} \AtBeginEnvironment{thm}{\setlist[enumerate, 1]{font=\upshape, nosep, wide=0.5em, before=\leavevmode}} \begin{document} \begin{thm} \begin{enumerate}[series=thmenum] \item Blablabla \item Bliblibli \end{enumerate} \end{thm} \begin{thm} \begin{enumerate}[thmenum] \item Blablabla \item Bliblibli \item Blobloblo \end{enumerate} \end{thm} \end{document} 

enter image description here

1
  • 1
    The most funny part was Blablabla, Bliblibli, Blobloblo. :) Commented Nov 27, 2016 at 14:53

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.