9

According all the tutorials I could found, I need to use

`` + ''    (two single quote symbol)

to produce the double quote. However, it seems that

`` + "     (one symbol)

works as well.

Is this supposed to be? If so, why none of tutorials mention this?

  • 4
    There are various ways to create the quotes (I personally use the csquotes package). Your second solution will not work with \usepackage[T1]{fontenc} so it is not recommended. will work if you use the correct inputenc option. – Ulrike Fischer Jun 26 '13 at 12:01
  • 3
    All tutorials explain that the closing double quotes should be input as '' and they are right. Inputting " has unpredictable output. – egreg Jun 26 '13 at 12:13
  • there are technical reasons for this ``...'' stuff, but they're buried in the history of knuth's font mechanisms. much of the time, we don't use knuth's original font mechanisms, nowadays, but the silly typing rules have persisted. :-( ... and the tutorials probably ought to mention it, but the authors probably thought it wasn't worth mentioning. – wasteofspace Jun 26 '13 at 16:47
5

The character " seems to produce the right quotes, but this is not really true. There are two cases.

OT1 encoding

Look at what happens with these apparently identical inputs:

\documentclass{article}

\begin{document}

this ends a quotation." And here text starts again

this ends a quotation.'' And here text starts again

\end{document}

enter image description here

Can you spot the difference? In the first case a normal interword space is produced after the quotes, in the second case there's an extended space, which is what's expected after a period (preceding or not the quotes), of course assuming "non French spacing".

T1 encoding

Add \usepackage[T1]{fontenc} to the input above and you get

enter image description here

The problem with the extended space seems to have disappeared, but this is not true: the fact is that the glyph produced by " is wider than the curly double quotes. But it's even worse than before, because now the quotes are straight and not curly, which is unacceptable from a typographycal point of view.

Conclusion

All tutorials recommend '' for producing closing double quotes and they are fully right.

| improve this answer | |
  • Why don't you get the sentence-ending space when you type ... quotation." And ...? Just wondering. – MSC Apr 22 '14 at 16:00
  • @MSC Because the space factor code of " is not zero. One could set it to zero, of course. – egreg Apr 22 '14 at 16:01
2

Thanks for pointing it out. Here's one MWE to illustrate the problem.

\documentclass{article}

\usepackage[T1]{fontenc} % for latex
% \usepackage{fontspec} % for xetex
\begin{document}
{\Huge "hello"\par}

{\Huge ``hello"\par}

{\Huge ``hello''\par}

\end{document}

The following is the output. enter image description here

If we don't use fontenc or fontspec, (which is highly recommend against), all three of them give correct result for right quote, shown following:

enter image description here

Conclusion

Use what's mentioned in all the tutorials, and include fontenc or fontspec.

| improve this answer | |
  • Does the first one give a correct result for you? – karlkoeller Jun 26 '13 at 14:42
  • @karlkoeller What do you mean by "first one"? The two images for corresponding to two use cases, the one with fontenc and the one without fontenc. – Albert Netymk Jun 28 '13 at 13:23
  • The first one of the second image. Is it a wanted behavior? – karlkoeller Jun 28 '13 at 14:06
  • @karlkoeller obviously not - but the question implies that Albert is aware of that :) so I think this is just an example for demonstration purposes – cgnieder Jun 29 '13 at 18:24
  • @cgnieder Yes I know, I was only kidding :-) – karlkoeller Jun 30 '13 at 6:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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