Date: Wed, 31 Oct 2001 20:00:01 -0500
Subject: MacOSX-TeX Digest #140 - 10/31/01
From: "TeX on Mac OS X Mailing List" 
To: "TeX on Mac OS X Mailing List" 
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-transfer-encoding: quoted-printable
Sender: 
Precedence: Bulk
List-Software: LetterRip Pro 3.0.7 by Fog City Software, Inc.
List-Subscribe: 
List-Digest: 
List-Unsubscribe: 

MacOSX-TeX Digest #140 - Wednesday, October 31, 2001

  New teTeX.dmg
          by "Gerben Wierda" 
  Re: [Mac OS X TeX] BBEdit syntax coloring
          by "Jerome Laurens" 
  OSX 10.1 crashes on epstopdf'ed pdf's
          by "Georges Vael" 
  Re: [Mac OS X TeX] OSX 10.1 crashes on epstopdf'ed pdf's
          by "Ross Moore" 
  Re: [Mac OS X TeX] BBEdit syntax coloring
          by "Bruno Voisin" 
  Re: [Mac OS X TeX] New teTeX.dmg
          by "Adrian Heathcote" 
  Re: [Mac OS X TeX] New teTeX.dmg
          by "Bruno Voisin" 
  Re: [Mac OS X TeX] New teTeX.dmg
          by "Ross Moore" 
  Re: [Mac OS X TeX] New teTeX.dmg
          by "Adrian Heathcote" 
  Re: [Mac OS X TeX] OSX 10.1 crashes on epstopdf'ed pdf's
          by "Gerben Wierda" 
  Re: [Mac OS X TeX] New teTeX.dmg
          by "Gerben Wierda" 
  Re: [Mac OS X TeX] New teTeX.dmg
          by "Gerben Wierda" 
  Re: [Mac OS X TeX] OSX 10.1 crashes on epstopdf'ed pdf's
          by "Georges Vael" 
  Re: [Mac OS X TeX] OSX 10.1 crashes on epstopdf'ed pdf's
          by "Georges Vael" 
  [Mac OS X TeX] PS2EPS+ on 10.1
          by "Michael Murray" 
  Re: [Mac OS X TeX] OSX 10.1 crashes on epstopdf'ed pdf's
          by "Alessandro Languasco" 
  Re: [Mac OS X TeX] New teTeX.dmg
          by "Hemant Bhargava" 
  New teTeX.dmg (small updater available)
          by "Gerben Wierda" 
  Re: [Mac OS X TeX] PS2EPS+ on 10.1
          by "Tom Kiffe" 
  Re: [Mac OS X TeX] New teTeX.dmg (small updater available)
          by "Gary L. Gray" 
  Re: [Mac OS X TeX] New teTeX.dmg (small updater available)
          by "Gary L. Gray" 
  URGENT: margin kerning and protcode.tex
          by "Gerben Wierda" 
  update-protcode.tar.gz updated
          by "Gerben Wierda" 
  Re: [Mac OS X TeX] URGENT: margin kerning and protcode.tex
          by "Ross Moore" 


----------------------------------------------------------------------

Subject: New teTeX.dmg
From: "Gerben Wierda" 
Date: Wed, 31 Oct 2001 07:39:08 +0100

In ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/ can be found:

	teTeX.dmg -> teTeX-2001-10-30-19-42-24.dmg
	teTeX-2001-10-30-19-42-24.dmg

To download, use either

	ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/teTeX-2001-10-30-19-42-24.dmg
	ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/teTeX.dmg

Changes:
	pdfTeX 1.00a instead of pdfTeX 0.14h with patches
	margin kerning repaired following patch from Ross Moore

G


----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] BBEdit syntax coloring
From: "Jerome Laurens" 
Date: Wed, 31 Oct 2001 07:59:48 +0100

"V. Vatsal" wrote:
> 

It is not recommended to use $ in tex source code because it is a tex
primitive.
instead use \( and \[
both can be patched to add new functionalities but $ cannot

but anyone is free

j laurens

----------------------------------------------------------------------

Subject: OSX 10.1 crashes on epstopdf'ed pdf's
From: "Georges Vael" 
Date: Wed, 31 Oct 2001 10:18:46 +0100

Hi,

Since I installed MacOSX 10.1, its previewer crashes (and thus also 
TeXShop) on figures  that I produced with 'epstopdf' from MatLab saved 
eps files . Under OS 10.0.4 the same files did not cause crashes.

If I convert the same eps files with Acrobat Distiller, everything works 
OK. I could - and will if nothing else works - reproduce all files using 
Distiller, but that would cost some time as I do not keep the eps files 
but rather the original figures (MatLab, Canvas etc.).

I would appreciate any thoughts/experiences on this matter.

Georges Vael
gvael@innas.com




----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] OSX 10.1 crashes on epstopdf'ed pdf's
From: "Ross Moore" 
Date: Wed, 31 Oct 2001 21:00:20 +1100 (EST)

> Hi,
> 
> Since I installed MacOSX 10.1, its previewer crashes (and thus also 
> TeXShop) on figures  that I produced with 'epstopdf' from MatLab saved 
> eps files . Under OS 10.0.4 the same files did not cause crashes.
> 
> If I convert the same eps files with Acrobat Distiller, everything works =

> OK. I could - and will if nothing else works - reproduce all files using =

> Distiller, but that would cost some time as I do not keep the eps files 
> but rather the original figures (MatLab, Canvas etc.).
> 
> I would appreciate any thoughts/experiences on this matter.

Would you please post some examples of this where they can be downloaded
via the web. Put both the .eps and .pdf after conversion.

Maybe then someone can try to identify the problem.


Cheers,

	Ross Moore

 
> Georges Vael
> gvael@innas.com
> 
> 
> 
> 
> -----------------------------------------------------------------
> To UNSUBSCRIBE, send email to  with
> "unsubscribe macosx-tex" (no quotes) in the body.
> For additional HELP, send email to  with
> "help" (no quotes) in the body.
> This list is not moderated, and I am not responsible for
> messages posted by third parties.
> -----------------------------------------------------------------


----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] BBEdit syntax coloring
From: "Bruno Voisin" 
Date: Wed, 31 Oct 2001 11:00:28 +0100

