TransWikia.com

miktex update causes issues "go to source/pdf" in TeXstudio

TeX - LaTeX Asked by mbert on July 8, 2021

The most recent MiKTeX update 21.6 resolves an issue involving the aux directory that seems to have changed the behavior of -aux-directory=<filename> to place the .synctex.gz files in the auxiliary folder rather than in the output directory (in this case the same location as the TeX file and PDF output since no -output-directory is specified) as it did before the update. This is confusing because in the linked issue, it’s explained that SyncTeX files are indeed output files, not auxiliary files.

It would not be a concern except that TeXstudio needs the synctex.gz file in the same location as the TeX and PDF files for "go to source/pdf" to work (explained here). The command I’m running in TeXstudio 3.1.2 is

pdflatex.exe -synctex=1 -interaction=nonstopmode -aux-directory=C:Usersmatthewmathauxtexfiles %.tex

on Windows 10. Is there a workaround to either tell TeXstudio to look in the auxiliary folder for the SyncTeX files or tell MiKTeX to place SyncTeX files with the TeX and PDF files as it did before the update?

One Answer

The solution I found to work with TeXstudio on Windows 10 consists of editing the PdfLaTeX command within settings of TeXstudio so that it resembles the following:

pdflatex.exe -synctex=1 -interaction=nonstopmode -aux-directory=build -output-directory=./ %.tex

where build is my directory for auxiliary files and ./ specifies the current root directory where output files should be placed, e.g. .pdf,.synctex.gz, etc.

Correct answer by robottom on July 8, 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