Is there a way to not italicize a word in a textit expression?
Is there a way to not italicize a word in a textit expression?
I would like to have a sentence like this:
In the Smith case, the Supreme Court held...
where the entire sentence is in italics except for "Smith" since it is the short name of a case. (You can imagine many other examples like this with movies, etc.)
I would like to be able to do something like:
textitIn the textitSmith case, the Supreme Court held...
However, the above code makes everything italics. Is there something I can do to make Smith non-italicized without resorting to the below code?
textitIn the Smith textitcase, the Supreme Court held...
The only problem I have with that piece of code is that it makes editing problematic if I decide that I'd rather have "Smith" at another place in the sentence.
I appreciate any and all help -- even if the help is simply that the solution I want does not exist.
textup
2 Answers
2
That's exactly what emph
does:
emph
documentclassarticle
begindocument
emphIn the emphSmith case, the Supreme Court helddots
enddocument
or, if you prefer to manually control that, then you can use textup
:
textup
documentclassarticle
begindocument
textitIn the textupSmith case, the Supreme Court helddots
enddocument
Solution worked. Thank you! I wasn't aware of
emph
before and couldn't find the solution via a Google search.– Mason Malone
Sep 17 '18 at 14:36
emph
I usually use:
textitThis is my text, but I want normalfont this to not be in italics.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy
Upright is the same of the font shape you want.
textup
.– Sigur
Sep 17 '18 at 15:47