Self-documentation the "Cyrillic with LaTeX" functional test.
[docutils/kirr.git] / docutils / test / functional / expected / cyrillic.tex
blobd0d251b5cc2e28827b829a019009780b3db9762d
1 \documentclass[a4paper,russian]{article}
2 % generated by Docutils <http://docutils.sourceforge.net/>
3 \usepackage{fixltx2e} % LaTeX patches, \textsubscript
4 \usepackage{cmap} % fix search and cut-and-paste in Acrobat
5 \usepackage{ifthen}
6 \usepackage[T1,T2A]{fontenc}
7 \usepackage[utf8]{inputenc}
8 \usepackage[english,russian]{babel}
10 %%% Custom LaTeX preamble
11 % PDF Standard Fonts
12 \usepackage{mathptmx} % Times
13 \usepackage[scaled=.90]{helvet}
14 \usepackage{courier}
16 %%% User specified packages and stylesheets
17 \usepackage{cmlgc}
19 %%% Fallback definitions for Docutils-specific commands
21 % titlereference role
22 \providecommand*{\DUroletitlereference}[1]{\textsl{#1}}
24 % hyperlinks:
25 \ifthenelse{\isundefined{\hypersetup}}{
26 \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue,unicode=true]{hyperref}
27 \urlstyle{same} % normal text font (alternatives: tt, rm, sf)
28 }{}
31 %%% Body
32 \begin{document}
35 %___________________________________________________________________________
37 \section*{\phantomsection%
38 Заголовок%
39 \addcontentsline{toc}{section}{Заголовок}%
40 \label{id1}%
43 первый пример: \glqq{}Здравствуй, мир!\grqq{}
46 %___________________________________________________________________________
48 \section*{\phantomsection%
49 Title%
50 \addcontentsline{toc}{section}{Title}%
51 \label{title}%
54 \otherlanguage{english}{first example: \glqq{}Hello world\grqq{}.}
57 %___________________________________________________________________________
59 \section*{\phantomsection%
60 Notes%
61 \addcontentsline{toc}{section}{Notes}%
62 \label{notes}%
65 This example tests rendering of Latin and Cyrillic characters by the LaTeX
66 and XeTeX writers. Check the compiled PDF for garbage characters in text and
67 bookmarks.
69 To work around a problem with Cyrillic in PDF-bookmarks in \DUroletitlereference{hyperref}
70 versions older than v6.79g 2009/11/20, the test caller \texttt{latex\_cyrillic.py}
71 sets \texttt{hyperref\_options} to \texttt{'unicode=true'} while \texttt{xetex\_cyrillic.py}
72 sets it to \texttt{'unicode=false'}. The recommended option for current
73 (2011-08-24) hyperref versions is \texttt{'pdfencoding=auto'}.
75 \end{document}