[OS X TeX] Emacs 22.92, %! and TeXShop

Charilaos Skiadas skiadas at hanover.edu
Fri Jan 26 18:34:01 EST 2007

On Jan 26, 2007, at 5:25 PM, Herbert Schulz wrote:

> The PostScript Language Reference Manual (I've got the old 1985  
> edition) and it says
> ``The very first line of every PostScript program (whether it is  
> conforming or nonconforming) should be a comment that begins with  
> the characters `%!'.''
> and, in the next paragraph, further says
> ``If the PostScript program is conforming, the remainder of the  
> first line (after the `%!') should be a version identifier for the  
> structuring conventions that the file obeys. ... (i.e., the first  
> 11 characters of the program ar `%!PS-Adobe-') ...''
> So everyone is correct. Of course all the logic I've seen presented  
> is still wrong: just because all PostScript files should start with  
> `%!' (maybe `%!PS...') doesn't mean that all files that start with ` 
> %!' (or even `%!PS...') must be PostScript files.

In TextMate we check for %!PS, but of course that's neither here nor  
there in this discussion ;). In any case, TextMate obeys extensions  
over first line matches, so a file with extension tex is a LaTeX  
file, end of story.

Isn't there a way to tell emacs to treat all files with extension  
"tex" as tex files too?

> 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