Category: LaTeX

rss

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.

1
"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 run_in_current_dir.bat and put that in my home directory.
Contents:

1
%1 %CD%\%2

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

1
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 open source, Articles & LaTeX By DracoBlue @ 09:52 16.07.2008

Getting LaTeX to work on Windows

After I got the following errors:

1
! LaTeX Error: Cannot determine size of graphic in filename.jpg (no BoundingBox).

when trying:

1
2
3
\usepackage{graphics}
...
\includegraphics{filename.jpg}

And those errors on a .tex file (a friend gave me):

1
2
3
I found no \citation commands
I found no \bibdata command
I found no \bibstyle command

and several other issues with my latex editors on windows machines, I finally figured out to convert that tex to pdf.

First of all I installed the miktex latex command line tools. I downloaded basic version here, worked fine.

TexnicCenter and LEd can't manage to edit UTF-8 files. So I needed to stick with texmaker (which works also on linux and mac os). To get utf-8 working there, I switched to Options -> Configure Texmaker and turned Font to utf-8.

After I got those issues with includegraphics tags, I changed the 'fast translation'-key F1 to PdfLatex -> ViewPDF (in options) and: It workes well, even with those images.

In open source, Articles, Windows & LaTeX By DracoBlue @ 21:23 23.08.2007