[OS X TeX] epstopdf

Morten Høgholm morten.hoegholm at gmail.com
Wed Sep 28 16:45:26 EDT 2005


On Wed, 28 Sep 2005 22:37:00 +0200, Jung-Tsung Shen <jushen at gmail.com>  
wrote:

> Chris,
>
>> With one (ironic) caveat, of course. If you then reference your file
>> name from within TeX, you'll have to escape the _ or you'll get an
>> error.
>
> Just want to make sure, a file name like "Name1_Name2.tex" can cause
> troubles? Can you elaborate it a bit? I'd rather prepare for those
> situations now than too late ...

Using underscore in your file name is actually quite unlikely to cause any  
problems. TeX does not parse the tokens that way when reading a file name.  
Furthermore, when using \jobname to get the name of your current file all  
the tokens coming out of that primitive are catcoded to 12 (except space  
as usual).

Only if you do something like

   \def\somefilename{Name1_Name2.tex}
   I'm using \somefilename{} here

will get you into trouble. In that case you'll probably want to look up  
\@sanitize from the latex kernel.
-- 
Morten
------------------------- 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