My question is, basically, the same as the one in Upright parentheses in italic text: how do I force all parentheses in my document to be upright, without replacing them with some commands "by hand"?
Unlike the linked question, my main concern are slanted environments (i.e., theorems). At the moment, I'm dealing with elsarticle, which uses \itshape which is not covered by the solutions on above link (and I don't see how I could modify them to do so), nor by the embrac package (explicitly stated in Section 9).
MWE:
\documentclass{article}
\newtheorem{theorem}{Theorem}
\begin{document}
\begin{theorem}
I want parenthesis (around this text) to be upright.
\end{theorem}
\end{document}
I can, of course, write
I want parenthesis {\rm (}around this text{\rm )} to be upright.
or define some commands for the upright parentheses and use them. However, changing the parentheses in the LaTeX code can lead to errors (for example, missing some of them and introducing inconsistency) and puts a burden of focusing on that detail, instead of the text I'm writing, so I'd prefer some automated way (like the one shown for \emph in the linked document).




\documentclass{...}and ending with\end{document}. – henrique Dec 08 '12 at 16:38\textup(...\textup). – egreg Dec 08 '12 at 16:56