Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I use externalization, as described in the TikZ manual, to obtain a PDF file that only contains a specific figure. This involves using the PDFLaTeX Option

 --jobname=figure

when I create a build profile to accomplish this, it works in the sense that pdflatex creates a file figure.pdf. However, I cannot get this to work with Sumatra. I want it to open automatically when it is not open, and to refresh when it's already open.

I tried instructing it to open "figure.pdf" instead of %bm.pdf, but it keeps opening new Sumatra windows each time I compile. When I enable forward-search, changing the instruction from [ForwardSearch("%bm.pdf","%Wc",%l,0,0,1)] to [ForwardSearch("figure.pdf","%Wc",%l,0,0,1)], I get an error (cannot execute command). Viewer is set on do not close (as in the non-externalize case).

Does anyone know how to get it working?

share|improve this question
add comment

1 Answer

I finally found the solution. You give as an option to PDFLatex

-synctex=-1 -interaction=nonstopmode "%pm" --jobname=figure

and you use forward search as stated in the question, and it works.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.