diff options
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.tex | 76 |
1 files changed, 59 insertions, 17 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 index 9ad795778c0..8aba4c02845 100644 --- a/Master/texmf-dist/doc/latex/substitutefont/cyrillic-lm-lgc.tex +++ b/Master/texmf-dist/doc/latex/substitutefont/cyrillic-lm-lgc.tex @@ -1,22 +1,24 @@ \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[german,english,russian]{babel} +\usepackage{hyperref,bookmark} +\usepackage{parskip} \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} + +\addto\extrasgerman{\fontencoding{T1}\selectfont} +\addto\noextrasgerman{\fontencoding{T2A}\selectfont} + \begin{document} \section*{Cyrillic fonts to match Latin Modern} @@ -26,25 +28,65 @@ 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{Заголовок} +\section{Тест шрифтов} -первый пример: \glqq{}Здравствуй, мир!\grqq{} +\newcommand{\teststring}{Здравствуй, мир!} -\texttt{"Здравствуй, мир!"} +\begin{description} + \item [Normal:] \teststring -\section{section title in latin script} + \item [it:] \textit{\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 [sl:] \textsl{\teststring} + + \item [bf:] \textbf{\teststring} + + \item [bf it:] \textbf{\textit\teststring} + + \item [sc:] \textsc{\teststring} + + % \item [bf sc:] \textsc{\textbf\teststring} missing in Didot + + \item [sf:] \textsf{\teststring} + + \item [sf bf:] \textsf{\textbf\teststring} + + \item [sf sl:] \textsf{\textsl\teststring} + + \item [sf sc:] \textsf{\textsc\teststring} + + \item [tt:] \texttt{\teststring} + +\end{description} + +\section{Section title in Latin script} \selectlanguage{english} -T2A \glqq{}Viele Grüße!\grqq{} \texttt{"Hello world!"} +Babel does not switch the font encoding when changing between Russian and +English or other languages using the Latin script. As a TeX \emph{standard +text font encoding}, T2A provides basic Latin. However, there are no +pre-composed accented Latin characters (compare the result of drag-and-drop +of the following line from the PDF rendering). + +\begin{quotation} + Résumé of Nathan Söderblom +\end{quotation} +For a document that mixes Russian with , e.g., German with its heavy use of +Umlauts, this may prove a major obstacle. The preamble of this document adds +font-encoding switches to the \texttt{extrasgerman} and +\texttt{noextrasgerman} babel macros. +So lets switch to German and try (again, compare the result of drag-and-drop +of the following line from the PDF rendering): + +\selectlanguage{german} + +\begin{quotation} + Viele Grüße! +\end{quotation} + +\selectlanguage{russian} -\fontencoding{T1}\selectfont -T1 \glqq{}Viele Grüße!\grqq{} \texttt{"Hello world!"} +До свидания! \end{document} |