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.tex65
1 files changed, 39 insertions, 26 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
index 2f721180e48..c311de4dbf0 100644
--- a/Master/texmf-dist/doc/latex/substitutefont/cyrillic-times-paratype.tex
+++ b/Master/texmf-dist/doc/latex/substitutefont/cyrillic-times-paratype.tex
@@ -1,63 +1,76 @@
\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:
-% Combine "TeX Gyre" fonts for Latin and
-% "ParaType" fonts for Cyrillic.
+\usepackage{substitutefont}
+\usepackage[scaled=0.9]{PTSerif}
\usepackage{tgtermes}
\substitutefont{T2A}{qtm}{PTSerif-TLF}
+\usepackage[scaled=0.9]{PTSans}
\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:
+% use DejaVu for tt
+\usepackage[scaled=0.85]{DejaVuSansMono}
+\usepackage[matchlowercase]{tgcursor}
\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}
+\section*{Cyrillic fonts to match Times/Helvetica/Cursor}
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.
+incompatibility. The cyrillic fonts from the \emph{paratype} package are not
+exact matches but work quite well (the \emph{paratype} package contains also
+basic Latin fonts):
+
+\section{Тест шрифтов}
+
+\newcommand{\teststring}{Здравствуй, мир!
+ {\fontencoding{T1}\selectfont Hello world!}}
+
+\begin{description}
+ \item [Normal:] \teststring
+
+ \item [it:] \textit{\teststring}
+
+ \item [sl:] \textsl{\teststring}
+
+ \item [bf:] \textbf{\teststring}
+
+ \item [bf it:] \textbf{\textit\teststring}
+
+ \item [sc:] missing % \textsc{\teststring}
+
+ \item [bf sc:] missing % \textsc{\textbf\teststring}
-\section{Заголовок}
+ \item [sf:] \textsf{\teststring}
-первый пример: \glqq{}Здравствуй, мир!\grqq{}
+ \item [sf bf:] \textsf{\textbf\teststring}
-\texttt{"Здравствуй, мир!"}
+ \item [sf sl:] \textsf{\textsl\teststring}
-\section{section title in latin script}
+ \item [sf sc:] missing % \textsf{\textsc\teststring}
-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).
+ \item [tt:] \texttt{\teststring}\footnote{The PTMono font fails to load,
+ so this example uses DejaVuSansMono.}
-\selectlanguage{english}
+\end{description}
-T2A \glqq{}Viele Grüße!\grqq{} \texttt{"Hello world!"}
-\fontencoding{T1}\selectfont
-T1 \glqq{}Viele Grüße!\grqq{} \texttt{"Hello world!"}
\end{document}