Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP support for LaTeX citations in text editor #58

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

krassowski
Copy link
Owner

@krassowski krassowski commented Jun 19, 2022

Closes #7.

TODO:

  • BLOCKER: cannot add multiple citations for the same item; this is because citeproc requires unique IDs; need to either (a) change the format to citationID:source|itemID,source|itemID - which gets long and unwieldy for LaTeX, or (b) do it transparently in the background? Could do (a) easily, but possibly for forward-compatibility it would be better to implement (b) immediately (unless it turns out prohibitive);
    • ideally we could have source + itemID aliases to allow \cite{surnameYear}, but not a blocker
  • BLOCKER: remove reliance on defaultFormat in index.ts as it adds <i> to latex documents breaking bibliography; instead push it down to HTML formatter (and remove the defaultFormat in general)?
  • move refocus() logic to adapter (and possibly more?)
  • better mime type detection (app.docRegistry.getFileTypeForModel(contentsModel))
  • add styles support

src/formatting.ts Fixed Show fixed Hide fixed
src/formatting.ts Fixed Show fixed Hide fixed
@krassowski krassowski mentioned this pull request Jun 19, 2022
@krassowski krassowski force-pushed the latex-in-editor branch 2 times, most recently from 35fe6ff to b521a5a Compare June 19, 2022 16:23
@jochym
Copy link

jochym commented Nov 15, 2024

Hi @krassowski ! Is there any chance for this to be finalized? I can help with testing. Unfortunately, TS is not my strong suit, so I cannot really help with programming. As I said in #7 this is a last real showstopper to move people in our department to fully JupyterLab centred workflow (calculation, analysis, figures, writing). I suspect we are not the only ones.

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.

Support LaTeX files
2 participants