summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/microtype/test-microtype.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-06-01 22:56:51 +0000
committerKarl Berry <karl@freefriends.org>2006-06-01 22:56:51 +0000
commit3f78b824add5f8236277b3be45a141e7436ec5d5 (patch)
tree7d1229feafb6d21bba77d8e26488a74a985a5789 /Master/texmf-dist/doc/latex/microtype/test-microtype.tex
parente39a33ec4d6321f43329645a687af33893234ff5 (diff)
microtype 1.9d
git-svn-id: svn://tug.org/texlive/trunk@1647 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/microtype/test-microtype.tex')
-rw-r--r--Master/texmf-dist/doc/latex/microtype/test-microtype.tex32
1 files changed, 16 insertions, 16 deletions
diff --git a/Master/texmf-dist/doc/latex/microtype/test-microtype.tex b/Master/texmf-dist/doc/latex/microtype/test-microtype.tex
index 959bf0bbadc..89ab6e2db4b 100644
--- a/Master/texmf-dist/doc/latex/microtype/test-microtype.tex
+++ b/Master/texmf-dist/doc/latex/microtype/test-microtype.tex
@@ -9,9 +9,9 @@
%% -----------------------------------------------------------------------
%% The `microtype' package
%% An interface to the micro-typographic extensions of pdfTeX
-%% Copyright (c) 2004, 2005 R Schlicht <w.m.l@gmx.net>
+%% Copyright (c) 2004--2006 R Schlicht <w.m.l@gmx.net>
%%
-%% This work may be distributed and/or modified under the conditions of
+%% This work may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.3 of this license or
%% (at your option) any later version. The latest version of this license
%% is in: http://www.latex-project.org/lppl.txt, and version 1.3 or later
@@ -23,16 +23,16 @@
%% derived file microtype.sty.
%%
%% -----------------------------------------------------------------------
-%% This file might be useful to test protrusion settings for a font.
-%% You can do whatever you want with it.
-%% -----------------------------------------------------------------------
-%%
+%% This file might be useful to test protrusion settings for a font.
+%% You can do whatever you want with it.
+%% -----------------------------------------------------------------------
+%%
\documentclass{article}
-%% Here you can set the font you want to test, using
+%% Here you can specify the font you want to test, using
%% the commands \fontfamily, \fontseries, and \fontshape.
%% Make sure to end all lines with a comment character!
-\newcommand*{\TestFont}{%
+\newcommand*\TestFont{%
\fontfamily{ppl}%
%% \fontseries{b}%
%% \fontshape{it}% sc, sl
@@ -40,13 +40,13 @@
\usepackage{ifthen}
\usepackage[T1]{fontenc}
-%%\usepackage[latin1]{inputenc}
+\usepackage[latin1]{inputenc}
\usepackage[verbose,expansion=alltext,stretch=50]{microtype}
\pagestyle{empty}
\setlength{\parindent}{0pt}
-\newcommand*{\crulefill}{\cleaders\hbox{$\mkern-2mu\smash-\mkern-2mu$}\hfill}
-\newcommand*{\testprotrusion}[2][]{%
+\newcommand*\crulefill{\cleaders\hbox{$\mkern-2mu\smash-\mkern-2mu$}\hfill}
+\newcommand*\testprotrusion[2][]{%
\ifthenelse{\equal{#1}{r}}{}{#2}%
lorem ipsum dolor sit amet,
\ifthenelse{\equal{#1}{r}}{\crulefill}{\leftarrowfill} #2
@@ -60,7 +60,7 @@
\selectfont
Here is the beginning of a line, \dotfill and here is its end}\linebreak
}
-\newcommand*{\showTestFont}{\expandafter\stripprefix\meaning\TestFont}
+\newcommand*\showTestFont{\expandafter\stripprefix\meaning\TestFont}
\def\stripprefix#1>{}
\newcount\charcount
\begin{document}
@@ -117,21 +117,21 @@
\testprotrusion{\guillemotleft}
\testprotrusion{\guillemotright}
-\bigskip
+\newpage
The following displays the current font stretched by 5\%,
normal, and shrunk by 5\%:
-\microtypesetup{expansion=true}
-
\bigskip
\newlength{\MTln}
-\newcommand*{\teststring}
+\newcommand*\teststring
{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789}
\settowidth{\MTln}{\teststring}
+\microtypesetup{expansion=true}
\parbox{1.05\MTln}{\teststring\linebreak\\
\teststring}\par\bigskip
\parbox{0.95\MTln}{\teststring}
+
\end{document}
\endinput
%%