summaryrefslogtreecommitdiff
path: root/docutils/test/functional/expected/xetex-cyrillic.tex
blob: 4f50561ac2ab7dc6e25cb3317ca0079d5ff413ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
\documentclass[a4paper,russian]{article}
% generated by Docutils <https://docutils.sourceforge.io/>
% rubber: set program xelatex
\usepackage{fontspec}
% \defaultfontfeatures{Scale=MatchLowercase}
% straight double quotes (defined T1 but missing in TU):
\ifdefined \UnicodeEncodingName
  \DeclareTextCommand{\textquotedbl}{\UnicodeEncodingName}{%
    {\addfontfeatures{RawFeature=-tlig,Mapping=}\char34}}%
\fi
\usepackage{ifthen}
\usepackage{polyglossia}
\setdefaultlanguage{russian}
\setotherlanguages{english}
\setcounter{secnumdepth}{0}

%%% Custom LaTeX preamble
% Linux Libertine (free, wide coverage, not only for Linux)
\setmainfont{Linux Libertine O}
\setsansfont{Linux Biolinum O}
\setmonofont[HyphenChar=None,Scale=MatchLowercase]{DejaVu Sans Mono}

%%% User specified packages and stylesheets

%%% Fallback definitions for Docutils-specific commands
% hyperlinks:
\ifthenelse{\isundefined{\hypersetup}}{
  \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
  \usepackage{bookmark}
  \urlstyle{same} % normal text font (alternatives: tt, rm, sf)
}{}
\hypersetup{
  pdflang={ru},
}


%%% Body
\begin{document}


\section{Заголовок%
  \label{section-1}%
}

первый пример: «Здравствуй, мир!»


\section{Title%
  \label{title}%
}

\foreignlanguage{english}{first example: “Hello world”.}


\section{Примечания%
  \label{section-2}%
}

Этот документ испытивает изображение LaTeXом кириллических букв.

\foreignlanguage{english}{This document tests the rendering of Latin and Cyrillic characters by the
LaTeX and XeTeX writers. Check the compiled PDF for garbage characters in
text and bookmarks.}

\end{document}