krassowski / jupyterlab-citation-manager

Citation Manager for JupyterLab using Zotero Web API
BSD 3-Clause "New" or "Revised" License
61 stars 2 forks source link

Support LaTeX files #7

Open krassowski opened 2 years ago

krassowski commented 2 years ago

It would be great to integrate with jupyterlab-latex nicely https://github.com/jupyterlab/jupyterlab-latex.

krassowski commented 2 years ago

The citations processor that is used in this extension already supports LaTeX output:

https://github.com/krassowski/jupyterlab-citation-manager/blob/c8a734f1604e1032856cfbd394be68e7be396e79/src/types.ts#L74-L82

https://github.com/krassowski/jupyterlab-citation-manager/blob/f3e4cee30647d47e20934be1e2a2a4967dffcb9f/schema/plugin.json#L36-L42

but more changes will be needed. The pre-requisite would be https://github.com/krassowski/jupyterlab-citation-manager/issues/8.

CC @ktaletsk

jochym commented 2 years ago

Second that! This would be the last obstacle to fully "close the loop" for me. After implementation of RTC in lab and jupyterlab-latex the only missing feature for a full research/collaboration/publication workflow is lack of the support for citations. I have tried if I can function with text exported from notebooks and conversions, but it is too complicated to force my colleagues to use it and the result is not suitable for submission to the journal. So I am stuck with writing in overleaf and constantly copying data/figures etc. instead of having everything under one roof. What will be required for such extension @krassowski ? How can I help to make it happen? And thanks for an already very useful tool!

krassowski commented 2 years ago

Hi @jochym I pushed a very rough draft in #58 but it requires more work. Briefly, the LaTeX world and citeproc processor world are quite incompatible and I am still looking at ways to build a bridge that would not take away from the benefits of either.

jochym commented 2 years ago

Thanks for your efforts! That was quick. Shall I test something already? Unfortunately, I am really not good with TS. And BTW, from my POV the perfect solution will allow for using \cite{nameYear} in the text. Just my two cents.