Adapt tests to latest latex writer fix.
[docutils.git] / docutils / test / functional / expected / latex_babel.tex
blob63fd940248772d36106eeed1e1caacb608b63ae8
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 \usepackage{bookmark}
32 \urlstyle{same} % normal text font (alternatives: tt, rm, sf)
33 }{}
36 %%% Body
37 \begin{document}
39 The \href{http://www.ctan.org/packages/babel}{babel} package introduces the concept of \textquotedbl{}shorthands\textquotedbl{}: additional
40 characters that introduce a latex macro. Most common is the active double
41 quote (\textquotedbl{}). Problematic is the tilde character (\textasciitilde{}) which is regularely used
42 for no-break spaces but redefined by some language definition files:
44 English: 'an' \textquotedbl{}active\textquotedbl{}-quote, \textasciicircum{}circumflex, and~no-break~spaces
46 \foreignlanguage{basque}{Basque: 'an' \textquotedbl{}active\textquotedbl{}-quote, \textasciicircum{}circumflex, and~no-break~spaces}
48 \foreignlanguage{esperanto}{Esperanto: 'an' \textquotedbl{}active\textquotedbl{}-quote, \textasciicircum{}circumflex, and~no-break~spaces}
50 \foreignlanguage{estonian}{Estonian: 'an' \textquotedbl{}active\textquotedbl{}-quote, \textasciicircum{}circumflex, and~no-break~spaces}
52 \foreignlanguage{galician}{Galician: 'an' \textquotedbl{}active\textquotedbl{}-quote, \textasciicircum{}circumflex, and~no-break~spaces}
54 \foreignlanguage{ngerman}{German: 'an' \textquotedbl{}active\textquotedbl{}-quote, \textasciicircum{}circumflex, and~no-break~spaces}
56 Spanish: option clash with Galician!
58 % .. class:: language-es
60 % Spanish: 'an' "active"-quote, ^circumflex, and no-break spaces
62 \end{document}