> It is not recommended to use $ in tex source code because it is a tex
> primitive.
> instead use \( and \[

A problem with \(, as opposed to the "equivalent" $, is that it's 
fragile and requires protection.

Suppose you want a section named "The alpha-example", and a table of 
contents.

- If you write \section{The $\alpha$-example} then the following line is 
written to the .toc file:

\contentsline {subsection}{\numberline {3.2.}The $\alpha $-example}{22}

and nothing bad happens.

- If you write \section{The \(\alpha\)-example} then you get the error 
message:

! LaTeX Error: Bad math environment delimiter.
[...]
l.8 ...turn> to continue without it.}-example}{22}

and, after entering scrollmode, the following line is written to the 
..toc file:

\contentsline {subsection}{\numberline {3.2.}The \relax $\alpha \relax 
\GenericError { }{LaTeX Error: Bad math environment delimiter}{See the 
LaTeX manual or LaTeX Companion for explanation.}{Your command was 
ignored.\MessageBreak Type I   to replace it with 
another command,\MessageBreak or  to continue without 
it.}-example}{22}

Clearly not what you want!

- If you write \section{The \protect\(\alpha\protect\)-example} then the 
following line is written to the .toc file:

\contentsline {subsection}{\numberline {3.2.}The \(\alpha \)-example}{22}

and all's well again - but not very handy!

> but anyone is free

It's for avoiding that kind of problem, I guess, that people often 
prefer to stick to $ $ constructs.

Bruno Voisin


----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] New teTeX.dmg
From: "Adrian Heathcote" 
Date: Wed, 31 Oct 2001 21:07:07 +1100

This brand new version of teTeX has a major problem with it. The margin 
kerning now doesn't work properly and the right margin is v.ragged 
indeed. (In protrudechars=3D1 and 2).

Adrian Heathcote
On Wednesday, October 31, 2001, at 05:39 PM, Gerben Wierda wrote:

> In ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/ can be found:
>
> 	teTeX.dmg -> teTeX-2001-10-30-19-42-24.dmg
> 	teTeX-2001-10-30-19-42-24.dmg
>
> To download, use either
>
> 	ftp://ftp.nluug.nl/pub/comp/macosx/tex-
> gs/teTeX-2001-10-30-19-42-24.dmg
> 	ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/teTeX.dmg
>
> Changes:
> 	pdfTeX 1.00a instead of pdfTeX 0.14h with patches
> 	margin kerning repaired following patch from Ross Moore
>
> G
>
>
> -----------------------------------------------------------------
> To UNSUBSCRIBE, send email to  with
> "unsubscribe macosx-tex" (no quotes) in the body.
> For additional HELP, send email to  with
> "help" (no quotes) in the body.
> This list is not moderated, and I am not responsible for
> messages posted by third parties.
> -----------------------------------------------------------------


----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] New teTeX.dmg
From: "Bruno Voisin" 
Date: Wed, 31 Oct 2001 11:29:27 +0100

> This brand new version of teTeX has a major problem with it. The margin 
> kerning now doesn't work properly and the right margin is v.ragged 
> indeed. (In protrudechars=3D1 and 2).

Yes I've got exactly the same problem.

This looks very much like the problem reported in one message of Ross 
Moore, dated 29th October:

> ... but the effect is not subtle at all.
> Have a look at 2 versions of my paper:
>
>   http://www-texdev.mpce.mq.edu.au/TUG/TUG2001/rossI.pdf
>   http://www-texdev.mpce.mq.edu.au/TUG/TUG2001/rossImk1.pdf
>
> Clearly the kerning parameters in  rossImk1.pdf  are set too large.
> Yet this was the result using  protcode.tex  from CTAN.
> It contains an error in the TeX coding, to determine whether or not
> to set  \needadjustprotcodetrue .
> (The numerical tests on the version number are done in the wrong order;
> thereby leading to the wrong boolean result with the most recent
> versions of  pdfTeX.)

Could this be connected?

Bruno Voisin


----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] New teTeX.dmg
From: "Ross Moore" 
Date: Wed, 31 Oct 2001 21:36:45 +1100 (EST)

> This brand new version of teTeX has a major problem with it. The margin 
> kerning now doesn't work properly and the right margin is v.ragged 
> indeed. (In protrudechars=3D1 and 2).

This is the error in  protcode.tex  that I described earlier:

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

is non-sensical, since the test for > 14 is never done.

It should be either:

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

or

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

This latter is easier to understand and is logically more stable,
with respect to possible future development versions of pdfTeX.


Hope this helps,

	Ross Moore.



 
> Adrian Heathcote
> On Wednesday, October 31, 2001, at 05:39 PM, Gerben Wierda wrote:
> 
> > In ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/ can be found:
> >
> > 	teTeX.dmg -> teTeX-2001-10-30-19-42-24.dmg
> > 	teTeX-2001-10-30-19-42-24.dmg
> >
> > To download, use either
> >
> > 	ftp://ftp.nluug.nl/pub/comp/macosx/tex-
> > gs/teTeX-2001-10-30-19-42-24.dmg
> > 	ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/teTeX.dmg
> >
> > Changes:
> > 	pdfTeX 1.00a instead of pdfTeX 0.14h with patches
> > 	margin kerning repaired following patch from Ross Moore
> >
> > G
> >
> >
> > -----------------------------------------------------------------
> > To UNSUBSCRIBE, send email to  with
> > "unsubscribe macosx-tex" (no quotes) in the body.
> > For additional HELP, send email to  with
> > "help" (no quotes) in the body.
> > This list is not moderated, and I am not responsible for
> > messages posted by third parties.
> > -----------------------------------------------------------------
> 
> 
> -----------------------------------------------------------------
> To UNSUBSCRIBE, send email to  with
> "unsubscribe macosx-tex" (no quotes) in the body.
> For additional HELP, send email to  with
> "help" (no quotes) in the body.
> This list is not moderated, and I am not responsible for
> messages posted by third parties.
> -----------------------------------------------------------------


