Problem: TexMaker fails to reliably open PDF files with Acrobat Reader under Windows 10

The problem seems to be that TexMaker fails to reliably open PDF files that it generated using Acrobat Reader as external viewer under Windows 10.

The problem was recognized elsewhere, to different degrees.

Even though the problems were described, a missing test remained and that was whether PDFs that did not require prior generation/ building because they were already generated / built would also succumb to this problem. As these forums are a bit problematic to enter and register, particularly stackexchange requires some credits before any solution can be posted there, I just put this on my own website here.

My problem was that not only did the TexMaker program not correctly process a Quick Build made of PDFLaTeX>View PDF, but also, it failed to reliably and always open any existing PDF using the View PDF (F7) command – so, with a PDF safely generated and in place of its file/folder path, repeatedly pressing F7, slowly, then closing the file again, trying again, would not always open the file, only sometimes. This points to a problem not along the lines of PDF file missing – that was there all along – but somewhere between TexMaker and Acrobat Reader.

So it seems the underlying problem was identified on the Latex.org forum by T3., in that Adobe Acrobat apparently requires a full file path to open PDFs, and as these seemed to only sometimes get transmitted correctly using the TexMaker interface settings, the workaround that I found worked is as recommended by T3. on the Latex.Org forum:

Define the command “External viewer” inside TexMaker > Configure TexMaker as follows:

C:/Users/ownusername/Documents/viewpdf.bat” %.pdf

That command would hand over the file path as %, to a script called viewpdf.bat 

So I then defined such a script following T3.’s recommendation: at the directory with the path C:\Users\ownusername\Documents I placed a text file that I generated myself and that I named viewpdf.bat, into which I placed the following single line:

@start “C:/Program Files (x86)/Adobe/Acrobat Reader DC/Reader/AcroRd32.exe” “%~f1”

Obviously, you will have to be consistent and correct in replacing all, particularly the highlighted parts, here (bold, orange) with your own file and path names.

Links:


Cite this article:
Wolf Schweitzer: swisswuff.ch - Problem: TexMaker fails to reliably open PDF files with Acrobat Reader under Windows 10; published 07/01/2021, 14:08; URL: https://www.swisswuff.ch/wordpress/?p=1832.

BibTeX: @MISC{schweitzer_wolf_1638799272, author = {Wolf Schweitzer}, title = {{swisswuff.ch - Problem: TexMaker fails to reliably open PDF files with Acrobat Reader under Windows 10}}, month = {January}, year = {2021}, url = {https://www.swisswuff.ch/wordpress/?p=1832} }