# [OS X TeX] Too many Underfull \hbox warnings?

Michael Welsh yomcat at yomcat.geek.nz
Sat Oct 16 22:38:21 EDT 2010

Actually, it's a little more complex than that (I think). You need to keep the different theorem styles in different blocks. Here's my header, as an example:

\theoremstyle{plain}
\newtheorem{thm}{Theorem}[section]
\newtheorem{lemma}[thm]{Lemma}
\newtheorem{result}[thm]{Result}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{lies}[thm]{LIES!!!!!!!}
\newtheorem{conj}[thm]{Conjecture}
\newtheorem{sub}{Sublemma}[thm]

\theoremstyle{definition}
\newtheorem{dfn}[thm]{Definition}
\newtheorem{ex}{Example}
\newtheorem{yom}{yomcat Note}
On 17/10/2010, at 3:33 PM, Michael Welsh wrote:

> If you replace this line with the two lines:
> \theoremstyle{definition}
> \newtheorem{defn}{Definition}[chapter]
>
> it will remove the annoying italic font, and allow you to use the defn environment correctly.
>
> Michael
>
> On 17/10/2010, at 8:45 AM, Don Green Dragon wrote:
>
>>
>> and in the preface I have introduced a {defn} environment as follows:
>>
>> \newtheorem{defn}{Definition}[chapter]
>>
>> i.e., ‘definitions’ have their own counter. I am acutely aware that in some sense lines 870-873 use the \newtheorem construction only to keep track of the numbering of the definitions. The actual body of the definition actually follows the closing «\end{defn}» part in order to avoid the annoying (to me) use of an italic font in the body of the definition.
>
> --
> http://yomcat.geek.nz
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>

--
http://yomcat.geek.nz