How do I get a straight quote instead of curly quotes? I’m not inside verb
or listing
or any other special environments, and I’m not using XeLaTeX or anything—just normal LaTeX. I don’t want to change all quotes, just get the occasional straight quote. For example, I’d like a way to get something like this in the TeX:
... some examples of these glyphs are curly quotes (``''),
straight quotes ('"), and angled quotes ($'$$"$) ...
to look like this in the output:
... some examples of these glyphs are curly quotes (“”),
straight quotes ('"), and angled quotes (′″) ...
As I’m using an academic-publisher-provided template that does its own required font setup, I’m extremely wary of changing fonts or font encodings. I think the template uses the times
package, and the formatting instructions say all fonts must be Type 1.
Best Answer
(Minor update, April 2022: loading the
textcomp
package to access the glyph generated by\textquotesingle
is not necessary if the vintage of your TeX distribution is more recent than 2019.)You write
The typographically correct marks for "feet" and "inches" are not (single or double, resp.) straight quote marks, but angled quote marks. These may be produced in "normal LaTeX" via
$'$
and$''$
, resp.Addendum, prompted by the OP's comment that interest lies only in "straight" (vertical) quotes. In addition to the "single-quote" command
\textquotesingle
(requires loading thetextcomp
package -- if the vintage of your TeX distribution is older than 2020), there's also the\textquotedbl
macro, which is available as long as a font encoding other than the original TeX font encoding (akaOT1
) is used.Here, then, is a quick MWE. Note that the text font is TNR (Times New Roman). If your publisher wants to use a font encoding other than
T1
-- which is what I use in the MWE -- that's no problem at all, as long as your publisher's template doesn't imposeOT1
...Second Addendum, to address a late comment by @FlashSheridan, who claims that
This claim simply cannot be correct in general. As
\textquotesingle
is defined in thetextcomp
package but not the LaTeX kernel,\textquotesingle
withouttextcomp
produces an error message, not a curly closing quote. (Update April 2022: This paragraph is irrelevant if your TeX distribution is more recent than 2019.)The following screenshots (first for Latin Modern, then for Times Roman) demonstrate conclusively that
\textquotesingle
does produce a straight vertical quote. In contrast,\textsf{'}
does not produce a straight vertical quote -- unless, of course, some sans-serif font with straight single quote glyphs has been loaded.Finally, the code to produce the preceding screenshots: