summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/substitutefont/cyrillic-lm-lgc.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-07-09 23:03:56 +0000
committerKarl Berry <karl@freefriends.org>2012-07-09 23:03:56 +0000
commit02d35bb1cf6e5eeadaba42fa8e9d194298b65fce (patch)
treeb8357fd73c942180a4d800ff12b17b99b2f36007 /Master/texmf-dist/doc/latex/substitutefont/cyrillic-lm-lgc.tex
parentd7aff63ef7145fa27210bad19192bc732af02e5f (diff)
substitutefont (8jul12)
git-svn-id: svn://tug.org/texlive/trunk@26981 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/substitutefont/cyrillic-lm-lgc.tex')
-rw-r--r--Master/texmf-dist/doc/latex/substitutefont/cyrillic-lm-lgc.tex50
1 files changed, 50 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/substitutefont/cyrillic-lm-lgc.tex b/Master/texmf-dist/doc/latex/substitutefont/cyrillic-lm-lgc.tex
new file mode 100644
index 00000000000..9ad795778c0
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/substitutefont/cyrillic-lm-lgc.tex
@@ -0,0 +1,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}