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
Post Reply
zane
Posts: 1
Joined: Wed May 19, 2010 8:17 pm

Generates .pdf but does not open automatically

Post by zane »

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?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

Re: Generates .pdf but does not open automatically

Post by benibela »

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

Re: Generates .pdf but does not open automatically

Post by firass »

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
Post Reply