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.

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.

share|improve this question
5  
I'm asking why you'd want to do that to begin with. –  egreg Apr 19 '12 at 8:36
2  
@andrew Most guides recommend that you spell out feet or inches see also tex.stackexchange.com/questions/46055/… –  Yiannis Lazarides Apr 19 '12 at 8:53
    
Edited to clarify that feet and inches was just a poorly-chosen example, I actually want straight quotes. –  andrew Apr 19 '12 at 16:31
2  
You can find \textquotesingle also via http://detexify.kirelabs.org/classify.html. –  Stephen Apr 19 '12 at 18:00
    
@YiannisLazarides I would say most guides recommend using metric system instead of feet and inches ;-) –  matth Apr 20 '12 at 11:05
show 1 more comment

2 Answers

You write

I ... just [want to] get the occasional straight quote.

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 is only in "straight" quotes. In addition to the "single-quote" command \textquotesingle (requires loading the textcomp package), there's also the \textquotedbl macro which is available as long as a font encoding other than the original TeX font encoding (aka OT1) 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 impose OT1...

\documentclass{article}
\usepackage[T1]{fontenc}  % access \textquotedbl
\usepackage{textcomp}     % access \textquotesingle
\usepackage{mathptmx}     % load "Times New Roman" text font 
                          % (note: the "times" package is obsolete!)
\begin{document}
He exclaimed, \textquotedbl Hello,  
\textquotesingle Stranger\textquotesingle.\textquotedbl
\end{document}

enter image description here

share|improve this answer
1  
Feet and inches was a poorly-chosen example—I should have been clearer that I actually want straight quotes. –  andrew Apr 19 '12 at 16:31
    
@andrew -- thanks for this clarification. I've provided an addendum to my answer. –  Mico Apr 19 '12 at 17:08
    
That sentence could as well be a nice example of the advantages of the \enquote{} command, provided by the csquotes package. –  matth Apr 20 '12 at 11:09
    
@matth -- Good observation. Why don't you provide an answer in which you use the \enquote commands with parameters suitably chosen to generate straight (vertical) single and double quote marks? –  Mico Apr 20 '12 at 11:16
    
@Mico Based on the OPs examples I think \enquote{} is not what the OP wants here (even if I consider it a nice solution). An answer using \enquote{} could of course help others, but then again there are many examples in the question I linked to. –  matth Apr 20 '12 at 11:27
add comment

You can use \textquotesingle from the textcomp package:

\usepackage{textcomp}
....
``The lot is 25\textquotesingle wide,'' the realtor said.

There is also a \textquotedbl for double quotes in the base LaTeX package. \textquotedbl needs a \usepackage[T1]{fontenc} in the preamble, which you should be doing anyway although it can cause weird font trouble. It will be fine with times though.

share|improve this answer
4  
"The weird font trouble" can be easily solved by installing the cm-super fonts (or by switching to the lmodern fonts). –  Ulrike Fischer Apr 19 '12 at 10:07
    
Unfortunately external factors require that the document must be in times using only Type 1 fonts so I don’t think I can do that :/ –  andrew Apr 19 '12 at 16:32
3  
If you use times you won't have the "weird font trouble". Also installing a font package doesn't force to use it in your document. But if your document needs it it will be there. –  Ulrike Fischer Apr 19 '12 at 16:47
    
Thanks, that fixed it! –  andrew Apr 19 '12 at 17:11
add comment

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.