blob: 2f721180e4825412faf6a93551a6baeb8999e201 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
|
\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 "TeX Gyre" fonts for Latin and
% "ParaType" fonts for Cyrillic.
\usepackage{tgtermes}
\substitutefont{T2A}{qtm}{PTSerif-TLF}
\usepackage[scale=.90]{tgheros}
\substitutefont{T2A}{qhv}{PTSans-TLF}
\usepackage[matchuppercase]{tgcursor}
% \substitutefont{T2A}{qcr}{PTMono-TLF}
%
% !pdfTeX error: pdflatex (file PTMono-Regular-tlf-t2a--base): Font PTMono-Regula
% r-tlf-t2a--base at 657 not found
% ==> Fatal error occurred, no output PDF file produced!
% Dejavu Sans Mono works but is not the best match for Courier:
\substitutefont{T2A}{qcr}{DejaVuSansMono-TLF}
% use it for all teletyped text until PTMono gets fixed
\renewcommand*{\ttdefault}{DejaVuSansMono-TLF}
\begin{document}
\section*{Cyrillic fonts to match Times}
TeX-compatible Cyrillic extensions to the URW standard Postscript fonts by
Valek Filippov were part of TeXGyre but removed due to license
incompatibility. You may use the free cyrillic fonts from the
\emph{paratype} package instead.
\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}
|