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
6 \usepackage[T1,T2A
]{fontenc}
7 \usepackage[utf8
]{inputenc}
8 \usepackage[english,russian
]{babel
}
10 %%% Custom LaTeX preamble
12 \usepackage{mathptmx
} % Times
13 \usepackage[scaled=
.90]{helvet
}
16 %%% User specified packages and stylesheets
19 %%% Fallback definitions for Docutils-specific commands
22 \providecommand*
{\DUroletitlereference}[1]{\textsl{#1}}
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)
35 %___________________________________________________________________________
37 \section*
{\phantomsection%
39 \addcontentsline{toc
}{section
}{Заголовок
}%
43 первый пример:
\glqq{}Здравствуй, мир!
\grqq{}
46 %___________________________________________________________________________
48 \section*
{\phantomsection%
50 \addcontentsline{toc
}{section
}{Title
}%
54 \otherlanguage{english
}{first example:
\glqq{}Hello world
\grqq{}.
}
57 %___________________________________________________________________________
59 \section*
{\phantomsection%
61 \addcontentsline{toc
}{section
}{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
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'
}.