%% %% Copyright 1993--2002 %% The LaTeX3 Project and any individual authors listed elsewhere in this %% file. %% %% The testflow package may be distributed and/or modified under the terms of %% the LaTeX Project Public License, either version 1.2 or, at your option, %% any later version. The latest version of this license can be found at: %% http://www.latex-project.org/lppl.txt %% %% This code is offered as-is without any warranty either expressed or %% implied; without even the implied warranty of MERCHANTABILITY or FITNESS %% FOR A PARTICULAR PURPOSE! User assumes all risk. %% %% testflow.tex - V1.0 created 08 April 2002 %% based on Rainer Schoepf's testpage.tex which is part %% of the LaTeX2e system %% %% Modifications to add tests to verify PS/PDF output %% by Michael Shell (2/2002) %% %% Direct all comments to: mshell@ece.gatech.edu %% See the CTAN distribution website for current contact information %% and the latest version: %% http://www.ctan.org/tex-archive/macros/latex/contrib/supported/IEEEtran/ %% %% Copyright (C) 1994 2002 by Rainer Schoepf and Michael Shell %% %% % % This file is designed to test the "print work flow" of LaTeX systems % that are used to produce PS/PDF documents. % % Using this file, the following major problems can be quickly identified: % % 1. improper paper sizes in the dvips or pdftex configuration % which causes margins to be wrong % % 2. systems not properly configured to use and embed the type 1 % versions of the Computer Modern fonts. % % 3. dvips (pre 5.86h versions) improperly configured to use -G1 option % which causes ligatures to be shown as incorrect characters % i.e., "fi" will appear as the British pound (sterling) symbol. % % 4. whether or not the pdf create/view tools have the bug which % causes the minus signs and/or other symbols to disappear. % Acrobat readers prior to Version 4.0.5 (January 2000) % have this problem. So does Ghostscript versions prior to 6.50. % % 5. font kerning (letter spacing) problems caused by buggy % Ghostscript 7.0x PDF verison 1.2 output. Users % should use -dCompatibilityLevel=1.3 when making PDF % from Ghostscript 7.00 to 7.04. % % 6. Acrobat 5 "font download errors" when printing to % PostScript printers and using the older (pre June 6, 2001) % lasy*, lcircle*, and line* type 1 fonts. % Ghostscript 6.50 and later may correct for this font problem, % but it is still an good idea to update your BlueSky fonts % to June 6, 2001 or later. % % % When printing, do not select any "fit/shrink/expand page" options as doing so % will usually result in changes to the page dimensions. % % Linux users using Version 4.0.5 (January 24, 2000) of Acrobat Reader % should probably print using the "level 1" PostScript option as the % level 2 output is sometimes buggy. I do not know if the same is % true of other versions of Acrobat Reader. % % For complete usage documentation, see the file testflow_doc.txt. % \def\docversion{1.0} \def\docbuildcode{0000} \newif\ifmakepicturetest \makepicturetesttrue \newif\ifneeduserresponse \needuserresponsetrue \def\useryes{yes} \def\userno{no} \def\usery{y} \def\usern{n} \def\userresponse{yes} \typeout{} \typeout{ This is the testflow.tex (V\docversion) test page generator.} \typeout{ See the testflow_doc.txt file for full documentation.} \typeout{} \typeout{**********************************************************} \typeout{* Enter paper type in form of document class option,% \space\space\space\space\space*} \typeout{* e.g., `a4paper' or `letterpaper' (without the quotes).\space*} \typein[\papertype]{******************************************% ****************} \loop \typeout{} \typeout{**********************************************************} \typeout{* Do you also wish to test the picture and lasy fonts?% \space\space\space*} \typeout{* Enter `yes' or `no' (without the quotes).% \space\space\space\space\space\space\space\space\space\space\space\space\space\space*} \typein[\userresponse]{******************************************% ****************} \ifx\userresponse\useryes\makepicturetesttrue\needuserresponsefalse\fi \ifx\userresponse\userno\makepicturetestfalse\needuserresponsefalse\fi \ifx\userresponse\usery\makepicturetesttrue\needuserresponsefalse\fi \ifx\userresponse\usern\makepicturetestfalse\needuserresponsefalse\fi \ifneeduserresponse \repeat \ifmakepicturetest \DeclareSymbolFont{lasy}{U}{lasy}{m}{n} \SetSymbolFont{lasy}{bold}{U}{lasy}{b}{n} \DeclareMathSymbol\lasymho {\mathord}{lasy}{"30} \DeclareMathSymbol\lasyJoin {\mathrel}{lasy}{"31} \DeclareMathSymbol\lasyBox {\mathord}{lasy}{"32} \DeclareMathSymbol\lasyDiamond {\mathord}{lasy}{"33} \DeclareMathSymbol\lasyleadsto {\mathrel}{lasy}{"3B} \DeclareMathSymbol\lasysqsubset{\mathrel}{lasy}{"3C} \DeclareMathSymbol\lasysqsupset{\mathrel}{lasy}{"3D} \DeclareMathSymbol\lasylhd {\mathbin}{lasy}{"01} \DeclareMathSymbol\lasyunlhd {\mathbin}{lasy}{"02} \DeclareMathSymbol\lasyrhd {\mathbin}{lasy}{"03} \DeclareMathSymbol\lasyunrhd {\mathbin}{lasy}{"04} \fi \documentclass[\papertype, 10pt]{article} % enable Times fonts \renewcommand{\sfdefault}{phv} \renewcommand{\rmdefault}{ptm} \renewcommand{\ttdefault}{pcr} \def\fontsubfuzz{.9pt} \def\tenptsize{\fontsize{10}{12pt}\selectfont} \def\nineptsize{\fontsize{9}{11pt}\selectfont} \def\eightptsize{\fontsize{8}{10pt}\selectfont} \def\sevenptsize{\fontsize{7}{9pt}\selectfont} \def\sixptsize{\fontsize{6}{8pt}\selectfont} \def\fiveptsize{\fontsize{5}{7pt}\selectfont} \pagestyle{empty} \nofiles \setlength{\oddsidemargin}{0pt} \setlength{\evensidemargin}{0pt} \setlength{\marginparwidth}{1in} \setlength{\marginparsep}{0pt} \setlength{\topmargin}{0pt} \setlength{\headheight}{0pt} \setlength{\headsep}{0pt} \setlength{\topskip}{0pt} \setlength{\footskip}{0pt} \setlength{\textwidth}{\paperwidth} \addtolength{\textwidth}{-2in} \setlength{\textheight}{\paperheight} \addtolength{\textheight}{-2in} \setlength{\parindent}{0pt} \setlength{\unitlength}{1sp} \newcounter{textheight} \newcounter{textwidth} \setcounter{textheight}{\textheight} \setcounter{textwidth}{\textwidth} \newlength{\help} \newcounter{help} \newcommand{\sethelpcounter}[2]{% \setlength{\help}{#2}\setcounter{#1}{\help}} \newcounter{in} \newcounter{halfin} \newcounter{fifthin} \newcounter{tenthin} \newcounter{twtin} \setlength{\help}{1in} \setcounter{in}{\help} \setlength{\help}{0.5in} \setcounter{halfin}{\help} \setlength{\help}{0.2in} \setcounter{fifthin}{\help} \setlength{\help}{0.1in} \setcounter{tenthin}{\help} \setlength{\help}{0.05in} \setcounter{twtin}{\help} \newcounter{mm} \newcounter{tmm} \newcounter{frmm} \newcounter{fvmm} \newcounter{tenmm} \setlength{\help}{1mm} \setcounter{mm}{\help} \setlength{\help}{2mm} \setcounter{tmm}{\help} \setlength{\help}{4mm} \setcounter{frmm}{\help} \setlength{\help}{5mm} \setcounter{fvmm}{\help} \setlength{\help}{10mm} \setcounter{tenmm}{\help} \newcounter{foo} \newcounter{x} \newcounter{y} \newcommand{\addtox}{\addtocounter{x}} \newcommand{\addtoy}{\addtocounter{y}} \newcommand{\putxy}{\put(\value{x},\value{y})} \newcommand{\multiputxy}{\multiput(\value{x},\value{y})} \begin{document} \begin{picture}(0,0) \scriptsize \put(0,-\value{textheight}){% \framebox(\value{textwidth},\value{textheight}){}} % left mm ruler \setcounter{x}{0} \sethelpcounter{y}{-0.45\textheight} \putxy{\line(-1,0){\value{in}}} \addtox{-\value{fvmm}} \addtoy{-\value{tmm}} \multiputxy(-\value{fvmm},0){5}{\line(0,1){\value{frmm}}} \addtoy{\value{mm}} \multiput(-\value{mm},\value{y})(-\value{mm},0){25}% {\line(0,1){\value{tmm}}} \addtoy{\value{frmm}} \setcounter{foo}{5} \multiput(-\value{fvmm},\value{y})(-\value{fvmm},0){4}{% \makebox(0,0){\arabic{foo}}\addtocounter{foo}{5}} % left in ruler \setcounter{x}{0} \sethelpcounter{y}{-0.55\textheight} \putxy{\line(-1,0){\value{in}}} \addtox{-\value{tenthin}} \addtoy{-\value{tenthin}} \multiputxy(-\value{tenthin},0){10}{\line(0,1){\value{fifthin}}} \addtox{\value{twtin}} \addtoy{\value{twtin}} \multiputxy(-\value{tenthin},0){10}{\line(0,1){\value{tenthin}}} \setcounter{foo}{1} \addtox{-\value{twtin}} \addtoy{\value{tenthin}} \addtoy{\value{tenthin}} \multiputxy(-\value{tenthin},0){9}{% \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}} % right mm ruler \sethelpcounter{x}{\textwidth} \sethelpcounter{y}{-0.45\textheight} \putxy{\line(1,0){\value{in}}} \addtox{\value{mm}} \addtoy{-\value{mm}} \multiputxy(\value{mm},0){25}{\line(0,1){\value{tmm}}} \addtox{\value{frmm}} \addtoy{-\value{mm}} \multiputxy(\value{fvmm},0){5}{\line(0,1){\value{frmm}}} \addtoy{\value{fvmm}} \setcounter{foo}{5} \multiputxy(\value{fvmm},0){4}{% \makebox(0,0){\arabic{foo}}\addtocounter{foo}{5}} % right in ruler \sethelpcounter{x}{\textwidth} \sethelpcounter{y}{-0.55\textheight} \putxy{\line(1,0){\value{in}}} \addtox{\value{tenthin}} \addtoy{-\value{tenthin}} \multiputxy(\value{tenthin},0){10}{% \line(0,1){\value{fifthin}}} \addtox{-\value{twtin}} \addtoy{\value{twtin}} \multiputxy(\value{tenthin},0){10}{% \line(0,1){\value{tenthin}}} \setcounter{foo}{1} \addtox{\value{twtin}} \addtoy{\value{tenthin}} \addtoy{\value{tenthin}} \multiputxy(\value{tenthin},0){9}{% \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}} % top mm ruler \sethelpcounter{x}{0.45\textwidth} \setcounter{y}{0} \putxy{\line(0,1){\value{in}}} \addtox{-\value{tmm}} \addtoy{\value{fvmm}} \multiputxy(0,\value{fvmm}){5}{\line(1,0){\value{frmm}}} \addtox{\value{mm}} \addtoy{-\value{frmm}} \multiputxy(0,\value{mm}){25}{\line(1,0){\value{tmm}}} \setcounter{foo}{5} \addtox{-\value{tmm}} \addtoy{-\value{mm}} \addtoy{\value{fvmm}} \multiputxy(0,\value{fvmm}){4}{% \makebox(0,0){\arabic{foo}\rule{5pt}{0pt}}\addtocounter{foo}{5}} % top in ruler \sethelpcounter{x}{0.55\textwidth} \setcounter{y}{0} \putxy{\line(0,1){\value{in}}} \addtox{-\value{tenthin}} \addtoy{\value{tenthin}} \multiputxy(0,\value{tenthin}){10}{\line(1,0){\value{fifthin}}} \addtox{\value{twtin}} \addtoy{-\value{twtin}} \multiputxy(0,\value{tenthin}){10}{\line(1,0){\value{tenthin}}} \setcounter{foo}{1} \addtox{-\value{tenthin}} \addtoy{\value{twtin}} \multiputxy(0,\value{tenthin}){9}{% \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}} % bottom mm ruler \sethelpcounter{x}{0.45\textwidth} \setcounter{y}{-\textheight} \putxy{\line(0,-1){\value{in}}} \addtox{-\value{tmm}} \addtoy{-\value{fvmm}} \multiputxy(0,-\value{fvmm}){5}{\line(1,0){\value{frmm}}} \addtox{\value{mm}} \addtoy{\value{frmm}} \multiputxy(0,-\value{mm}){25}{\line(1,0){\value{tmm}}} \setcounter{foo}{5} \addtox{-\value{tmm}} \addtoy{\value{mm}} \addtoy{-\value{fvmm}} \multiputxy(0,-\value{fvmm}){4}{% \makebox(0,0){\arabic{foo}\rule{5pt}{0pt}}\addtocounter{foo}{5}} % bottom in ruler \sethelpcounter{x}{0.55\textwidth} \setcounter{y}{-\textheight} \putxy{\line(0,-1){\value{in}}} \addtox{-\value{tenthin}} \addtoy{-\value{tenthin}} \multiputxy(0,-\value{tenthin}){10}{\line(1,0){\value{fifthin}}} \addtox{\value{twtin}} \addtoy{\value{twtin}} \multiputxy(0,-\value{tenthin}){10}{\line(1,0){\value{tenthin}}} \setcounter{foo}{1} \addtox{-\value{tenthin}} \addtoy{-\value{twtin}} \multiputxy(0,-\value{tenthin}){9}{% \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}} \end{picture} \setlength{\help}{\textwidth} \addtolength{\help}{-1.25in} \vfill \mbox{}\hfill \begin{minipage}{\help} \centerline{\Huge A Test for \LaTeX\ PS/PDF Printing} \vspace{0.75\baselineskip} \centerline{\large Version \docversion\hspace{0.2in} Build Code: \docbuildcode} \vspace{0.75\baselineskip} \centerline{\large This diagnostic is distributed with the IEEEtran package:} \centerline{\texttt{\footnotesize http://www.ctan.org/tex-archive/macros/latex/contrib/supported/IEEEtran/}} \vspace{1.5\baselineskip} \centerline{\large\bfseries\scshape Notes} \vspace{0.5\baselineskip} Document paper type selected under \LaTeX: \mbox{\ttfamily\papertype}\\ Depends only on the base article.cls --- no other external packages are loaded.\\ The main text font is Times Roman, the math font is Computer Modern.\\ Metric (mm) and imperial (0.1in) rulers are provided to measure centering.\\ The frame on this page should be centered on the paper and 1in (25.4mm) from the edges.\\ To maintain accurate dimensions, do not scale page when printing.\\ (i.e., deselect any ``fit to page" or ``shrink/expand page" options.)\\ For complete usage information, read the \texttt{testflow\_doc.txt} file. \vspace{1.5\baselineskip} \centerline{\large\bfseries\scshape Ligature Test} \vspace{0.5\baselineskip} \makebox[0.85in][l]{\textbf{Ligatures}} ---~~~The office was affected by the five flawed mufflers. \makebox[0.85in][l]{\textbf{No Ligatures}} ---~~~The of\/f\/ice was a\/f\/fected by the f\/ive f\/lawed muf\/f\/lers. \vspace{1.5\baselineskip} \centerline{\large\bfseries\scshape Math Tests} \vspace{0.5\baselineskip} \centerline{\normalsize\bfseries Large Delimiter and Operator Test} \begin{center} \begin{math} I = \left[ \begin{array}{cc} 1 & 0\\ 0 & 1 \end{array} \right]\quad \mbox{and} \quad\Bigg(\sum\limits_{i=0}^{2} 2^i = 7 \Bigg) \end{math} \end{center} \vspace{0.25\baselineskip} \centerline{\normalsize\bfseries Minus Sign Test} \begin{center} \begin{math} \mbox{If } a = 4\mbox{, then: } 2^{-a + 7} - 2^{a-3} = 2^{3} - 2^{1} = 6 \end{math} \end{center} \vspace{0.1\baselineskip} \centerline{\normalsize\bfseries Problem Character, Times Roman and Font Kerning Tests} \vspace{0.5\baselineskip} % here is how we would directly access them within cmmi10 %{\fontencoding{OML}\fontfamily{cmm}\fontshape{it}\selectfont %\symbol{0}\hspace{1ex}\symbol{9}\hspace{1ex}\symbol{10}\hspace{1ex}\symbol{13} %\hspace{1ex}\symbol{32}\hspace{1ex}\symbol{127}} \centerline{\normalfont Math italic glyphs: $\mathnormal{\Gamma,~\Psi,~\Omega,~\gamma,~\psi,~\mbox{\t{\mbox{}\mbox{}}}}$} \vspace{0.25\baselineskip} \centerline{Large Times Roman italic: {\LARGE \textit{z}}\qquad GS kerning test: {\footnotesize The ``Problematic" little quotes.}} \vspace{0.25\baselineskip} {\footnotesize\textbf{Note:} The math italic glyphs are in the control character positions 0, 9, 10, 13, 32 and 127.\hfill\\ i.e., \texttt{\string\Gamma}, \texttt{\string\Psi}, \texttt{\string\Omega}, \texttt{\string\gamma}, \texttt{\string\psi}, and the \texttt{\string\t\{xx\}} tie-after accent, respectively.} \vspace{1.5\baselineskip} \centerline{\large\bfseries\scshape Picture and Lasy Fonts Test {\normalfont(optional)}} \vspace{0.5\baselineskip} \def\lasyglyphs{\lasymho, \lasyJoin, \lasyBox, \lasyDiamond, \lasyleadsto, \lasysqsubset, \lasysqsupset, \lasylhd, \lasyunlhd, \lasyrhd, \lasyunrhd} \setlength{\unitlength}{1cm} \begin{center} \ifmakepicturetest \begin{picture}(12,2.4) \qbezier(0,2.4)(2.25,2.8)(4.5,2.4) \put(1,1.8){\oval(1,1)[tl]} \put(3.5,1.8){\oval(1,1)[tr]} \put(2.25,1.9){\oval(4,1)[t]} \put(.2,1.5){\oval(1,2.2)[l]} \put(1.5,1.5){\circle*{0.1}} \put(1.5,1.5){\circle{1.2}} \put(1.5,1.5){\vector(0,1){0.6}} \put(1.5,1.5){\vector(1,0){0.6}} \put(1.5,1.5){\vector(0,-1){0.6}} \put(1.5,1.5){\vector(-1,0){0.6}} \thicklines \qbezier(0,0.6)(2.25,0.2)(4.5,0.6) \put(0,0){\vector(1,0){11.5}} \put(3,1.5){\circle*{0.1}} \put(3,1.5){\circle{1.2}} \put(3,1.5){\vector(0,1){0.6}} \put(3,1.5){\vector(1,0){0.6}} \put(3,1.5){\vector(0,-1){0.6}} \put(3,1.5){\vector(-1,0){0.6}} \put(1,1.2){\oval(1,1)[bl]} \put(3.5,1.2){\oval(1,1)[br]} \put(2.25,1.1){\oval(4,1)[b]} \put(4.3,1.5){\oval(1,2.2)[r]} \put(4.9,2.4){\makebox[0.75in][r]{10pt bold:\hspace{0.1in}}\tenptsize\boldmath$\lasyglyphs$} \put(4.9,2.0){\makebox[0.75in][r]{10pt:\hspace{0.1in}}\tenptsize$\lasyglyphs$} \put(4.9,1.65){\makebox[0.75in][r]{\nineptsize9pt:\hspace{0.1in}}\nineptsize$\lasyglyphs$} \put(4.9,1.35){\makebox[0.75in][r]{\eightptsize8pt:\hspace{0.1in}}\eightptsize$\lasyglyphs$} \put(4.9,1.1){\makebox[0.75in][r]{\sevenptsize7pt:\hspace{0.1in}}\sevenptsize$\lasyglyphs$} \put(4.9,0.875){\makebox[0.75in][r]{\sixptsize6pt:\hspace{0.1in}}\sixptsize$\lasyglyphs$} \put(4.9,0.675){\makebox[0.75in][r]{\fiveptsize5pt:\hspace{0.1in}}\fiveptsize$\lasyglyphs$} \end{picture} \else \texttt{-- Picture test not selected --} \fi \end{center} \end{minipage} \hfill\mbox{} \vfill \mbox{} \end{document}