Fix literal use of babel shorthands (straight quote, tilde, ...).
[docutils.git] / test / functional / expected / latex_babel.tex
blob5f89f91d6f1b90d42a1bf30d571845b8c1d6ae66
1 \documentclass[a4paper]{article}
2 % generated by Docutils <http://docutils.sourceforge.net/>
3 \usepackage{fixltx2e} % LaTeX patches, \textsubscript
4 \usepackage{cmap} % fix search and cut-and-paste in Acrobat
5 \usepackage{ifthen}
6 \usepackage[T1]{fontenc}
7 \usepackage[utf8]{inputenc}
8 \usepackage[basque,esperanto,estonian,galician,ngerman,english]{babel}
9 \AtBeginDocument{\shorthandoff{.<>}}
10 \deactivatetilden % restore ~ in Galician
11 \makeatletter
12 \addto\extrasestonian{\bbl@deactivate{~}}
13 \makeatother
14 \makeatletter
15 \addto\extrasbasque{\bbl@deactivate{~}}
16 \makeatother
18 %%% Custom LaTeX preamble
19 % PDF Standard Fonts
20 \usepackage{mathptmx} % Times
21 \usepackage[scaled=.90]{helvet}
22 \usepackage{courier}
24 %%% User specified packages and stylesheets
26 %%% Fallback definitions for Docutils-specific commands
28 % hyperlinks:
29 \ifthenelse{\isundefined{\hypersetup}}{
30 \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
31 \urlstyle{same} % normal text font (alternatives: tt, rm, sf)
32 }{}
35 %%% Body
36 \begin{document}
38 The \href{http://www.ctan.org/packages/babel}{babel} package introduces the concept of \textquotedbl{}shorthands\textquotedbl{}: additional
39 characters that introduce a latex macro. Most common is the active double
40 quote (\textquotedbl{}). Problematic is the tilde character (\textasciitilde{}) which is regularely used
41 for no-break spaces but redefined by some language definition files:
43 English: 'an' \textquotedbl{}active\textquotedbl{}-quote, \textasciicircum{}circumflex, and~no-break~spaces
45 \foreignlanguage{basque}{Basque: 'an' \textquotedbl{}active\textquotedbl{}-quote, \textasciicircum{}circumflex, and~no-break~spaces}
47 \foreignlanguage{esperanto}{Esperanto: 'an' \textquotedbl{}active\textquotedbl{}-quote, \textasciicircum{}circumflex, and~no-break~spaces}
49 \foreignlanguage{estonian}{Estonian: 'an' \textquotedbl{}active\textquotedbl{}-quote, \textasciicircum{}circumflex, and~no-break~spaces}
51 \foreignlanguage{galician}{Galician: 'an' \textquotedbl{}active\textquotedbl{}-quote, \textasciicircum{}circumflex, and~no-break~spaces}
53 \foreignlanguage{ngerman}{German: 'an' \textquotedbl{}active\textquotedbl{}-quote, \textasciicircum{}circumflex, and~no-break~spaces}
55 Spanish: option clash with Galician!
57 % .. class:: language-es
59 % Spanish: 'an' "active"-quote, ^circumflex, and no-break spaces
61 \end{document}