diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/substitutefont/substitutefont-test.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/substitutefont/substitutefont-test.tex | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/substitutefont/substitutefont-test.tex b/Master/texmf-dist/doc/latex/substitutefont/substitutefont-test.tex new file mode 100644 index 00000000000..0d32eb18ce8 --- /dev/null +++ b/Master/texmf-dist/doc/latex/substitutefont/substitutefont-test.tex @@ -0,0 +1,55 @@ +\documentclass[a4paper]{article} +\usepackage{fixltx2e} % LaTeX patches, \textsubscript +\usepackage[T1,OT1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage{parskip} + +\title{Simple substitutefont test} +\author{Günter Milde} + +% Combine "Latin Modern" fonts for OT1 and Bookman for T1. +\usepackage{substitutefont} +\usepackage{lmodern} +% Substitution also works for fonts that exist in the specified encoding: +\substitutefont{T1}{lmr}{pbk} + +% \addto\extrasgerman{\fontencoding{T1}\selectfont} +% \addto\noextrasgerman{\fontencoding{\encodingdefault}\selectfont} + +\begin{document} + +\maketitle + +This document is a test that should work with any standard basic LaTeX +installation. For real use cases, see the test documents setting up matching +Latin and Greek or Cyrillic fonts. + +Some text in \encodingdefault{} encoding, the font is Latin Modern: +Résumé of Nathan Söderblom. + +% (Defining the substitution in the document body is possible (but not +% recommended) if it is done before the first use of a font in the specified +% encoding.) +% \substitutefont{T1}{lmr}{pbk} + +\fontencoding{T1}\selectfont + +Some text in T1 encoding, the font is Bookmark: Résumé of Nathan Söderblom% +\footnote{Compare the result of drag-and-drop or text search for words with +accented characters for OT1 and T1 encoded text.} + +\fontencoding{OT1}\selectfont + +Back to OT1 and Latin Modern. + +% The following substitution definition is ignored, because T1 fonts are +% already set up: +\substitutefont{T1}{lmr}{pag} + + + +\fontencoding{T1}\selectfont + +Some more text in T1 encoding and Bookmark. + +\end{document} |