[OS X TeX] TS sync'ing and spaces in filename

Maarten Sneep maarten.sneep at xs4all.nl
Thu Jan 25 22:03:30 CET 2007


On Jan 25, 2007, at 21:56, Themis Matsoukas wrote:

>
> On Jan 25, 2007, at 1:43 PM, Google Kreme wrote:
>
>> On 25-Jan-2007, at 11:28, Themis Matsoukas wrote:
>>> I have a root file with input commands of the form:  \input{../ 
>>> problem-dbase/prob_subfolder/myfile.tex}. If the names of the  
>>> folders involved contain no spaces, as in this example,  
>>> synchronization works as expected. If use a folder with a space  
>>> in its name, for example, \input{../"problem dbase"/ 
>>> prob_subfolder/myfile.tex}, synchronization from pdf to source  
>>> appears to be completely broken. Removing the space from the  
>>> folder's name (and the quotes) returns behavior to normal.
>>
>> did you try \input{../Problem\ dbase/prob_sub...
>
> After you suggested it I tried, but this causes an error during  
> typesetting.
> Missing $ inserted.
> <inserted text>
>                 $
> l.34 ...blem\ dbase/PA_fit_speed/PA_fit_speed.tex}
>
>
> In case I was not clear earlier, the space in my example does not  
> interfere with typesetting, only with synchronization (and in  
> particular, pdf-to-source synchronization).

The official syntax for file names with spaces is \input{"file path/ 
with spaces/in it"}. I guess the pdfsync parser doesn't expect spaces  
in the file names and chokes on them, but running TeXShop in the  
debugger is the only way to confirm.

Maarten

------------------------- 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 macostex-archives mailing list