Debian Codegraph @

test/functional/expected/latex_babel.tex

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