Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

up vote 12 down vote accepted

Use the \emph command to emphasize a word. Normally, this will italicize the word, but if you are already in italics mode, it will do the opposite.

share|improve this answer

use

I want \textup{this} word to be non-italic.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.