Menu

#1222 "Go to source" does not work right with TikZ?

None
closed
nobody
None
5*
2018-07-02
2015-02-05
Anonymous
No

I am using TeXstudio 2.8.8 (hg 4829:72faf905aaf1) in Mac Yosemite 10.10.2.
The "go to source" does not always lead me to the right place in the source code when I draw pictures using TikZ. Sometimes it even leads me to the macro files of the TikZ packages which I am not supposed to see and revise. It works fine when a typesetted page does not contain picture wrapped by \begin{tikzpicture}\end{tikzpicture}. "Go to source" is my favorite function of TeXstudio. Hope it will be fixed soon. Thanks very much!!

Related

Bugs: #1225
Bugs: #1229

Discussion

  • Tim Hoffmann

    Tim Hoffmann - 2015-02-05

    Most likely, this is a limitation of synctex. I suspect that we won't be able to do anything about this. Anyway, if you provide a minimal example we can have a look.

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-02-08

    From: [bugs:#1225]

    Sorry that I do not know how to follow up ticket #1222. Allow me to create a new ticket: This is to provide a minimal example. It turns out that no \begin{tikzpicture}\end{tikzpicture} is needed in this minimal example:

    \documentclass{article}
    \usepackage{tikz}
    \usetikzlibrary{shadows}
    \begin{document}
    Test.
    \end{document}

    When I click "go to source" on "Test" in the preview window, a macro file called "pgflibraryfadings.code.tex" is loaded. Thanks for your help!

     

    Related

    Bugs: #1225

  • Tim Hoffmann

    Tim Hoffmann - 2015-02-08

    From: [bugs:#1225]

    Work here as well. Can you please provide the following files:

    • the .tex file with the above code
    • the corresponding .syntex.gz file
    • the corresponding .pdf
     

    Related

    Bugs: #1225

  • Tim Hoffmann

    Tim Hoffmann - 2015-02-08

    From [bugs:#1229]

    Thanks for your quick responses!!

    I am attaching the .tex, .synctex.gz, and the .pdf files. The three files (without recompiling) work fine with the (equivalent) "sync" function of TeXShop (3.50).

    see attachments there.

     

    Related

    Bugs: #1229

  • Tim Hoffmann

    Tim Hoffmann - 2015-02-08

    Your synctex file contains multiple content sections. Except the last one, all of them refer to tag 94 which is pgflibraryfadings.code.tex. When I compile here, I do only get a single content section which corresponds to your last one (gotosource.tex). All the sections referfing to pgflibraryfadings.code.tex are not there. I have no idea where the additional content sections come from in your case. According to the synctex format definition, there should only be one content section: http://manpages.ubuntu.com/manpages/lucid/man5/synctex.5.html

     
  • Hsueh-I Lu

    Hsueh-I Lu - 2015-02-08

    Thanks very much for your time and efforts. I just updated all of my TeXLive-2014 packages and compiled the file again. The problem remains. I guess I will just temporarily switch to TeXShop (although I do like TeXStudio better) for the paper that I am working on. Thanks again!!

     
  • Hsueh-I Lu

    Hsueh-I Lu - 2015-02-09

    I just changed the default compiler from pdflatex to xelatex and then everything functioned perfectly!! Thanks!!

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-02-09
    • status: open --> closed
    • Group: -->
     
  • Herbert Meier

    Herbert Meier - 2018-07-02

    I have the same problem. I can also reproduce the problem from the snippet posted above and compiled via lualatex (texlive 2018).

     
  • Herbert Meier

    Herbert Meier - 2018-07-02

    Addendum: I stumbled upon this https://github.com/jlaurens/synctex/issues/2 does this have anything to do with frontend (texstudio) or the compiler (lualatex)?

     

Log in to post a comment.