Generalenumerating in theorem environment

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ale
Posts: 2
Joined: Sun Oct 14, 2007 5:54 am

enumerating in theorem environment

Post by ale »

Hi all!
I have a problem with enumerating items in the theorem environment.
The output that the enumerate command produce has italic numbers, and
I want them to be without any formatting.

Here you can find my preamble:

\documentclass[12pt, a4paper]{report}
\usepackage{toptesi}
\usepackage{amsmath, amsthm, amssymb, amsfonts, enumerate}
\usepackage{natbib}
\usepackage[italian]{babel}

and here a random theorem with this problem:

\begin{theorem}
Let.....
\begin{enumerate}[(i)]
\item XXXXXXX
\item dafsdaklfjsdfka
\end{enumerate}
\end{theorem}

I would like to get a plain (no formatting at all) numeration as (i),
(ii), (iii) and so on. However, I get italic capital Roman numbers,
shorter than the usual ones (i.e. (I), (II), (III) all of them in
italics and with the I's shorter than usual...). How can is solve this
problem?
I know that I might solve this problem using the description
environment, but I have already written a complete thesis using the
enumerate one, and to rewrite everything will take ages....
Thanks,

Alessandro

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

enumerating in theorem environment

Post by localghost »

You better build a minimum working example (MWE), because I can't really comprehend where your theorem environment comes from. Replace the enumerate package by the enumitem package. Then you are able to build your enumerate environment as you want.

Code: Select all

\begin{enumerate}[label={(\roman*)}]
  \item First item
  \item Second item
  …
\end{enumerate}
ale
Posts: 2
Joined: Sun Oct 14, 2007 5:54 am

enumerating in theorem environment

Post by ale »

Here you find the MWE:

Code: Select all

\documentclass[12pt, classica, cucitura]{toptesi}
\usepackage{toptesi}
\usepackage{amsmath, amsthm, amssymb, amsfonts, enumerate, dlfltxbcodetips}
\usepackage{natbib}
\selectlanguage{italian}
\newtheorem{theorem}{Teorema}
\begin{document}
\begin{theorem}
Let
\begin{enumerate}[(i)]
    \item if item (i) works...
    \item if item (ii) works...
\end{enumerate}
\end{theorem}
\end{document}
as you can see the numeration in the output is weird, and it is different from what expected.
Using the argument

Code: Select all

\begin{theorem}
Let
\begin{enumerate}[label={(\roman*)}]
    \item if item (i) works...
    \item if item (ii) works...
\end{enumerate}
\end{theorem}
it generates the same output.

I tried to change the preamble using

Code: Select all

\documentclass[12pt, a4paper]{report}
\usepackage{toptesi}
\usepackage{amsmath, amsthm, amssymb, amsfonts, enumerate, dlfltxbcodetips}
\usepackage{natbib}
\usepackage[italian]{babel}
but the result is the same.
I guess it is the toptesi package that it is altering the environment, but I need it for other purposes.
To sum up, I'd like to have the following numeration (i), (ii), (iii), ... with everything (brackets included) in roman and not in italic.

Thanks!
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

enumerating in theorem environment

Post by gmedina »

With the enumerate package loaded, try something like this:

Code: Select all

\begin{enumerate}[{\normalfont (i)}]
    \item if item (i) works...
    \item if item (ii) works...
\end{enumerate}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
diegodd
Posts: 1
Joined: Mon Feb 01, 2016 3:19 pm

Re: enumerating in theorem environment

Post by diegodd »

I had the same problem and the cause was the babel package, the spanish version in my case. Maybe the italian version has the same issue.

For spanish I have fixed this by using the "es-lcroman" option like in:

\usepackage[spanish,es-lcroman]{babel}

Maybe there is some "it-lcroman" also. For more info, read the italian-babel documentation.

I found my solution in this thread:
http://tex.stackexchange.com/questions/ ... nish-babel
Post Reply