Skip to content

Indicate LaTeX tags and page numbers for references#68

Open
ivlis wants to merge 2 commits into
msiniscalchi:masterfrom
ivlis:feature-ref-aux-compl-pr
Open

Indicate LaTeX tags and page numbers for references#68
ivlis wants to merge 2 commits into
msiniscalchi:masterfrom
ivlis:feature-ref-aux-compl-pr

Conversation

@ivlis

@ivlis ivlis commented Mar 25, 2016

Copy link
Copy Markdown

References parsing is moved to get-ref-completions.coffee. The new module uses
an .aux file to extract references, which is much faster, then scanning all tex
files. Also, it is possible to extract information about tags and pages.

Drawback? The completions do not work if the tex file is not complied. But this
should not be a big deal, as we use this package to compile tex files anyway.

References parsing is moved to get-ref-completions.coffee. The new module uses
an .aux file to extract references, which is much faster, then scanning all tex
files. Also, it is possible to extract information about tags and pages.

Drawback? The completions do not work if the tex file is not complied. But this
should not be a big deal, as we use this package to compile tex files anyway.
@ig0774

ig0774 commented Mar 25, 2016

Copy link
Copy Markdown
Collaborator

Wouldn't it be better to use the .aux file, if present, but to fall-back to the current method if it isn't for whatever reason? Also will this work with \included files?

@ivlis

ivlis commented Mar 25, 2016

Copy link
Copy Markdown
Author

The method was inspired by LaTeXbox for vim, which works with multiple files. I will check this.

It is not a big deal to implement the fallback, but direct scanning of tex files is very slow. I feel it rather painfully for my files having over 1000 lines.

If no aux file is found, we fallback to tex files scanning
@ivlis

ivlis commented Mar 26, 2016

Copy link
Copy Markdown
Author

@ig0774 I added a fallback function, which implements the old functionality. The \input directive works. For \include this method doesn't work, as there is no aux file. For me having information about the latex tag and the page is much more important.

@ivlis

ivlis commented Apr 7, 2016

Copy link
Copy Markdown
Author

@msiniscalchi Any progress on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants