Comments (4)
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.
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.
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.
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 similarlyEquation (3.1)
andSection 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)
- Disabling individual warnings HOT 1
- Allow extending label commands (not just ref)
- Lsp panics after deleting last line of a file HOT 6
- Forward search broken with empty latexmkrc
- project detection: .latexmkrc in higher level parent directory HOT 2
- texlab reports dublicate and unused label in macro definition
- Feature request: support apastyle prenotes
- BibLaTeX globbing patterns (`\addbibresource[glob]{}`) do not seem to read the `.bib` files under `nvim` HOT 1
- Diagnostics not displayed with `$aux_dir`
- Texlab lsp server exits on unicode letter 1F582 HOT 4
- ignore single warnings/errors HOT 1
- Compile on save doesn't work in neovim HOT 2
- Add user-defined prefixes to custom label reference and definition commands HOT 1
- Bib reference error for subimports HOT 8
- The LSP stops working as soon as I try to type something HOT 2
- [BUG] Undefined reference even though its defined in tabularray HOT 1
- Cannot disable reference inlay hints HOT 1
- Need some help setting up preview on windows HOT 2
- \begin snippet for environments with arguments HOT 2
- False undefined reference error with thebibliography HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from texlab.