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
}
11 %%% Custom LaTeX preamble
12 % Linux Libertine (free, wide coverage, not only for Linux)
13 \setmainfont{Linux Libertine O
}
14 \setsansfont{Linux Biolinum O
}
15 \setmonofont[HyphenChar=None
]{DejaVu Sans Mono
}
17 %%% User specified packages and stylesheets
19 %%% Fallback definitions for Docutils-specific commands
22 \ifthenelse{\isundefined{\hypersetup}}{
23 \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue,unicode=false
]{hyperref
}
24 \urlstyle{same
} % normal text font (alternatives: tt, rm, sf)
32 %___________________________________________________________________________
34 \section*
{\phantomsection%
36 \addcontentsline{toc
}{section
}{Заголовок
}%
40 первый пример: "Здравствуй, мир!"
43 %___________________________________________________________________________
45 \section*
{\phantomsection%
47 \addcontentsline{toc
}{section
}{Title
}%
51 \otherlanguage{english
}{first example: "Hello world".
}