LaTeX: Define required Unicode characters in the preamble.
[docutils.git] / docutils / test / functional / expected / latex_babel.tex
blob106dcb6f5111e668e438364daea73a723ba0c600
1 \documentclass[a4paper]{article}
2 % generated by Docutils <http://docutils.sourceforge.net/>
3 \usepackage{cmap} % fix search and cut-and-paste in Acrobat
4 \usepackage{ifthen}
5 \usepackage[T1]{fontenc}
6 \usepackage[utf8]{inputenc}
7 \usepackage[basque,esperanto,estonian,galician,ngerman,english]{babel}
8 \AtBeginDocument{\shorthandoff{.<>}}
9 \deactivatetilden % restore ~ in Galician
10 \makeatletter
11 \addto\extrasestonian{\bbl@deactivate{~}}
12 \makeatother
13 \makeatletter
14 \addto\extrasbasque{\bbl@deactivate{~}}
15 \makeatother
17 %%% Custom LaTeX preamble
18 % PDF Standard Fonts
19 \usepackage{mathptmx} % Times
20 \usepackage[scaled=.90]{helvet}
21 \usepackage{courier}
23 %%% User specified packages and stylesheets
25 %%% Fallback definitions for Docutils-specific commands
27 % hyperlinks:
28 \ifthenelse{\isundefined{\hypersetup}}{
29 \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
30 \usepackage{bookmark}
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}