dracoblue.net

Launching Acrobat-Reader with Relative Filenames

Today I noticed once again, that texmaker only supports the following command to launch the newly generated .pdf file.

"C:/Program Files/Adobe/Reader 8.0/Reader/AcroRd32.exe" %.pdf

Actually AcrobatReader does not like that, since he won't find the .pdf file, since it is not a absolute path.

To fix that problem I wrote a small .bat-file called runincurrent_dir.bat and put that in my home directory. Contents:

%1 %CD%\%2

Now I put in the line for automatic pdf display the following:

c:\users\jan\run_in_current_dir.bat "C:/Program Files/Adobe/Reader 8.0/Reader/AcroRd32.exe" %.pdf

Hope that helps anyone else expiriencing problems with relative filenames and acrobat reader.

In articles, latex, open source by
@ 16 Jul 2008, Comments at Reddit & Hackernews

Give something back

Were my blog posts useful to you? If you want to give back, support one of these charities, too!

Report hate in social media Campact e.V. With our technology and your help, we protect the oceans from plastic waste. Gesellschaft fur Freiheitsrechte e. V. The civil eye in the mediterranean

Recent Dev-Articles

Read recently

Recent Files

About