[OS X TeX] TeX & Mathematica 5.2

Themis Matsoukas matsoukas at psu.edu
Tue Nov 29 19:35:49 EST 2005


On Nov 29, 2005, at 6:21 AM, Bruno Voisin wrote:

> Le 29 nov. 05 à 08:20, Themis Matsoukas a écrit :
>
>> ...and if you want "file" to be stored in the same directory as  
>> the notebook (and not in the root directory where Mathematica  
>> sends it by default!!!), use
>>
>> SetDirectory[ToFileName[
>>   Extract["FileName" /. NotebookInformation[EvaluationNotebook[]],  
>> {1},
>>     FrontEnd`FileName]]];
>
> Many thanks! I had been wondering for some time how to change that  
> (inconvenient, IMHO) default Mathematica setting. Now I just have  
> to figure out how to alter the above code so that the graphics are  
> saved in a subdirectory Graphics of the directory where the  
> notebook lives in.


You don't have to alter the above code: after the SetDirectory  
command just use
    Export["lola/MyFile.xyz", expr, "format"]
where lola is a subdirectory (must be created before the Export  
command is invoked).

Themis


------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list