GeneralTXC 2.0 alpha 1 - Solved issue with SumatraPDF as viewer

General information and discussion about TeXnicCenter
Post Reply
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

TXC 2.0 alpha 1 - Solved issue with SumatraPDF as viewer

Post by localghost »

Today I did a little bit more testing. This included mainly the compilation of different files directly to PDF with the default profiles. The issue that occurred concerns the call of SumatraPDF as viewer. The viewer appears quite normal at first sight with the document displayed. But very soon TXC comes up with an error message.
Error message from TXC after calling SumatraPDF as viewer.
Error message from TXC after calling SumatraPDF as viewer.
TXC2alpha1-pdfviewer-sumatrapdf.png (7.93 KiB) Viewed 2758 times
This made me take a closer look at the profiles but at first sight nothing seemed faulty to me. Finally these profiles where generated by default and I assumed that they would be correct. I remembered a blog where configuration of SumatraPDF with several editors is described [1]. And there I found the solution. The profiles have to be corrected slightly by enabling Synctex as seen below (please note the mouse cursor).
Modified output profile with Synctex enabled and SumatraPDF as viewer.
Modified output profile with Synctex enabled and SumatraPDF as viewer.
TXC2alpha1-pdflatex-profile-modified.png (46.78 KiB) Viewed 2758 times
Thus there is a supplement needed in the command line arguments for the compiler.

Code: Select all

-synctex=-1 -interaction=nonstopmode -max-print-line=120 "%pm"
I compiled again and now forward and reverse search in PDF with TXC and SumatraPDF works fine.

To cut a long story short, the reason why I described this here is to give a little help to those struggling with that and to give a hint to the developers. Perhaps they can give a short feedback.

[1] william.famille-blum.org news - Configuring editors with SumatraPDF


Best regards
Thorsten

Recommended reading 2024:

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

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

Tino Weinkauf
Posts: 25
Joined: Sat Aug 09, 2008 6:00 pm

TXC 2.0 alpha 1 - Solved issue with SumatraPDF as viewer

Post by Tino Weinkauf »

Thank you, Thorsten. We did not yet put much effort into the profiles. But there is a nice new tutorial on our website that describes how to configure TXC to work nicely together with Sumatra. You find it in the tutorials section: http://www.texniccenter.org/resources/tutorials
TeXnicCenter Maintainer
http://www.texniccenter.org/
Post Reply