summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/substitutefont/cyrillic-times-paratype.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/substitutefont/cyrillic-times-paratype.tex')
-rw-r--r--Master/texmf-dist/doc/latex/substitutefont/cyrillic-times-paratype.tex63
1 files changed, 63 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/substitutefont/cyrillic-times-paratype.tex b/Master/texmf-dist/doc/latex/substitutefont/cyrillic-times-paratype.tex
new file mode 100644
index 00000000000..2f721180e48
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/substitutefont/cyrillic-times-paratype.tex
@@ -0,0 +1,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}