----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] New teTeX.dmg
From: "Adrian Heathcote" 
Date: Wed, 31 Oct 2001 22:10:27 +1100


On Wednesday, October 31, 2001, at 09:36 PM, Ross Moore wrote:

>> This brand new version of teTeX has a major problem with it. The margin
>> kerning now doesn't work properly and the right margin is v.ragged
>> indeed. (In protrudechars=3D1 and 2).
>
> This is the error in  protcode.tex  that I described earlier:

The fix may be right, but isn't it strange that the previous 
distribution (28/10/01) worked. In fact I've just redownloaded it from 
the texshop website and the problem is now fixed again--margin kerning 
works just as it should!

Very baffling!
>
> \def\adjustprotcode#1{%
>     \needadjustprotcodefalse
>     \ifnum\pdftexversion > 13
>         \ifnum \expandafter`\pdftexrevision > `g
>             \needadjustprotcodetrue
>         \fi
>     \else\ifnum\pdftexversion > 14
>         \needadjustprotcodetrue
>     \fi\fi
>
> is non-sensical, since the test for > 14 is never done.
>
> It should be either:
>
> \def\adjustprotcode#1{%
>     \needadjustprotcodefalse
>     \ifnum\pdftexversion > 13
>         \ifnum \expandafter`\pdftexrevision > `g
>             \needadjustprotcodetrue
>         \else\ifnum\pdftexversion > 14
>             \needadjustprotcodetrue
>         \fi
>     \fi\fi
>
> or
>
> \def\adjustprotcode#1{%
>     \needadjustprotcodefalse
>     \ifnum\pdftexversion > 14
>         \needadjustprotcodetrue
>     \else\ifnum\pdftexversion > 13
>         \ifnum \expandafter`\pdftexrevision > `g
>             \needadjustprotcodetrue
>         \fi
>     \fi\fi
>
> This latter is easier to understand and is logically more stable,
> with respect to possible future development versions of pdfTeX.
>
>
> Hope this helps,
>
> 	Ross Moore.
>
>
>
>
>> Adrian Heathcote
>> On Wednesday, October 31, 2001, at 05:39 PM, Gerben Wierda wrote:
>>
>>> In ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/ can be found:
>>>
>>> 	teTeX.dmg -> teTeX-2001-10-30-19-42-24.dmg
>>> 	teTeX-2001-10-30-19-42-24.dmg
>>>
>>> To download, use either
>>>
>>> 	ftp://ftp.nluug.nl/pub/comp/macosx/tex-
>>> gs/teTeX-2001-10-30-19-42-24.dmg
>>> 	ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/teTeX.dmg
>>>
>>> Changes:
>>> 	pdfTeX 1.00a instead of pdfTeX 0.14h with patches
>>> 	margin kerning repaired following patch from Ross Moore
>>>
>>> G
>>>
>>>
>>> -----------------------------------------------------------------
>>> To UNSUBSCRIBE, send email to  with
>>> "unsubscribe macosx-tex" (no quotes) in the body.
>>> For additional HELP, send email to  with
>>> "help" (no quotes) in the body.
>>> This list is not moderated, and I am not responsible for
>>> messages posted by third parties.
>>> -----------------------------------------------------------------
>>
>>
>> -----------------------------------------------------------------
>> To UNSUBSCRIBE, send email to  with
>> "unsubscribe macosx-tex" (no quotes) in the body.
>> For additional HELP, send email to  with
>> "help" (no quotes) in the body.
>> This list is not moderated, and I am not responsible for
>> messages posted by third parties.
>> -----------------------------------------------------------------
>
>
> -----------------------------------------------------------------
> To UNSUBSCRIBE, send email to  with
> "unsubscribe macosx-tex" (no quotes) in the body.
> For additional HELP, send email to  with
> "help" (no quotes) in the body.
> This list is not moderated, and I am not responsible for
> messages posted by third parties.
> -----------------------------------------------------------------


----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] OSX 10.1 crashes on epstopdf'ed pdf's
From: "Gerben Wierda" 
Date: Wed, 31 Oct 2001 12:28:38 +0100

On Wednesday, October 31, 2001, at 10:18 , Georges Vael wrote:

> Hi,
>
> Since I installed MacOSX 10.1, its previewer crashes (and thus also 
> TeXShop) on figures  that I produced with 'epstopdf' from MatLab saved 
> eps files . Under OS 10.0.4 the same files did not cause crashes.
>
> If I convert the same eps files with Acrobat Distiller, everything 
> works OK. I could - and will if nothing else works - reproduce all 
> files using Distiller, but that would cost some time as I do not keep 
> the eps files but rather the original figures (MatLab, Canvas etc.).
>
> I would appreciate any thoughts/experiences on this matter.

This is a known extremely serious bug in Apple's Quartz display engine. 
Please report this bug to Apple. Many have and the more do, the more 
quickly we will get a fix. There is nothing Cocoa developers can do 
about this at the moment.

There are more bugs (and omissions) in 10.1's PDF engine.

A workaround is to open these files only in Acrobat (which only in a 
limited way uses Quartz), either the Carbon version under OS X 10.1 or 
the 4.05 version in Classic. Another workaround is using Acrobat 
Distiller or PStill, both seem to produce PDF that does not trigger the 
Quartz bug so easily.

G


----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] New teTeX.dmg
From: "Gerben Wierda" 
Date: Wed, 31 Oct 2001 12:21:56 +0100

OOPS. Somehow, the old non-fixed protcode.tex is still in my tree.

Apologies, I'll update tonight.

G

On Wednesday, October 31, 2001, at 11:36 , Ross Moore wrote:

