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}
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
]{DejaVu Sans Mono
}
18 %%% User specified packages and stylesheets
20 %%% Fallback definitions for Docutils-specific commands
23 \providecommand*
{\DUroletitlereference}[1]{\textsl{#1}}
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)
40 первый пример: "Здравствуй, мир!"
47 \otherlanguage{english
}{first example: "Hello world".
}
54 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
58 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'
}.