[pdftex] Optical alignment--again

Gerben Wierda Sherlock at rna.nl
Sun Sep 29 17:42:54 CEST 2002


>  On closer inspection, what I have in protcode.tex  is not exactly the
> above:
>
>  -------------------------------------
>  \def\adjustprotcode#1{%
>     \needadjustprotcodefalse
>     \ifnum\pdftexversion > 13
>         \ifnum \expandafter`\pdftexrevision > `g
>             \needadjustprotcodetrue
>         \fi
>     \else\ifnum\pdftexversion > 14
>         \needadjustprotcodetrue
>     \fi\fi
>     .....

The order of testing in this old version of protcode.tex is wrong too 
(in the previous example > 14 is never tested because > 13 is true in 
that case). Here is a correct version which also does not need the >99 
test (because it is included in >14):

\def\adjustprotcode#1{%
     \needadjustprotcodefalse
     \ifnum\pdftexversion > 14
         \needadjustprotcodetrue
     \else\ifnum\pdftexversion > 13
         \ifnum \expandafter`\pdftexrevision > `g
             \needadjustprotcodetrue
         \fi
     \fi\fi

G




More information about the pdftex mailing list