summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/substitutefont/test-cyrillic.tex
blob: 81cfcafa681f679756dc5577652f9e8b998df29a (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
\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{substitutefont}
\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}

% PDF Standard Fonts
\usepackage{tgtermes}
\usepackage[scale=.90]{tgheros}
\usepackage[matchuppercase]{tgcursor}

% Cyrillic with "Freefonts"
\substitutefont{T2A}{qtm}{ftm}
\substitutefont{T2A}{qhv}{fhv}
\substitutefont{T2A}{qcr}{fcr}

% hyperlinks:
\usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}

\begin{document}

TeX-compatible Cyrillic extensions to the URW standard Postscript fonts by
Valek Filippov were part of TeXGyre but removed due to license
incompatibility. On Debian, they are still available in the package
\emph{scalable-cyrfonts-tex}. 

% Attention: there is a font name clash with the \emph{fouriernc} package, as
% both use \texttt{fnc} for \emph{Free/Fourier New Century Schoolbook}.

\section*{Заголовок%
  \phantomsection%
  \addcontentsline{toc}{section}{Заголовок}%
  \label{id1}%
}

первый пример: \glqq{}Здравствуй, мир!\grqq{}

\texttt{"Здравствуй, мир!"}

\section*{Title%
  \phantomsection%
  \addcontentsline{toc}{section}{Title}%
  \label{title}%
}

\otherlanguage{english}{first example: \glqq{}Hello world!\grqq{}.

\texttt{"Hello world!\glqq}

\end{document}