textmate / latex.tmbundle

TextMate support for LaTeX
97 stars 64 forks source link

Text links broken when using \input{...} #174

Closed taiya closed 6 years ago

taiya commented 6 years ago

I store figures in my papers in their own tex file. My master find include the sub-tex files, with at most a depth 2 of dependencies. When I command+shift+click, I am often sent to the figure latex file rather than to the correct location. Known problem? Solutions?

Using this document class: \documentclass[acmtog, review]{acmart}

sanssecours commented 6 years ago

Thank you for the bug report, Andrea. Can you please provide steps to reproduce the problem?

taiya commented 6 years ago

I am afraid I cannot share the document on which I can easily reproduce the problem right now. I have tested on a blank template, and there it doesn't occur.

sanssecours commented 6 years ago

I am afraid I cannot share the document on which I can easily reproduce the problem right now.

You can replace the original text and figures of the document with placeholders. This way you do not have to share any confidential data. It also makes sense to just remove parts of the document, as long as you can reproduce the initial issue. A minimal example is much more interesting, than a document containing a lot of code, anyway.

taiya commented 6 years ago

Alright, I'll try to see what I can do, give me a day or two and I'll shot it your way

taiya commented 6 years ago

Alright, please see this folder

This is the overall effect

sanssecours commented 6 years ago

Thank you for providing the example. On my machine – using Skim 1.4.32 – ++clicking somewhere within Section 1.1 opens main.tex. That is not the desired behavior either, but differs slightly from the situation you described.

Anyway, opening the appropriate file at the correct line is actually Skim’s task in this scenario. As you can see in SkimPreferences…Sync:

sync

Skim just calls mate (the command line wrapper for TextMate) specifying the appropriate file and line number. Since Skim specifies the file (main.tex), TextMate (or any other editor for that matter) will just open this file. I opened a bug report in Skim’s bug tracker describing the issue.