Skip to content

CAYW arguments: autocite and TeXStudio #4

@koppor

Description

@koppor

Contributes to #1

The URL shown in https://www.youtube.com/watch?v=Whn9Mk-JwL0 should be supported

Image

?format=biblatex&command=autocite&texstudio=true&minimize=true

⚠ Will be harder to implement ⚠

org.jabref.gui.push.PushToTeXstudio needs to be called

  • Refactor package org.jabref.gui.push to GUI and logic. Inheritance is OK -- GUI has all the GUI things ("enrichments´") and logic has pure push logic
  • Refactoring is OK, e.g., database and list seem to be unsed at org.jabref.gui.push.PushToApplication#pushEntries. --> Maybe move org.jabref.gui.push.PushToApplicationCommand#getKeyString into that interface?! -- Mabe move AbstractPushToApplication to PushToApplication and get rid of the interface
  • preferences.getPushToApplicationPreferences().getCommandPaths() and all other preferences should be passed to the constructor of AbstractPushToApplication. Reason: The CAYW will have to "inject" other preferences. And full preferences are more hard to inject than smaller preference objects.
  • format=biblatex - enables following:
  • command=autocite --> preferences.getExternalApplicationsPreferences().getCiteCommand().prefix() is \autocite{
    • preferences.getExternalApplicationsPreferences().getCiteCommand().delimiter() is ,
    • preferences.getExternalApplicationsPreferences().getCiteCommand().suffix() is }
    • Maybe, it is even simpler and just \autocite{key1,key2} needs to be passed: to org.jabref.logic.push.CitationCommandString#from
  • texstudio=true: Instantiate org.jabref.gui.push.PushToTeXstudio withpreferences.getExternalApplicationsPreferences().getCiteCommand()
  • NOTE preferences.getExternalApplicationsPreferences().getCiteCommand() is only for illustration, in real, a seperate org.jabref.gui.frame.ExternalApplicationsPreferences object needs to generated and filled with a) existing preferences and b) overwritten as shown above. withers would be OK.
  • minimize: noop currently (because not the full JabRef window is opened) --> will be important if integrated in full JabRef UI

Doc for the parameters of BBT: https://retorque.re/zotero-better-bibtex/citing/cayw/#diy

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions