| 1 |
\documentclass[a4paper,russian]{article} |
| 2 |
% generated by Docutils <https://docutils.sourceforge.io/> |
| 3 |
% rubber: set program xelatex |
| 4 |
\usepackage{fontspec} |
| 5 |
% \defaultfontfeatures{Scale=MatchLowercase} |
| 6 |
% straight double quotes (defined in T1 but missing in TU): |
| 7 |
\ifdefined \UnicodeEncodingName |
| 8 |
\DeclareTextCommand{\textquotedbl}{\UnicodeEncodingName}{% |
| 9 |
{\addfontfeatures{RawFeature=-tlig,Mapping=}\char34}}% |
| 10 |
\fi |
| 11 |
\usepackage{polyglossia} |
| 12 |
\setdefaultlanguage{russian} |
| 13 |
\setotherlanguages{english} |
| 14 |
\setcounter{secnumdepth}{0} |
| 15 |
|
| 16 |
%%% Custom LaTeX preamble |
| 17 |
% Linux Libertine (free, wide coverage, not only for Linux) |
| 18 |
\setmainfont{Linux Libertine O} |
| 19 |
\setsansfont{Linux Biolinum O} |
| 20 |
\setmonofont[HyphenChar=None,Scale=MatchLowercase]{DejaVu Sans Mono} |
| 21 |
|
| 22 |
%%% User specified packages and stylesheets |
| 23 |
|
| 24 |
%%% Fallback definitions for Docutils-specific commands |
| 25 |
% hyperlinks: |
| 26 |
\ifdefined\hypersetup |
| 27 |
\else |
| 28 |
\usepackage[hyperfootnotes=false, |
| 29 |
colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} |
| 30 |
\usepackage{bookmark} |
| 31 |
\urlstyle{same} % normal text font (alternatives: tt, rm, sf) |
| 32 |
\fi |
| 33 |
\hypersetup{ |
| 34 |
pdflang={ru}, |
| 35 |
} |
| 36 |
|
| 37 |
|
| 38 |
%%% Body |
| 39 |
\begin{document} |
| 40 |
|
| 41 |
|
| 42 |
\section{Заголовок} |
| 43 |
|
| 44 |
первый пример: «Здравствуй, мир!» |
| 45 |
|
| 46 |
|
| 47 |
\section{Title} |
| 48 |
|
| 49 |
\foreignlanguage{english}{first example: “Hello world”.} |
| 50 |
|
| 51 |
|
| 52 |
\section{Примечания} |
| 53 |
|
| 54 |
Этот документ испытивает изображение LaTeXом кириллических букв. |
| 55 |
|
| 56 |
\foreignlanguage{english}{This document tests the rendering of Latin and Cyrillic characters by the |
| 57 |
LaTeX and XeTeX writers. Check the compiled PDF for garbage characters in |
| 58 |
text and bookmarks.} |
| 59 |
|
| 60 |
\end{document} |