Hello, On Thu, 17 Jan 2008, Reuben Thomas wrote: > Sorry, I thought you just agreed that you could see the problem, which is > that sometimes a b c.tex can refer to another file which itself refers to > one of a b c.tex's auxiliary files by name. Or even, just that you can't > make an alias in the same directory (because for example you don't have > write access) and then compiling the file in a different directory doesn't > work.
In principle, adding extra quotation marks around the filename as in the enclosed script could work. However, note that TeX and its derivatives grew up on systems which generally followed the 8.3 filename conventions rather strictly. Thus adding quotes will result in strange file names being generated. For example *some* (but not all!) files get a "quote" in the file name such as '"an example".tmp'. Regards, Kapil. --
#!/bin/sh if command -v xhtex > /dev/null 2>&1 ; then true else export PATH=/usr/share/tex4ht:$PATH fi CMD='\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"[EMAIL PROTECTED]@[EMAIL PROTECTED],html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,[EMAIL PROTECTED] '$2'.a.b.c.\input "'$1'"' latex $5 $CMD latex $5 $CMD latex $5 $CMD tex4ht -f"/$1" -i"/usr/share/texmf/tex4ht/ht-fonts/$3" t4ht -f"/$1" $4 ## -d~/WWW/temp/ -m644