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