>> This brand new version of teTeX has a major problem with it. The margin
>> kerning now doesn't work properly and the right margin is v.ragged
>> indeed. (In protrudechars=3D1 and 2).
>
> This is the error in  protcode.tex  that I described earlier:
>
> \def\adjustprotcode#1{%
>     \needadjustprotcodefalse
>     \ifnum\pdftexversion > 13
>         \ifnum \expandafter`\pdftexrevision > `g
>             \needadjustprotcodetrue
>         \fi
>     \else\ifnum\pdftexversion > 14
>         \needadjustprotcodetrue
>     \fi\fi
>
> is non-sensical, since the test for > 14 is never done.
>
> It should be either:
>
> \def\adjustprotcode#1{%
>     \needadjustprotcodefalse
>     \ifnum\pdftexversion > 13
>         \ifnum \expandafter`\pdftexrevision > `g
>             \needadjustprotcodetrue
>         \else\ifnum\pdftexversion > 14
>             \needadjustprotcodetrue
>         \fi
>     \fi\fi
>
> or
>
> \def\adjustprotcode#1{%
>     \needadjustprotcodefalse
>     \ifnum\pdftexversion > 14
>         \needadjustprotcodetrue
>     \else\ifnum\pdftexversion > 13
>         \ifnum \expandafter`\pdftexrevision > `g
>             \needadjustprotcodetrue
>         \fi
>     \fi\fi
>
> This latter is easier to understand and is logically more stable,
> with respect to possible future development versions of pdfTeX.
>
>
> Hope this helps,
>
> 	Ross Moore.
>
>
>
>
>> Adrian Heathcote
>> On Wednesday, October 31, 2001, at 05:39 PM, Gerben Wierda wrote:
>>
>>> In ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/ can be found:
>>>
>>> 	teTeX.dmg -> teTeX-2001-10-30-19-42-24.dmg
>>> 	teTeX-2001-10-30-19-42-24.dmg
>>>
>>> To download, use either
>>>
>>> 	ftp://ftp.nluug.nl/pub/comp/macosx/tex-
>>> gs/teTeX-2001-10-30-19-42-24.dmg
>>> 	ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/teTeX.dmg
>>>
>>> Changes:
>>> 	pdfTeX 1.00a instead of pdfTeX 0.14h with patches
>>> 	margin kerning repaired following patch from Ross Moore
>>>
>>> G
>>>
>>>
>>> -----------------------------------------------------------------
>>> To UNSUBSCRIBE, send email to  with
>>> "unsubscribe macosx-tex" (no quotes) in the body.
>>> For additional HELP, send email to  with
>>> "help" (no quotes) in the body.
>>> This list is not moderated, and I am not responsible for
>>> messages posted by third parties.
>>> -----------------------------------------------------------------
>>
>>
>> -----------------------------------------------------------------
>> To UNSUBSCRIBE, send email to  with
>> "unsubscribe macosx-tex" (no quotes) in the body.
>> For additional HELP, send email to  with
>> "help" (no quotes) in the body.
>> This list is not moderated, and I am not responsible for
>> messages posted by third parties.
>> -----------------------------------------------------------------
>
>
> -----------------------------------------------------------------
> To UNSUBSCRIBE, send email to  with
> "unsubscribe macosx-tex" (no quotes) in the body.
> For additional HELP, send email to  with
> "help" (no quotes) in the body.
> This list is not moderated, and I am not responsible for
> messages posted by third parties.
> -----------------------------------------------------------------
>


----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] New teTeX.dmg
From: "Gerben Wierda" 
Date: Wed, 31 Oct 2001 12:30:23 +0100

On Wednesday, October 31, 2001, at 12:10 , Adrian Heathcote wrote:

>
> The fix may be right, but isn't it strange that the previous 
> distribution (28/10/01) worked. In fact I've just redownloaded it from 
> the texshop website and the problem is now fixed again--margin kerning 
> works just as it should!
>
> Very baffling!

Not at all, because the 28/10 version uses pdfTeX .14h and the 30/10 
version uses pdfteX 1.00a.

Wait until tomorrow and download the fixed version from the ftp site.

G


----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] OSX 10.1 crashes on epstopdf'ed pdf's
From: "Georges Vael" 
Date: Wed, 31 Oct 2001 12:46:32 +0100

Sorry for the omission but I had hoped it would be possible to answer 
from experience.
I expected the OSX PDF immaturity (that was several times referred to in 
this list) to be the most probable cause.

As I seem to be the only one with this problem, it is more probable that 
I am doing something wrong. I am fairly new at this game ;-).
So, for anyone willing to look into it, the files can be downloaded from:

http://homepage.mac.com/gvael/FileSharing1.html

Thanks,

Georges

On woensdag, oktober 31, 2001, at 11:00 , Ross Moore wrote:

>
> Would you please post some examples of this where they can be downloaded
> via the web. Put both the .eps and .pdf after conversion.
>
> Maybe then someone can try to identify the problem.
>
>
> Cheers,
>
> 	Ross Moore



----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] OSX 10.1 crashes on epstopdf'ed pdf's
From: "Georges Vael" 
Date: Wed, 31 Oct 2001 12:54:05 +0100

Suspected this was the problem, glad it wasn't me.
I will workaround and I report the bug to Apple.
Gerbens mail and my response to Rosses request for files to reconstruct 
the problem with crossed. I'll leave them at the web for anyone 
interested or for Apple's  bug killers ;-).

Georges

On woensdag, oktober 31, 2001, at 12:28 , Gerben Wierda wrote:

> This is a known extremely serious bug in Apple's Quartz display engine. 
> Please report this bug to Apple. Many have and the more do, the more 
> quickly we will get a fix. There is nothing Cocoa developers can do 
> about this at the moment.
>
> There are more bugs (and omissions) in 10.1's PDF engine.
>
> A workaround is to open these files only in Acrobat (which only in a 
> limited way uses Quartz), either the Carbon version under OS X 10.1 or 
> the 4.05 version in Classic. Another workaround is using Acrobat 
> Distiller or PStill, both seem to produce PDF that does not trigger the 
> Quartz bug so easily.
>
> G



----------------------------------------------------------------------

Subject: [Mac OS X TeX] PS2EPS+ on 10.1
From: "Michael Murray" 
Date: Wed, 31 Oct 2001 23:02:45 +1030

I used to make a lot of use of PS2EPS+ to add bounding boxes to
ps files without them.  Can anyone recommend a way of doing it in
MacOS 10.1 without launching PS2EPS+ via classic.


