Release 0.12: set version number to 0.13
[docutils.git] / test / functional / expected / cyrillic.tex
blob90dff86c33352b66838bb0f63afd5b853ed71d56
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}
9 \setcounter{secnumdepth}{0}
11 %%% Custom LaTeX preamble
12 % PDF Standard Fonts
13 \usepackage{mathptmx} % Times
14 \usepackage[scaled=.90]{helvet}
15 \usepackage{courier}
17 %%% User specified packages and stylesheets
18 \usepackage{cmlgc}
20 %%% Fallback definitions for Docutils-specific commands
22 % titlereference role
23 \providecommand*{\DUroletitlereference}[1]{\textsl{#1}}
25 % hyperlinks:
26 \ifthenelse{\isundefined{\hypersetup}}{
27 \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue,unicode=true]{hyperref}
28 \urlstyle{same} % normal text font (alternatives: tt, rm, sf)
29 }{}
32 %%% Body
33 \begin{document}
36 \section{Заголовок%
37 \label{id1}%
40 первый пример: «Здравствуй, мир!»
43 \section{Title%
44 \label{title}%
47 \foreignlanguage{english}{first example: “Hello world”.}
50 \section{Notes%
51 \label{notes}%
54 \foreignlanguage{english}{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
56 bookmarks.}
58 \foreignlanguage{english}{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'}.}
64 \end{document}