Re: [Vim-latex-devel] Opening file with acrord in windows
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2004-05-20 18:03:11
|
On Wed, 19 May 2004, Aditya Mahajan wrote: > It turns out that the error occurs because acrobat reader does not > recognize the directory from which it was launched. This is easy to > see. CD to a directory having a pdf file, say test.pdf and on command > prompt type > acrord32 file.pdf This is pretty strange. On my system (windows XP + Adobe Acrobat Reader 5.0), if I have the reader open (but without the file) and if I issue a command like AcroRd32 file.pdf from a command prompt after cd'ing to the directory containing the file, Acrobat does correctly launch the file... > Note that I have changed "%:p:t:r" to "%:p:r" so that mainfname points > to the complete path of the file. > > Now \lv calls > :!start Acrord32 "complete_path_to_file/file.pdf" > and the file shows correctly. Also the filename is surrounded with > quotes, so everything should be fine. > Unfortunately, there are a LOT of issues when doing this. For one, enclosing the file name in quotes doesn't work on some systems when the the actual shell command is interpreted by bash or similar which quotes the command... Escaping on the other hand works in *nix but not on windows... I cannot trivially make this change without making tests on other systems... Srinath |