Thanks - Michael
-- 
_________________________________________________________
Assoc/Prof Michael Murray
Department of Pure Mathematics       Fax: 61+ 8 8303 3696
University of Adelaide             Phone: 61+ 8 8303 4174
Australia  5005      Email: mmurray@maths.adelaide.edu.au
Home Page: http://www.maths.adelaide.edu.au/pure/mmurray
PGP public key:
http://www.maths.adelaide.edu.au/pure/mmurray/pgp.txt
_________________________________________________________






----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] OSX 10.1 crashes on epstopdf'ed pdf's
From: "Alessandro Languasco" 
Date: Wed, 31 Oct 2001 14:17:58 +0100

Georges:
you are not alone!
Some times ago I report a similar problem to this list
and also to Apple suppport (as usual they do not give me any answer).
Other guys too in the USA had similar problems (you can see their=20
description
in the Apple discussion site).

My solution was to use the Macps2pdf by Thomas R. Kiffe.
It seems to produce .pdf files that don't crash Quartz engine.
Bye,
	Alessandro

On Mercoled=EC, ottobre 31, 2001, at 12:54 , Georges Vael wrote:

> Suspected this was the problem, glad it wasn't me.
> I will workaround and I report the bug to Apple.
> Gerbens mail and my response to Rosses request for files to =
reconstruct=20
> the problem with crossed. I'll leave them at the web for anyone=20
> interested or for Apple's  bug killers ;-).
>
> Georges
>
> On woensdag, oktober 31, 2001, at 12:28 , Gerben Wierda wrote:
>
>> This is a known extremely serious bug in Apple's Quartz display=20
>> engine. Please report this bug to Apple. Many have and the more do,=20=

>> the more quickly we will get a fix. There is nothing Cocoa developers=20=

>> can do about this at the moment.
>>
>> There are more bugs (and omissions) in 10.1's PDF engine.
>>
>> A workaround is to open these files only in Acrobat (which only in a=20=

>> limited way uses Quartz), either the Carbon version under OS X 10.1 =
or=20
>> the 4.05 version in Classic. Another workaround is using Acrobat=20
>> Distiller or PStill, both seem to produce PDF that does not trigger=20=

>> the Quartz bug so easily.
>>
>> G
>
>
>
> -----------------------------------------------------------------
> To UNSUBSCRIBE, send email to  with
> "unsubscribe macosx-tex" (no quotes) in the body.
> For additional HELP, send email to  with
> "help" (no quotes) in the body.
> This list is not moderated, and I am not responsible for
> messages posted by third parties.
> -----------------------------------------------------------------
>


----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] New teTeX.dmg
From: "Hemant Bhargava" 
Date: Wed, 31 Oct 2001 08:55:24 -0500

Gerben -

I  (and I expect many others) downloaded and installed the "new tetex 
dmg" about 3 days ago, soon after your last posting about the update 
(following the discussion of errors).

Would you please let us know if the latest one (Oct 30) is significantly 
different, and if we need to update and reinstall.

Thanks

- Hemant

On Wednesday, October 31, 2001, at 01:39 AM, Gerben Wierda wrote:

> In ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/ can be found:
>
> 	teTeX.dmg -> teTeX-2001-10-30-19-42-24.dmg
> 	teTeX-2001-10-30-19-42-24.dmg
>
> To download, use either
>
> 	ftp://ftp.nluug.nl/pub/comp/macosx/tex-
> gs/teTeX-2001-10-30-19-42-24.dmg
> 	ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/teTeX.dmg
>
> Changes:
> 	pdfTeX 1.00a instead of pdfTeX 0.14h with patches
> 	margin kerning repaired following patch from Ross Moore
>
> G


----------------------------------------------------------------------

Subject: New teTeX.dmg (small updater available)
From: "Gerben Wierda" 
Date: Wed, 31 Oct 2001 15:58:28 +0100

On Wednesday, October 31, 2001, at 02:55 , Hemant Bhargava wrote:

> Would you please let us know if the latest one (Oct 30) is 
> significantly different, and if we need to update and reinstall.

There is only one small change. I forgot to fix protcode.tex in the 
texmf tree, but an updated protcode.tex is needed if it is to run with 
the newer pdfTeX I have installed.

You only need to upgrade if you want to be able to use margin kerning. 
There is not other difference.

For convenience, I have put a small file on my ftp site.

	ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/update-protcode.tar.gz

Download and untar. It creates two files, protocde.tex.fixed and 
update_protcode, which is a shell script. In a Terminal window, from the 
directory where these files reside, run (as root) ./update_protcode. 
This will install the fixed version twice, one in the intended place in 
the main texmf tree, the other will replace any protcode.tex you might 
have installed yourself in a place where it is found before the official 
one.

If you do this, you have a setup which is equal to downloading and 
installing the new dmg which I will upload tonight.

Gerben

Sorry for the inconvenience.


----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] PS2EPS+ on 10.1
From: "Tom Kiffe" 
Date: Wed, 31 Oct 2001 09:34:21 -0600

If you want to convert a 1-page Postscript file into an eps file
there are at least two ways to accomplish this natively in OS X.

1) Use the ps2epsi script that comes with ghostscript. In addition to
adding a bounding box this script adds a bit preview to the
resulting eps file. This bit preview is not recognized by any Mac
program I know of.

2) The macps2pdf program included in the new MacGhostView 2.5 does the
same thing as ps2epsi except it does not include the bit preview.
The new MacGhostView can add a PICT 256 resource to the resource fork
of the eps file. The new CMacTeX 4.1 has an Apple Script that allows
you to accomplish both tasks at the same time by dropping a Postscript
file onto the script's icon. 

--Tom

