citation-style-language package and autocomplete #1135
HiramTheHero
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello all,
I hope you are well, and thank you for your work on developing this awesome software.
I use a package called
citation-style-language(https://github.com/zepinglee/citeproc-lua). It provides easy access to using CSL citations and bibliography styles within latex by parsing CSL .json and .yaml formatted files. (The package provides streamlined compatibility with Zotero, which is really nice.)Texlab doesn't recognize the citation id tags within CSL formatted .json or .yaml files. Thus it doesn't provide autocomplete help when using
\citecommands. It also marks every\citeas containing references that aren't in the document.The way I've circumvented this, so far, is by exporting my citations in a .bib file as well and added
\addbibresource{my_citation_file.bib}to my file. This helps Texlab provide the autocompletions and removes the errors. However when compiling the document I get a bunch of warnings of duplicate citation id's between the .json and .bib files. So far I haven't seen any issues with compiling the document.Aside from adding a new feature to Texlab to parse CSL .json and .yaml files. (Which I assume, would be a lot of work.) I was wondering if there is a way to comment out the
\addbibresource{my_citation_file.bib}line of my document and still have Texlab provide the autocompletions.Thank you for your time and help.
All reactions