3

I tried to write a document having a dash after a quotation mark. However, pdflatex has problems to show the document correctly. It looks like the second quotation mark is missing and the second dash is too short and there is an extra hyphen.

\documentclass[a4paper]{amsart}
\usepackage[utf8]{inputenc}
\usepackage[finnish]{babel}
\usepackage{amsmath}
\begin{document}
a --- b --- "a" --- b
\end{document}

The following seems to work corretly but I'm not sure if it is a proper way to solve the problem:

a --- b --- "a"\,\! --- b
  • 4
    You should never use " for quotes. A double opening quote is ``, while a double closing quote is '' (two apostrophes). – egreg Jan 20 '14 at 12:48
  • 1
    Like Danish, Finnish makes " active so it has a special meaning, kind of like an extra \. In Danish we can use it to type "- to get a hyphen that allows hyphenation in the compound word. I assume the Finnish setup is similar. – daleif Jan 20 '14 at 13:06
3

Quotes should be produced with

``a''

or, as you use UTF-8

“a”

but never with the undirected quotes, particularly using babel, which makes " a shorthand prefix for Finnish. So you want either

a --- b --- ``a'' --- b

or

a --- b --- “a” --- b
|improve this answer|||||

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.