>I used to make a lot of use of PS2EPS+ to add bounding boxes to
>ps files without them.  Can anyone recommend a way of doing it in
>MacOS 10.1 without launching PS2EPS+ via classic.
>
>
>Thanks - Michael
>-- 
>_________________________________________________________
>Assoc/Prof Michael Murray
>Department of Pure Mathematics       Fax: 61+ 8 8303 3696
>University of Adelaide             Phone: 61+ 8 8303 4174
>Australia  5005      Email: mmurray@maths.adelaide.edu.au
>Home Page: http://www.maths.adelaide.edu.au/pure/mmurray
>PGP public key:
>http://www.maths.adelaide.edu.au/pure/mmurray/pgp.txt
>_________________________________________________________
>
>
>
>
>
>
>-----------------------------------------------------------------
>To UNSUBSCRIBE, send email to  with
>"unsubscribe macosx-tex" (no quotes) in the body.
>For additional HELP, send email to  with
>"help" (no quotes) in the body.
>This list is not moderated, and I am not responsible for
>messages posted by third parties.
>-----------------------------------------------------------------


----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] New teTeX.dmg (small updater available)
From: "Gary L. Gray" 
Date: Wed, 31 Oct 2001 12:09:55 -0500

On 10/31/2001 at 3:58 PM +0100, Gerben Wierda wrote:

>There is only one small change. I forgot to fix protcode.tex in the 
>texmf tree, but an updated protcode.tex is needed if it is to run 
>with the newer pdfTeX I have installed.
>
>You only need to upgrade if you want to be able to use margin 
>kerning. There is not other difference.
>
>For convenience, I have put a small file on my ftp site.
>
>	ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/update-protcode.tar.gz
>
>Download and untar. It creates two files, protocde.tex.fixed and 
>update_protcode, which is a shell script. In a Terminal window, from 
>the directory where these files reside, run (as root) 
>./update_protcode. This will install the fixed version twice, one in 
>the intended place in the main texmf tree, the other will replace 
>any protcode.tex you might have installed yourself in a place where 
>it is found before the official one.
>
>If you do this, you have a setup which is equal to downloading and 
>installing the new dmg which I will upload tonight.

I just did this (that is, installed the newest teTeX and then ran the 
above-mentioned script) and the protcode.tex file at:

/usr/local/teTeX/share/texmf/tex/plain/misc/

is not the new version (that is, is not the same as 
protcode.tex.fixed). What am I missing here?

Best regards,
-- 
    Gary L. Gray
    Associate Professor
    Engineering Science & Mechanics
    Penn State University
    (814) 863-1778
    http://www.esm.psu.edu/Faculty/Gray/


----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] New teTeX.dmg (small updater available)
From: "Gary L. Gray" 
Date: Wed, 31 Oct 2001 15:02:09 -0500

On 10/31/2001 at 3:58 PM +0100, Gerben Wierda wrote:

>There is only one small change. I forgot to fix protcode.tex in the 
>texmf tree, but an updated protcode.tex is needed if it is to run 
>with the newer pdfTeX I have installed.
>
>You only need to upgrade if you want to be able to use margin 
>kerning. There is not other difference.
>
>For convenience, I have put a small file on my ftp site.
>
>	ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/update-protcode.tar.gz
>
>Download and untar. It creates two files, protocde.tex.fixed and 
>update_protcode, which is a shell script. In a Terminal window, from 
>the directory where these files reside, run (as root) 
>./update_protcode. This will install the fixed version twice, one in 
>the intended place in the main texmf tree, the other will replace 
>any protcode.tex you might have installed yourself in a place where 
>it is found before the official one.
>
>If you do this, you have a setup which is equal to downloading and 
>installing the new dmg which I will upload tonight.

I just used BBEdit 6.5 to simply replace protcode.tex in:

/usr/local/teTeX/share/texmf/tex/plain/misc/

and now I get the following error (I apologize for the long message, 
but I thought the entire TeX log would be useful in debugging):



