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?
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?
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}
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
def. You'll get an error message such as! LaTeX Error: Command \def already defined.. Usedefnor something else instead. – Mico Nov 22 '16 at 16:51