| 1 |
%% |
| 2 |
%% This is file `testmlsw.tex'. |
| 3 |
%% Copyright (C) 1996-1998 Bernd Raichle; all rights reserved. |
| 4 |
%% |
| 5 |
%% See copyright statement in file `lo1enc.def'. |
| 6 |
%% |
| 7 |
%% |
| 8 |
%% - Checks the font encoding switching/alias mechanism. |
| 9 |
%% - Can and should be used with a standard TeX or MLTeX! |
| 10 |
%% |
| 11 |
%% CHANGES: |
| 12 |
%% 1998/11/17 0.9a |
| 13 |
%% First released version. |
| 14 |
%% 1999/03/09 0.9b |
| 15 |
%% Added some comments in the output about the shown effects. |
| 16 |
%% Added \hfuzz=30pt to suppress overfull \hbox warnings. |
| 17 |
%% |
| 18 |
\NeedsTeXFormat{LaTeX2e} |
| 19 |
\ProvidesFile{testmlsw.tex}% |
| 20 |
[1999/03/09 v0.9b Test file for MLTeX LaTeX support (br)] |
| 21 |
\documentclass[a4paper]{article} |
| 22 |
\listfiles |
| 23 |
|
| 24 |
%%% Make MLTeX's OT1 called "LO1" the default encoding: |
| 25 |
\usepackage[LO1]{fontenc} |
| 26 |
|
| 27 |
%%% Make "OT1" (resp. "LO1") default encoding, load "LO1": |
| 28 |
%\usepackage[T1,LO1]{fontenc} |
| 29 |
|
| 30 |
%%% Make "T1" default encoding, load "LO1": |
| 31 |
%\usepackage[LO1,T1]{fontenc} |
| 32 |
|
| 33 |
%%% Make "T1" default encoding, do not load "LO1": |
| 34 |
%%% (this won't work, because the new font encoding "LO1" must |
| 35 |
%%% be declared before its first use, similar to "TS1"). |
| 36 |
%\usepackage[T1]{fontenc} |
| 37 |
|
| 38 |
%% Make "LO1" default encoding, map all accesses |
| 39 |
%% of "OT1" to "LO1": |
| 40 |
%\usepackage{mltex} |
| 41 |
|
| 42 |
\usepackage[german]{babel} |
| 43 |
|
| 44 |
% Test for "Package Warning": |
| 45 |
\expandafter\ifx\csname charsubdef\endcsname\relax \else |
| 46 |
\typeout{}\typeout{===== The following warning is ok:} |
| 47 |
\charsubdef 228=\ifnum`\"=`\"24 \else 256\fi \ifx a\i16\else `Y\fi\relax |
| 48 |
\fi |
| 49 |
|
| 50 |
\typeout{}\typeout{===== OK, the NFSS system should be set up properly.} |
| 51 |
\begin{document} |
| 52 |
|
| 53 |
\typeout{======= \protect\encodingdefault=\encodingdefault\space =====} |
| 54 |
\setlength{\columnsep}{2pc} |
| 55 |
\twocolumn |
| 56 |
|
| 57 |
\newcommand{\testtext}{% |
| 58 |
{\selectlanguage{german}% |
| 59 |
Beim Treffen in M\"unster im M\"arz 1999 w\"urden \"au\ss erst |
| 60 |
unerh\"orte \"Au\ss erungen \"uber verf\"ugbare \"Ubertragungen |
| 61 |
st\"orender Einfl\"usse eingeschr\"ankter \"Offnungss\"atze |
| 62 |
gew\"ohnlicher bl\"odsinniger G\"ansef\"u\ss chen \"uber |
| 63 |
gebr\"auchliche Anf\"uhrungszeichen \"offentlich \"uberm\"a\ss ig |
| 64 |
vorgef\"uhrt. |
| 65 |
\par}% |
| 66 |
% |
| 67 |
Cette notice d\'ecrit comment utiliser l'option de style |
| 68 |
``french'' avec \TeX{} ou \LaTeX{} (appel\'ee \emph{extension} |
| 69 |
dans ce dernier cas). Cette option a \'et\'e cr\'e\'ee pour |
| 70 |
imprimer des documents typographiquement plus conformes \`a l'usage |
| 71 |
fran\c{c}ais que ce que produisent \TeX{} et \LaTeX{} par d\'efaut. |
| 72 |
Un grand nombre de commandes peuvent \^etre utilis\'ees mais |
| 73 |
l'emploi courant de cette option ne n\'ecessite \emph{a priori} |
| 74 |
aucune connaissance particuli\`ere ni une utilisation forcen\'ee de |
| 75 |
commandes sp\'ecifiques. \ldots{} Son installation s'accompagne |
| 76 |
normalement d'une cr\'eation de \emph{format} pour l'introduction, |
| 77 |
notamment, des fichiers de motifs de c\'esure fran\c{c}ais. |
| 78 |
\par |
| 79 |
} |
| 80 |
|
| 81 |
\newcommand{\maketest}[1]{\begingroup \hfuzz=30pt |
| 82 |
\typeout{========== Format Text using Encoding: #1 ==========}% |
| 83 |
\leavevmode\llap{#1: }% |
| 84 |
\fontencoding{#1}\selectfont \testtext \par |
| 85 |
\endgroup} |
| 86 |
|
| 87 |
|
| 88 |
{\slshape In the following paragraphs you can see the following |
| 89 |
results. OT1: no hyphenation of words with umlauts and/or accents. |
| 90 |
T1: hyphenation of these words. LO1: hyphenation of these words if |
| 91 |
ML\TeX{} is used, otherwise no hyphenation. Additionally there can |
| 92 |
be differences in paragraph breaking between LO1 and~T1 because of a |
| 93 |
different font metric between CM and EC fonts.} |
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
\maketest{OT1} |
| 98 |
\maketest{LO1} |
| 99 |
\maketest{T1} |
| 100 |
\newpage |
| 101 |
\maketest{OT1} |
| 102 |
\textsl{-- Test of default enc.: ``\encodingdefault'' --}\par |
| 103 |
\maketest{\encodingdefault} |
| 104 |
|
| 105 |
\end{document} |