1 \documentclass[a4paper,russian
]{article
}
2 % generated by Docutils <http://docutils.sourceforge.net/>
3 % rubber: set program xelatex
6 % \defaultfontfeatures{Scale=MatchLowercase}
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
24 \providecommand*
{\DUroletitlereference}[1]{\textsl{#1}}
27 \ifthenelse{\isundefined{\hypersetup}}{
28 \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue,unicode=false
]{hyperref
}
30 \urlstyle{same
} % normal text font (alternatives: tt, rm, sf)
42 первый пример: «Здравствуй, мир!»
49 \foreignlanguage{english
}{first example: “Hello world”.
}
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
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'
}.
}