add more reference tests
[docutils.git] / docutils / test / functional / expected / xetex-cyrillic.tex
blob4f50561ac2ab7dc6e25cb3317ca0079d5ff413ce
1 \documentclass[a4paper,russian]{article}
2 % generated by Docutils <https://docutils.sourceforge.io/>
3 % rubber: set program xelatex
4 \usepackage{fontspec}
5 % \defaultfontfeatures{Scale=MatchLowercase}
6 % straight double quotes (defined T1 but missing in TU):
7 \ifdefined \UnicodeEncodingName
8 \DeclareTextCommand{\textquotedbl}{\UnicodeEncodingName}{%
9 {\addfontfeatures{RawFeature=-tlig,Mapping=}\char34}}%
10 \fi
11 \usepackage{ifthen}
12 \usepackage{polyglossia}
13 \setdefaultlanguage{russian}
14 \setotherlanguages{english}
15 \setcounter{secnumdepth}{0}
17 %%% Custom LaTeX preamble
18 % Linux Libertine (free, wide coverage, not only for Linux)
19 \setmainfont{Linux Libertine O}
20 \setsansfont{Linux Biolinum O}
21 \setmonofont[HyphenChar=None,Scale=MatchLowercase]{DejaVu Sans Mono}
23 %%% User specified packages and stylesheets
25 %%% Fallback definitions for Docutils-specific commands
26 % hyperlinks:
27 \ifthenelse{\isundefined{\hypersetup}}{
28 \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
29 \usepackage{bookmark}
30 \urlstyle{same} % normal text font (alternatives: tt, rm, sf)
31 }{}
32 \hypersetup{
33 pdflang={ru},
37 %%% Body
38 \begin{document}
41 \section{Заголовок%
42 \label{section-1}%
45 первый пример: «Здравствуй, мир!»
48 \section{Title%
49 \label{title}%
52 \foreignlanguage{english}{first example: “Hello world”.}
55 \section{Примечания%
56 \label{section-2}%
59 Этот документ испытивает изображение LaTeXом кириллических букв.
61 \foreignlanguage{english}{This document tests the rendering of Latin and Cyrillic characters by the
62 LaTeX and XeTeX writers. Check the compiled PDF for garbage characters in
63 text and bookmarks.}
65 \end{document}