summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mltex/testmlsw.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-09 00:49:07 +0000
committerKarl Berry <karl@freefriends.org>2006-01-09 00:49:07 +0000
commit007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (patch)
tree90d17e00e572ecb1e24764b6f29c80e098b08d29 /Master/texmf-dist/doc/latex/mltex/testmlsw.tex
parent950209b26f70aa87ed07c54f82a95b6f03b7c3a0 (diff)
doc/latex
git-svn-id: svn://tug.org/texlive/trunk@84 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/mltex/testmlsw.tex')
-rw-r--r--Master/texmf-dist/doc/latex/mltex/testmlsw.tex105
1 files changed, 105 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/mltex/testmlsw.tex b/Master/texmf-dist/doc/latex/mltex/testmlsw.tex
new file mode 100644
index 00000000000..dac77de892a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mltex/testmlsw.tex
@@ -0,0 +1,105 @@
+%%
+%% This is file `testmlsw.tex'.
+%% Copyright (C) 1996-1998 Bernd Raichle; all rights reserved.
+%%
+%% See copyright statement in file `lo1enc.def'.
+%%
+%%
+%% - Checks the font encoding switching/alias mechanism.
+%% - Can and should be used with a standard TeX or MLTeX!
+%%
+%% CHANGES:
+%% 1998/11/17 0.9a
+%% First released version.
+%% 1999/03/09 0.9b
+%% Added some comments in the output about the shown effects.
+%% Added \hfuzz=30pt to suppress overfull \hbox warnings.
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesFile{testmlsw.tex}%
+ [1999/03/09 v0.9b Test file for MLTeX LaTeX support (br)]
+\documentclass[a4paper]{article}
+\listfiles
+
+%%% Make MLTeX's OT1 called "LO1" the default encoding:
+\usepackage[LO1]{fontenc}
+
+%%% Make "OT1" (resp. "LO1") default encoding, load "LO1":
+%\usepackage[T1,LO1]{fontenc}
+
+%%% Make "T1" default encoding, load "LO1":
+%\usepackage[LO1,T1]{fontenc}
+
+%%% Make "T1" default encoding, do not load "LO1":
+%%% (this won't work, because the new font encoding "LO1" must
+%%% be declared before its first use, similar to "TS1").
+%\usepackage[T1]{fontenc}
+
+%% Make "LO1" default encoding, map all accesses
+%% of "OT1" to "LO1":
+%\usepackage{mltex}
+
+\usepackage[german]{babel}
+
+% Test for "Package Warning":
+\expandafter\ifx\csname charsubdef\endcsname\relax \else
+ \typeout{}\typeout{===== The following warning is ok:}
+ \charsubdef 228=\ifnum`\"=`\"24 \else 256\fi \ifx a\i16\else `Y\fi\relax
+\fi
+
+\typeout{}\typeout{===== OK, the NFSS system should be set up properly.}
+\begin{document}
+
+\typeout{======= \protect\encodingdefault=\encodingdefault\space =====}
+\setlength{\columnsep}{2pc}
+\twocolumn
+
+\newcommand{\testtext}{%
+ {\selectlanguage{german}%
+ Beim Treffen in M\"unster im M\"arz 1999 w\"urden \"au\ss erst
+ unerh\"orte \"Au\ss erungen \"uber verf\"ugbare \"Ubertragungen
+ st\"orender Einfl\"usse eingeschr\"ankter \"Offnungss\"atze
+ gew\"ohnlicher bl\"odsinniger G\"ansef\"u\ss chen \"uber
+ gebr\"auchliche Anf\"uhrungszeichen \"offentlich \"uberm\"a\ss ig
+ vorgef\"uhrt.
+ \par}%
+ %
+ Cette notice d\'ecrit comment utiliser l'option de style
+ ``french'' avec \TeX{} ou \LaTeX{} (appel\'ee \emph{extension}
+ dans ce dernier cas). Cette option a \'et\'e cr\'e\'ee pour
+ imprimer des documents typographiquement plus conformes \`a l'usage
+ fran\c{c}ais que ce que produisent \TeX{} et \LaTeX{} par d\'efaut.
+ Un grand nombre de commandes peuvent \^etre utilis\'ees mais
+ l'emploi courant de cette option ne n\'ecessite \emph{a priori}
+ aucune connaissance particuli\`ere ni une utilisation forcen\'ee de
+ commandes sp\'ecifiques. \ldots{} Son installation s'accompagne
+ normalement d'une cr\'eation de \emph{format} pour l'introduction,
+ notamment, des fichiers de motifs de c\'esure fran\c{c}ais.
+ \par
+}
+
+\newcommand{\maketest}[1]{\begingroup \hfuzz=30pt
+ \typeout{========== Format Text using Encoding: #1 ==========}%
+ \leavevmode\llap{#1: }%
+ \fontencoding{#1}\selectfont \testtext \par
+ \endgroup}
+
+
+{\slshape In the following paragraphs you can see the following
+ results. OT1: no hyphenation of words with umlauts and/or accents.
+ T1: hyphenation of these words. LO1: hyphenation of these words if
+ ML\TeX{} is used, otherwise no hyphenation. Additionally there can
+ be differences in paragraph breaking between LO1 and~T1 because of a
+ different font metric between CM and EC fonts.}
+
+
+
+\maketest{OT1}
+\maketest{LO1}
+\maketest{T1}
+\newpage
+\maketest{OT1}
+\textsl{-- Test of default enc.: ``\encodingdefault'' --}\par
+\maketest{\encodingdefault}
+
+\end{document}