- MacKichan Software

- Technical Support Pages

- Free Trial Versions

Hello,

I would like to know how to get that te typesetting of "solutions" (I mean something written with this tag) is normal and not slanted. All the styles I tried gave me slanted text...

Thank's in advance for you help !

- Login to post comments

## See How to typeset theorems

See How to typeset theorems in upright fonts

## Hello ! Thank you for your

Hello !

Thank you for your answer ! As I did'know the wodd "upright", I was not able to dig efficiently the website...

So, I have includee the "theorem" package and I wrote something like

\theorembodyfont{\upshape}

\newtheorem{exercise}{Exercice}[chapter]

And know, exercises are written upright. So far, I havn't notice side effects. So, the comand "

\theorembodyfont{\upshape} " apply only to the next line. Is that correct ?

## Assuming that you are using

Assuming that you are using the theorem package, you can define multiple theorem type environments to be upright by enclosing the command and the \newtheorem commands in braces. So you can declare all theorems bodies to be upright by changing your document preamble to read

{\theorembodyfont{\upshape}

\newtheorem{theorem}{Theorem}

\newtheorem{acknowledgement}[theorem]{Acknowledgement}

\newtheorem{algorithm}[theorem]{Algorithm}

\newtheorem{axiom}[theorem]{Axiom}

\newtheorem{case}[theorem]{Case}

\newtheorem{claim}[theorem]{Claim}

\newtheorem{conclusion}[theorem]{Conclusion}

\newtheorem{condition}[theorem]{Condition}

\newtheorem{conjecture}[theorem]{Conjecture}

\newtheorem{corollary}[theorem]{Corollary}

\newtheorem{criterion}[theorem]{Criterion}

\newtheorem{definition}[theorem]{Definition}

\newtheorem{example}[theorem]{Example}

\newtheorem{exercise}[theorem]{Exercise}

\newtheorem{lemma}[theorem]{Lemma}

\newtheorem{notation}[theorem]{Notation}

\newtheorem{problem}[theorem]{Problem}

\newtheorem{proposition}[theorem]{Proposition}

\newtheorem{remark}[theorem]{Remark}

\newtheorem{solution}[theorem]{Solution}

\newtheorem{summary}[theorem]{Summary}}

## The \theorembodyfont command

The \theorembodyfont command would apply to any subsequent \newtheorem statements. As indicated in the article, the scope of the \theorembodyfong command can be restricted by using braces.