GithubHelp home page GithubHelp logo

Comments (4)

efoerster avatar efoerster commented on August 24, 2024

Thanks for your great feedback 👍
We have deployed a new version including most of these features. However, we still have some questions:

support for parsing citations from a bibliography added with \bibliography{path/to/bib}

It should work with relative paths. Did you try it with absolute paths? They are not supported yet.

hover support for references and citations: when the user hovers over a reference show the definition

What do you mean with the definition of a reference? (\label{foo} ?)

from texlab.

tbdcit avatar tbdcit commented on August 24, 2024

Thanks for the quick response!

I have just built and tested some of the more recent features and can confirm that the following are working as expected:

  • completion of \eqref
  • completion of \cite with additional dialog showing extra information about the citation (hover support working also)

As for included bib files, I find that none of the following work

\bibliography{/home/user/work/bibliography/bibliography}
\bibliography{../../bibliography/bibliography}
\addbibresource{../../bibliography/bibliography.bib}

where as the following do work as expected

\bibliography{/home/user/work/bibliography/bibliography.bib}
\addbibresource{/home/user/work/bibliography/bibliography.bib}

(note that the first example should not work i.e. latex won't find the bibliography when compiling the file).

hover support for references and citations: when the user hovers over a reference show the definition

What do you mean with the definition of a reference? (\label{foo} ?)

Yes - when the user hovers over a \ref{my-label} it would be useful to see a dialog containing the text in the document where \label{my-label} appears (for example you could just include the line containing \label{my-label} but this wouldn't be very useful for equation references where instead it might be better to show the line containing \label{my-label} and the line that follows it). There is an excellent plugin for org mode in emacs called org-ref that provides such features for both latex and org mode files which might be worth looking at.

from texlab.

efoerster avatar efoerster commented on August 24, 2024

As for included bib files, I find that none of the following work [...]

Including files that are not part of the current workspace should now work correctly.

Yes - when the user hovers over a \ref{my-label} it would be useful to see a dialog containing the text in the document [...]

This can already be done with the "Peek Definition" or "Go To Definition" feature, which most editors provide.

from texlab.

clason avatar clason commented on August 24, 2024

Regarding the last comment: One useful possibility that doesn't duplicate existing functionality would be if hover over a reference previewed the formatted reference, i.e.,

  • (3.1) for \eqref{eq:iteration-definition},
  • 2.4 for \ref{sec:convergence},
  • Theorem 4.1 for \cref{thm:error-estimates} (and similarly Equation (3.1) and Section 2.4 if \cref was used instead of \eqref and \ref above).

(Vimtex does this for completion previews. I do find this useful, since sometimes I can remember the tex label, other times only the formatted label when looking for something -- especially in longer projects like books.)

from texlab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.