LaTeX forum ⇒ Texmaker and TeXstudioGenerates .pdf but does not open automatically

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
zane
Posts: 1
Joined: Wed May 19, 2010 8:17 pm

Generates .pdf but does not open automatically

Postby zane » Wed May 19, 2010 8:23 pm

When using Quick Build (PdfLaTeX + View PDF) it generates a pdf document in the same folder as my .tex document, but it does not open the pdf automatically when I run Quick Build. I have to manually go to the folder and open up the pdf file.
I have searched the forum and have not found any answers that help me. I am using windows. I have configured the pdf viewer:

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

When I try to run view pdf it gives me "Error: could not start the command"
Everything seems to be working fine (no errors in log) and the pdf is generated it just doesn't open automatically when I run it. Does anyone know how to fix this?

benibela
Posts: 97
Joined: Thu Aug 09, 2007 8:13 pm

Postby benibela » Sun May 23, 2010 3:10 pm

You could try to start the command
"C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" %.pdf
manually (with Win+R).
If the Acrobat Reader doesn't start, you have a wrong path for it and you should search the correct executable.
Or you can try it with TexMakerX and "?am.pdf" instead of %.pdf (there were some problems with relative paths and acrobat, but Texmaker doesn't support absolute paths) .

firass
Posts: 8
Joined: Sun May 23, 2010 5:39 pm

Postby firass » Tue May 25, 2010 10:27 am

I made a .bat file with the following in it

@start "" "C:/Program Files (x86)/Foxit Software/Foxit Reader/Foxit Reader.exe" "%~f1"

But with your pdf reader in it instead of mine, and then linking to it in TXM as if it was the pdfreader.

It worked for me :)

Note: If you've never made a .bat file before, you need to make a text document, put in the data and then edit the type of file from .txt to .bat


Return to “Texmaker and TeXstudio”

Who is online

Users browsing this forum: No registered users and 3 guests