🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x.apps
Article #542

Re: TransFig 2.1.5 is available on export

#542
From: Duty Programmer
Date: Thu, 12 Nov 1992 00:23
40 lines
2606 bytes
I've just compiled transfig 2.1.5 on our RS/6000 system running
AIX 3.1 and there seems to be a problem in some string constants. It seems
that some versions of cpp must treat braces specially, so they have been
escaped in the code:

> 	cc -O   -I/usr/include -I..     -DXAW_BC -c mkfile.c
>        89 |                 fprintf(mk,"\techo \'\\strut\\psfig\{figure=%s.
>             ....................................................a..........
> a - 1506-235: (W) Illegal escape sequence { ignored.
>             ps\}\' >%s.tex\n",
>             ...a..............
> a - 1506-235: (W) Illegal escape sequence } ignored.

OK, this is harmless and the braces should be output as intended (although
it would be nice to have ifdefs around this so the compile is clean. I'm
not aware of any systems treating curly braces specially, so i'm not sure
what the default should be ... ?

> 	cc -O   -I/usr/include -I..    -DEPIC -DIBMGL -DLATEX -DPIC -DPICTEX -DPS -DPSTEX -DTEXTYL -DTPIC -DXAW_BC -c iso2tex.c
>        86 |   "{\rlap{\raise.3ex\hbox{--}}D}", /* Eth */
>             .....................a......................
> a - 1506-235: (W) Illegal escape sequence h ignored.

This one is the real problem! Of course '\r' is a carriage return, so
this will become:

	"{<cr>lap{<cr>aise.3exhbox{--}}D}"

... ouch! Fortunately, the '\h' warning brought this to my attention, but
i wonder how many other '\r's or other incorrect escape sequences are
hiding in the TeX output ? I had a quick look and i couldn't see any others.
Surely this would break (at least) iso2tex ... ? Am i missing something,
or is this a new bug, or one that just hasn't been found yet ?

rab
------------------------------------------------------------------------
Richard Brown                     | E-mail: rab@tauon.ph.unimelb.EDU.AU
School of Physics                 | Phone : +61 3 344 5081
University of Melbourne           | Fax   : +61 3 347 4783
Parkville Victoria AUSTRALIA 3052 | Telex : AA35185
Technical Details
Message-ID: <1ds85tINNelf@ariel.ucs.unimelb.EDU.AU>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ariel.ucs.unimelb.EDU.AU!not-for-mail
References: <27328@dog.ee.lbl.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ariel.ucs.unimelb.EDU.AU!not-for-mail
From: duty@ariel.ucs.unimelb.EDU.AU (Duty Programmer)
Newsgroups: comp.windows.x.apps
Subject: Re: TransFig 2.1.5 is available on export
Date: 12 Nov 1992 11:23:25 +1100
Organization: Information Technology Services, University of Melbourne
Lines: 40
Sender: rab@tauon.ph.unimelb.EDU.AU
Distribution: world
Message-ID: <1ds85tINNelf@ariel.ucs.unimelb.EDU.AU>
References: <27328@dog.ee.lbl.gov>
Reply-To: rab@tauon.ph.unimelb.EDU.AU
NNTP-Posting-Host: ariel.ucs.unimelb.edu.au