3

I definied a new theorem via

\newtheorem{def}{definition}

But the text has a italic font and i do not want that. how can i deactivate the italic font?

Mico
  • 506,678
CyKon
  • 33

1 Answers1

4

I assume you're using a theorem-related package such as amsthm. If that's the case, just issue the instruction

\theoremstyle{definition}

ahead of the instruction

\newtheorem{defn}{Definition}

A full MWE:

\documentclass{article}
\usepackage{amsthm,lipsum}
\theoremstyle{definition}
\newtheorem{defn}{Definition}
\begin{document}
\begin{defn}[Lipsum]
\lipsum*[2] % filler text
\end{defn}
\end{document}
Mico
  • 506,678
  • If you use the ntheorem package rather than the amsthm package to set up theorem-like environments, you should replace \theoremstyle{definition} with \theorembodyfont{\upshape}. – Mico Nov 22 '16 at 16:56