This is pdfTeX, Version 3.14159-1.00a-pretest-20010806 (Web2C 
7.3.3.1) (format=3Dpdflatex 2001.10.31)  31 OCT 2001 14:52
**falling-ladder-example.tex
(./falling-ladder-example.tex{/usr/local/teTeX/share/texmf.local/pdftex/con=
fig/
pdftex.cfg}
LaTeX2e <2001/06/01>
Babel  and hyphenation patterns for american, french, german, =
ngerman, n
ohyphenation, loaded.
(/usr/local/teTeX/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/local/teTeX/share/texmf/tex/latex/base/size12.clo
File: size12.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
)
\c@part=3D\count79
\c@section=3D\count80
\c@subsection=3D\count81
\c@subsubsection=3D\count82
\c@paragraph=3D\count83
\c@subparagraph=3D\count84
\c@figure=3D\count85
\c@table=3D\count86
\abovecaptionskip=3D\skip41
\belowcaptionskip=3D\skip42
\bibindent=3D\dimen102
)
(/usr/local/teTeX/share/texmf/tex/latex/amsmath/amsmath.sty
Package: amsmath 2000/07/18 v2.13 AMS math features
\@mathmargin=3D\skip43

For additional information on amsmath, use the `?' option.
(/usr/local/teTeX/share/texmf/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01

(/usr/local/teTeX/share/texmf/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=3D\toks14
\ex@=3D\dimen103
))
(/usr/local/teTeX/share/texmf/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=3D\dimen104
)
(/usr/local/teTeX/share/texmf/tex/latex/amsmath/amsopn.sty
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@bad=3D\count87
LaTeX Info: Redefining \frac on input line 211.
\uproot@=3D\count88
\leftroot@=3D\count89
LaTeX Info: Redefining \overline on input line 307.
\classnum@=3D\count90
\DOTSCASE@=3D\count91
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\Mathstrutbox@=3D\box26
\strutbox@=3D\box27
\big@size=3D\dimen105
LaTeX Font Info:    Redeclaring font encoding OML on input line 567.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 568.
\macc@depth=3D\count92
\c@MaxMatrixCols=3D\count93
\dotsspace@=3D\muskip10
\c@parentequation=3D\count94
\dspbrk@lvl=3D\count95
\tag@help=3D\toks15
\row@=3D\count96
\column@=3D\count97
\maxfields@=3D\count98
\andhelp@=3D\toks16
\eqnshift@=3D\dimen106
\alignsep@=3D\dimen107
\tagshift@=3D\dimen108
\tagwidth@=3D\dimen109
\totwidth@=3D\dimen110
\lineht@=3D\dimen111
\@envbody=3D\toks17
\multlinegap=3D\skip44
\multlinetaggap=3D\skip45
\mathdisplay@stack=3D\toks18
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
(/usr/local/teTeX/share/texmf/tex/latex/amsfonts/amssymb.sty
Package: amssymb 1996/11/03 v2.2b

(/usr/local/teTeX/share/texmf/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 1997/09/17 v2.2e
\symAMSa=3D\mathgroup4
\symAMSb=3D\mathgroup5
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version =
`bold'
(Font)                  U/euf/m/n --> U/euf/b/n on input line 133.
))
(/usr/local/teTeX/share/texmf/tex/latex/base/exscale.sty
Package: exscale 1997/06/16 v2.1g Standard LaTeX package exscale
LaTeX Font Info:    Redeclaring symbol font `largesymbols' on input line =
47.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version =
`normal'
(Font)                  OMX/cmex/m/n --> OMX/cmex/m/n on input line 47.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version =
`bold'
(Font)                  OMX/cmex/m/n --> OMX/cmex/m/n on input line 47.
\big@size=3D\dimen112
)
(/usr/local/teTeX/share/texmf/tex/latex/amsfonts/eucal.sty
Package: eucal 1995/01/06 v2.2 Euler Script fonts
LaTeX Font Info:    Overwriting math alphabet `\EuScript' in version =
`bold'
(Font)                  U/eus/m/n --> U/eus/b/n on input line 47.
)
(/usr/local/teTeX/share/texmf/tex/latex/cite/cite.sty
Package: cite 1999/04/23  v 3.8
)
(/usr/local/teTeX/share/texmf/tex/latex/tools/enumerate.sty
Package: enumerate 1999/03/05 v3.00 enumerate extensions (DPC)
\@enLab=3D\toks19
)
(/Users/gray/Library/texmf/tex/latex/misc/boldfig.sty)
(/usr/local/teTeX/share/texmf/tex/latex/misc/footmisc.sty
Package: footmisc 1999/12/02 v3.3j2 a miscellany of footnote facilities
\footnotemargin=3D\dimen113
\FN@tempboxb=3D\box28
\FN@tempboxc=3D\box29
)
(/usr/local/teTeX/share/texmf/tex/plain/misc/protcode.tex)
(/usr/local/teTeX/share/texmf/tex/latex/graphics/graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

(/usr/local/teTeX/share/texmf/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=3Dvalue parser (DPC)
\KV@toks@=3D\toks20
)
(/usr/local/teTeX/share/texmf/tex/latex/graphics/graphics.sty
Package: graphics 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)

(/usr/local/teTeX/share/texmf/tex/latex/graphics/trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(/usr/local/teTeX/share/texmf/tex/latex/config/graphics.cfg)
Package graphics Info: Driver file: pdftex.def on input line 80.

(/usr/local/teTeX/share/texmf/tex/latex/graphics/pdftex.def
File: pdftex.def 2001/09/01 v0.03h graphics/color for pdftex
\Gread@gobject=3D\count99
))
\Gin@req@height=3D\dimen114
\Gin@req@width=3D\dimen115
)
(/usr/local/teTeX/share/texmf/tex/latex/graphics/color.sty
Package: color 1999/02/16 v1.0i Standard LaTeX Color (DPC)

(/usr/local/teTeX/share/texmf/tex/latex/config/color.cfg)
Package color Info: Driver file: pdftex.def on input line 125.

(/usr/local/teTeX/share/texmf/tex/latex/graphics/dvipsnam.def
File: dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
))
(./falling-ladder-example.aux)
\openout1 =3D `falling-ladder-example.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 106.
LaTeX Font Info:    ... okay on input line 106.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 106.
LaTeX Font Info:    ... okay on input line 106.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 106.
LaTeX Font Info:    ... okay on input line 106.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 106.
LaTeX Font Info:    ... okay on input line 106.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 106.
LaTeX Font Info:    ... okay on input line 106.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 106.
LaTeX Font Info:    ... okay on input line 106.

(/usr/local/teTeX/share/texmf/tex/context/base/supp-pdf.tex
(/usr/local/teTeX/share/texmf/tex/context/base/supp-mis.tex
loading : Context Support Macros / Missing
\protectiondepth=3D\count100
\scratchcounter=3D\count101
\scratchtoks=3D\toks21
\scratchdimen=3D\dimen116
\scratchskip=3D\skip46
\scratchmuskip=3D\muskip11
\scratchbox=3D\box30
\scratchread=3D\read1
\scratchwrite=3D\write3
\nextbox=3D\box31
\nextdepth=3D\dimen117
\everyline=3D\toks22
\!!counta=3D\count102
\!!countb=3D\count103
\recursecounter=3D\count104
)
loading : Context Support Macros / PDF
\nofMPsegments=3D\count105
\nofMParguments=3D\count106
\everyMPtoPDFconversion=3D\toks23
)
! Extra \else.
\adjustprotcode ...edadjustprotcodetrue \fi \else
                                                   \ifnum \pdftexversion > =
13...
l.111 \setprotcode \font
                        
?
! Undefined control sequence.
\adjustcp ...2\fi \char #3}\@tempcntb =3D\wd 0 \mul
                                                   \@tempcntb #1#2#3\div =
\@te...
l.111 \setprotcode \font
                        
? X

Here is how much of TeX's memory you used:
  2025 strings out of 10431
  25130 string characters out of 64719
  71650 words of memory out of 1000001
  5031 multiletter control sequences out of 10000+0
  3938 words of font info for 15 fonts, out of 400000 for 1000
  14 hyphenation exceptions out of 1000
  27i,1n,24p,238b,47s stack positions out of 300i,100n,500p,50000b,4000s
No pages of output.




This margin kerning thing is rather problematic. I think I will do 
without until someone can explain all of this to me.

Best regards,
-- 
    Gary L. Gray
    Associate Professor
    Engineering Science & Mechanics
    Penn State University
    (814) 863-1778
    http://www.esm.psu.edu/Faculty/Gray/


----------------------------------------------------------------------

Subject: URGENT: margin kerning and protcode.tex
From: "Gerben Wierda" 
Date: Wed, 31 Oct 2001 22:14:19 +0100

This is cursed. One, I forgot to put the update_protocde script in 
working condition before distributing (the commands are preceded by echo 
for testing). Two, there was a typo in protcode.tex.

And it emains cursed, because even after applying Roos Moore's patch 
correctly, I get an error when using this with pdftex 1.00a.

So, currently, I have removed the last teTeX dmg's and only the one from 
Oct 28 (with pdfTeX 0.14h) is still there.

I urgently need a good protcode.tex to put in my distribution.

This is what I now have and it seems ok to me. But it has a problem 
with \@tempcntb for some obscure reason.

\def\setprotcode#1{%
     \rpcode#1`\!=3D200
     \rpcode#1`\,=3D700
     \rpcode#1`\-=3D700
     \rpcode#1`\.=3D700
     \rpcode#1`\;=3D500
     \rpcode#1`\:=3D500
     \rpcode#1`\?=3D200
     \lpcode#1`\`=3D700
     \rpcode#1`\'=3D700
     \lpcode#1 92=3D500  % ``
     \rpcode#1 34=3D500  % ''
     \rpcode#1 123=3D300 % --
     \rpcode#1 124=3D200 % ---
     \rpcode#1`\)=3D50
     \rpcode#1`\A=3D50
     \rpcode#1`\F=3D50
     \rpcode#1`\K=3D50
     \rpcode#1`\L=3D50
     \rpcode#1`\T=3D50
     \rpcode#1`\V=3D50
     \rpcode#1`\W=3D50
     \rpcode#1`\X=3D50
     \rpcode#1`\Y=3D50
     \rpcode#1`\k=3D50
     \rpcode#1`\r=3D50
     \rpcode#1`\t=3D50
     \rpcode#1`\v=3D50
     \rpcode#1`\w=3D50
     \rpcode#1`\x=3D50
     \rpcode#1`\y=3D50
     \lpcode#1`\(=3D50
     \lpcode#1`\A=3D50
     \lpcode#1`\J=3D50
     \lpcode#1`\T=3D50
     \lpcode#1`\V=3D50
     \lpcode#1`\W=3D50
     \lpcode#1`\X=3D50
     \lpcode#1`\Y=3D50
     \lpcode#1`\v=3D50
     \lpcode#1`\w=3D50
     \lpcode#1`\x=3D50
     \lpcode#1`\y=3D50
     \adjustprotcode#1
}

