[OS X TeX] print the latex source filename

Claus Gerhardt gerhardt at me.com
Sat Mar 21 14:39:30 EDT 2009


Attached is a modified script which also invokes a complete  
compilation, read the requirements.

(* The script writes the file path, the creation date and the  
modification date and the new commands

\theFile
\modDate
\creationDate

to a file filename.additions. Read this file via  
\input{filename.additions}, then the above commands and their values  
are available.

The script also invokes a complete tex run (this action requires first  
line parsing - one of the following -

%&pdflatex
%&cont-en
%&pdftex
%&xelatex
%&xetex


and the installation of Flashmode).

The script can be saved as TeXShop macro.*)

Claus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: additions.scpt.zip
Type: application/zip
Size: 9911 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20090321/1dfbc83d/attachment.zip>
-------------- next part --------------



On Mar 21, 2009, at 19:09, Claus Gerhardt wrote:

> I don't know the fink package. Here is the content of "qfriedman- 
> ym.additions" from my test
>
> \newcommand{\theFile}{/Users/claus/Documents/qfriedman-ym.tex}
> \newcommand{\creationDate}{February 8, 2009 11:58:18}
> \newcommand{\modDate}{March 21, 2009 18:39:49}
>
> Whenever the script is executed the old content will be replaced. My  
> suggestion is: try it.
>
> Claus
>
> On Mar 21, 2009, at 18:54, Alain Schremmer wrote:
>
>>
>> On Mar 21, 2009, at 1:49 PM, Claus Gerhardt wrote:
>>
>>> (* The attached script writes the file path, the creation date and  
>>> the modification date and the new commands
>>>
>>> \theFile
>>> \modDate
>>> \creationDate
>>>
>>> to a file filename.additions. Read this file via  
>>> \input{filename.additions}, then the above commands and their  
>>> values are available.
>>
>> A quick reaction as I have to leave:
>>
>> How  does this compare with the fink package?
>>
>> Best regards
>> --schremmer
>> ----------- Please Consult the Following Before Posting -----------
>> TeX FAQ: http://www.tex.ac.uk/faq
>> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
>> List Archive: http://tug.org/pipermail/macostex-archives/
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>



More information about the MacOSX-TeX mailing list