TransWikia.com

How do I open the internal viewer in a custom Quick Build command with TeXStudio or TeXMaker?

TeX - LaTeX Asked on March 29, 2021

I’m using TeXStudio 2.2 (A fork of TeXMaker, formerly known as TeXMakerX) and I’m trying to make a Quickbuild option that adds in Bibtex. I’ve written the command line as

pdflatex -interaction=nonstopmode %.tex|bibtex %.aux|pdflatex -interaction=nonstopmode %.tex|pdflatex -interaction=nonstopmode %.tex| pdflatex -interaction=nonstopmode %.tex | 

Which I think should work, but I deleted the end of the line, as I figured there was a command I needed to add there for the internal viewer. However, according to How do I open a pdf file in the TexMaker internal PDF viewer using a user-defined quick build sequence? I need to put in the original command to run my PDF viewer, then leave the ‘internal viewer’ box checked. However, I have no idea what that original command was now.

I’ve tried

"C:Program Files (x86)AdobeReader 10.0ReaderAcroRd32.exe" "?am.pdf"

Which is what is listed under ‘Pdf viewer’ but that opens the file in Adobe, even with the ‘Internal Viewer’ option checked.

Most of the pages I’ve found via google tell you to quite using the command line and use the wizard to make it for you, but that option is greyed out in my version.

So could someone tell me what the default PDF Viewer command is on Windows (7 if it matters) with Adobe Reader X (10.1.1) installed in either TeXStudio or TeXmaker?

One Answer

For the recent version (4.1.1) of Texmaker, the solution provided in How do I open a pdf file in the TexMaker internal PDF viewer using a user-defined quick build sequence? should still work and open the internal PDF viewer instead of the external one.


In TeXstudio (current version: 2.7.0), however, the implementation has changed: Now the internal PDF viewer is opened by specifying txs:///view-pdf-internal1 in the user-defined Quick Build command. So the correct call would be

pdflatex -interaction=nonstopmode %.tex|bibtex %.aux|pdflatex -interaction=nonstopmode %.tex|pdflatex -interaction=nonstopmode %.tex|pdflatex -interaction=nonstopmode %.tex|txs:///view-pdf-internal

in your case.

1Until TeXstudio version 2.5.1, it was tmx://internal-pdf-viewer.

Correct answer by diabonas on March 29, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP