Fix literal use of babel shorthands (straight quote, tilde, ...).
[docutils.git] / test / functional / expected / xetex-cyrillic.tex
blobe711374c0bbb6a6fd1076b180ddf5cff8a84476b
1 \documentclass[a4paper,russian]{article}
2 % generated by Docutils <http://docutils.sourceforge.net/>
3 % rubber: set program xelatex
4 \usepackage[no-sscript]{xltxtra} % loads fixltx2e, metalogo, xunicode, fontspec
5 % \defaultfontfeatures{Scale=MatchLowercase}
6 \usepackage{ifthen}
7 \usepackage{polyglossia}
8 \setdefaultlanguage{russian}
9 \setotherlanguages{english}
10 \setcounter{secnumdepth}{0}
12 %%% Custom LaTeX preamble
13 % Linux Libertine (free, wide coverage, not only for Linux)
14 \setmainfont{Linux Libertine O}
15 \setsansfont{Linux Biolinum O}
16 \setmonofont[HyphenChar=None,Scale=MatchLowercase]{DejaVu Sans Mono}
18 %%% User specified packages and stylesheets
20 %%% Fallback definitions for Docutils-specific commands
22 % titlereference role
23 \providecommand*{\DUroletitlereference}[1]{\textsl{#1}}
25 % hyperlinks:
26 \ifthenelse{\isundefined{\hypersetup}}{
27 \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue,unicode=false]{hyperref}
28 \urlstyle{same} % normal text font (alternatives: tt, rm, sf)
29 }{}
32 %%% Body
33 \begin{document}
36 \section{Заголовок%
37 \label{id1}%
40 первый пример: «Здравствуй, мир!»
43 \section{Title%
44 \label{title}%
47 \foreignlanguage{english}{first example: “Hello world”.}
50 \section{Notes%
51 \label{notes}%
54 \foreignlanguage{english}{This example tests rendering of Latin and Cyrillic characters by the LaTeX
55 and XeTeX writers. Check the compiled PDF for garbage characters in text and
56 bookmarks.}
58 \foreignlanguage{english}{To work around a problem with Cyrillic in PDF-bookmarks in \DUroletitlereference{hyperref}
59 versions older than v6.79g 2009/11/20, the test caller \texttt{latex\_cyrillic.py}
60 sets \texttt{hyperref\_options} to \texttt{'unicode=true'} while \texttt{xetex\_cyrillic.py}
61 sets it to \texttt{'unicode=false'}. The recommended option for current
62 (2011-08-24) hyperref versions is \texttt{'pdfencoding=auto'}.}
64 \end{document}