[OS X TeX] Emacs 22.92, %! and TeXShop
Herbert Schulz
herbs at wideopenwest.com
Sat Jan 27 09:47:07 EST 2007
On Jan 27, 2007, at 7:00 AM, Peter Dyballa wrote:
> Am 27.01.2007 um 12:53 schrieb Peter Dyballa:
>
>> GNU Emacs' understanding of "%!" is as crude as that of CUPS (was).
>
> I have to correct myself: CUPS still makes that silly test!
>
> How to check this?
>
> Take a small text file of, say, 20 or 30 lines.
> Print it.
> Now add a new first line like this to it: %!TEX
> (you might write the complete TeXShop statement if you want)
> Save the change and print the modified file.
>
> Are both prints quite the same?
>
> For my printer they are not! In the second case I get white paper
> printer – it isn't PostScript!
>
>
> The explanations is: when CUPS sees that the (specified) printer is
> a PostScript printer, it wraps the text file into some PostScript
> code that it prints as PostScript. When in the other case CUPS sees
> it is already PostScript, then it passes the data unchanged to the
> printer. And since after the first comment line no PostScript
> comes, no PostScript code is executed and so nothing is printed.
>
> --
> Greetings
>
> Pete
>
Howdy,
I'm using the Brother PS(like) driver (rather than the CUPS driver)
for my HD-5250DN printer. (Actually, I think you suggested it since
the CUPS driver wouldn't print certain maths available in the fourier
package. Thanks again for that :-).)
If I Print Source for a file within TeXShop (with the %!TEX...
header) I have no problems. Does the PS(like) driver automatically
wrap the file with a PS header?
Finally, maybe to put this thread to sleep, while I still know it's
faulty logic to think that `If A then B' implies `If B then A' I will
admit the (incorrect and illogical) `tradition' that `%!' at the
start of a file implies PostScript may be well established.
If you use `%%!' will emacsen (etc.) still assume the file is
PostScript? I ask because TeXShop still recognizes the line as a
proper setting; e.g. it will still set the proper engine. Then folks
who use TeXShop to run the engine and display the pdf from within
emacsen would just add the extra `%' at the head of that line; the
rest of use need not worry.
Good Luck,
Herb Schulz
(herbs at wideopenwest.com)
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
More information about the MacOSX-TeX
mailing list