11

I have an issue with the double quote in my quotation.

Using "OpenGL....." results in ÖpenGL... even with \"OpenGL... the result is the same.

Using \verb results in double quotes in a wrong font type (at least it looks out of place).

\begin{quotation}
"OpenGL (Open Graphics Library) ist eine Spezifikation für eine plattform-
und programmiersprachenunabhängige Programmierschnittstelle zur
Entwicklung von 2D- und 3D-Computergrafik."
\end{quotation}
lockstep
  • 250,273
  • 2
    \shorthandoff{"} could help, see the babel documentation for this command. Though it's recommendable to quote in another way, as the answers show. – Stefan Kottwitz Feb 11 '11 at 18:25
  • 6
    Just a comment: usually in TeX, putting a backslash makes things "worse" and not "better", in that it does not escape characters to become less special, but more. It's not like " in, say, Linux filenames, which is a literal quotation character rather than a string delimiter. – Ryan Reich Feb 11 '11 at 19:32

2 Answers2

25

Do not use " for quoting, use `` and '' (English quotes) or "` and "' (German quotes, needs babel, see below) instead:

\begin{quotation}
"`OpenGL (Open Graphics Library) ist eine Spezifikation für eine plattform-
und programmiersprachenunabhängige Programmierschnittstelle zur
Entwicklung von 2D- und 3D-Computergrafik."'
\end{quotation}

The babel package with the german/ngerman option does the "O -> Ö translation. This is to for (old) systems which do not have the Umlauts.

Martin Scharrer
  • 262,582
11

The csquotes package has been mentioned several times, so I decided to make a small example:

\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{csquotes}

\SetBlockEnvironment{quotation}

\begin{document}

\begin{displayquote}
  \enquote{%
    OpenGL (Open Graphics Library) ist eine Spezifikation für eine plattform- und
    programmiersprachenunabhängige Programmierschnittstelle zur Entwicklung von
    2D- und 3D-Computergrafik.%
  }%
\end{displayquote}

\end{document}

Note that display quotes are usually set without quotation marks.

Philipp
  • 17,641