I want some words in my theorem environment to not be italic. I know there are simple ways to get the entire theorem in roman, but I'm looking for an italic theorem with specified words in roman.
I tried:
\documentclass{article}
\usepackage{framed}
\usepackage{amsthm}
\usepackage[svgnames]{xcolor}
\newtheorem{mydef}{Definitie}[section]
\definecolor{shadecolor}{named}{LightGray}
\begin{document}
\begin{shaded}\begin{mydef}
I want \textrm{this} word to be non-italic.
\end{mydef}\end{shaded}
\end{document}
But apparently \textrm
is not the way to go because everything is still italic
Best Answer
use