blob: 9ad795778c0f69a0acb58f61c082fa1224818235 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
\documentclass[a4paper,russian]{scrartcl}
% generated by Docutils <http://docutils.sourceforge.net/>
\usepackage{fixltx2e} % LaTeX patches, \textsubscript
\usepackage{cmap} % fix search and cut-and-paste in Acrobat
\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}
\usepackage{hyperref}
\usepackage{substitutefont}
% Combine "Latin Modern" fonts for Latin and
% "CLG" fonts for Cyrillic.
\usepackage{lmodern}
\substitutefont{T2A}{lmr}{fcm}
\substitutefont{T2A}{lmss}{fcs}
\substitutefont{T2A}{lmtt}{fct}
\begin{document}
\section*{Cyrillic fonts to match Latin Modern}
Latin Modern does not work for the Cyrillic script. If the CM-Super package
is installed, it will be used instead. If not, bitmapped LM fonts are used
for cyrillic text. The \emph{cmlgc} package provides free Cyrillic
vector-fonts matching CM.
\section{Заголовок}
первый пример: \glqq{}Здравствуй, мир!\grqq{}
\texttt{"Здравствуй, мир!"}
\section{section title in latin script}
Babel does not switch the font encoding when changing between Russian and
English. As a standard font encoding, T2A provides basic Latin. However,
the TeX Gyre fonts provide better support for accented Latin letters
(compare the result of drag-and-drop of the following lines from the PDF
rendering).
\selectlanguage{english}
T2A \glqq{}Viele Grüße!\grqq{} \texttt{"Hello world!"}
\fontencoding{T1}\selectfont
T1 \glqq{}Viele Grüße!\grqq{} \texttt{"Hello world!"}
\end{document}
|