\makeatletter
\newif\ifneedadjustprotcode
\def\adjustprotcode#1{%
     \needadjustprotcodefalse
     \ifnum\pdftexversion > 14
         \needadjustprotcodetrue
     \else\ifnum\pdftexversion > 13
         \ifnum \expandafter`\pdftexrevision > `g
             \needadjustprotcodetrue
	\fi
     \fi\fi
     \ifneedadjustprotcode
         \@tempcnta=3D0
         \loop
             \ifcase\lpcode#1\@tempcnta\else
                 \adjustcp\lpcode#1\@tempcnta
             \fi
             \ifcase\rpcode#1\@tempcnta\else
                 \adjustcp\rpcode#1\@tempcnta
             \fi
             \advance\@tempcnta 1
         \ifnum\@tempcnta < 256 \repeat
     \fi
}
\def\adjustcp#1#2#3{%
     \setbox0=3D\hbox{%
         \ifx#2\font\else#2\fi
         \char#3}%
     \@tempcntb=3D\wd0
     \mul\@tempcntb #1#2#3%
     \div\@tempcntb \fontdimen6 #2%
     #1#2#3=3D\@tempcntb
}
\makeatother


----------------------------------------------------------------------

Subject: update-protcode.tar.gz updated
From: "Gerben Wierda" 
Date: Wed, 31 Oct 2001 22:52:51 +0100

It has been tested and it works here.

	ftp://ftp.nluug.nl/pub/comp/macosx/tex-gs/update-protcode.tar.gz

Unpack and run the update_protcode script from the directory where it 
was unpacked. That fixes your margin kerning setup in protcode.tex with 
the *real* patch form Ross Moore. Run this over any installed teTeX.dmg

G


----------------------------------------------------------------------

Subject: Re: [Mac OS X TeX] URGENT: margin kerning and protcode.tex
From: "Ross Moore" 
Date: Thu, 1 Nov 2001 09:03:52 +1100 (EST)

> This is cursed. One, I forgot to put the update_protocde script in 

No, not cursed. It's Murphy's Anthropic Principle of Computer Programming:
 
"Every little mistake that it's reasonable that you might make,
you *will* make, before the module works perfectly".


> working condition before distributing (the commands are preceded by echo =

> for testing). Two, there was a typo in protcode.tex.
> 
> And it emains cursed, because even after applying Roos Moore's patch 
> correctly, I get an error when using this with pdftex 1.00a.

Thanh's  protcode.tex  was clearly just a quick hack to access
the margin-kerning features now available in pdfTeX.

It requires 3 edits before it becomes useable with arbitrary LaTeX jobs:

 1. fix the logic in testing for what version of pdfTeX is being used;

 2. remove the \input abbr.tex  at the beginning, which makes lots of
    unnecessary definitions (some causing conflicts);

 3. replace the \div and \mul  by \divide and \multiply (since \div , \mul
     no longer have the meanings from  abbr.tex, which may conflict =
anyway).

Now  protcode.tex  should be OK for LaTeX jobs.

It's still no good for plain TeX jobs, as it needs the proper expansions
for macros:   \makeatletter  \makeatother
and scratch count-registers:   \@tempcnta  \@tempcntb

I think you can bet that this will not be the last word on margin-kerning
and  protcode.tex .   (Murphy more or less guarantees that!)


Hope this helps,

	Ross



----------------------------------------------------------------------
End of MacOSX-TeX Digest

-----------------------------------------------------------------
To UNSUBSCRIBE, send email to  with
"unsubscribe macosx-tex" (no quotes) in the body.
For additional HELP, send email to  with
"help" (no quotes) in the body.
This list is not moderated, and I am not responsible for
messages posted by third parties.
-----------------------------------------------------------------