JabRef / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://devdocs.jabref.org
MIT License
3.64k stars 2.59k forks source link

Markdown Export Formatter #12220

Closed LinusDietz closed 11 hours ago

LinusDietz commented 3 days ago

I quickly implemented an export format in a specific (admittedly, opinionated) format to Markdown... I find the format useful to put on websites that uses Markdown as input format website.

For anybody who's interested, the command I use to generate the list of the website is:

jabref -n -i literature.bib --exportMatches '(author="dietz"  and (entrytype=="article" or entrytype="inProceedings" or entrytype="inCollection"))',test.md,title-md

Mandatory checks

calixtus commented 3 days ago

Yes, preferences save order. Maybe we can make it somewhat customizable in the layout files in a follow up?

Siedlerchr commented 11 hours ago

You can define the export save order here:

grafik
LinusDietz commented 11 hours ago

but... can you do it in the cli from e.g. a github action?

You can define the export save order here: grafik

Siedlerchr commented 11 hours ago

Currently not possible, create a preferences file (export xml) and then you can import it via cli , "-p prefs.xml"

koppor commented 10 hours ago

Typically, CSL styles are used for it - and one can select "copy as text"

image

Result:

[1]O. Kopp, C. C. Snethlage, and C. Schwentker, “JabRef: BibTeX-based literature management software,” TUGboat, vol. 44, no. 3, pp. 441–447, 2023, doi: 10.47397/tb/44-3/tb138kopp-jabref.
[2]O. Kopp, “The LaTeXtemplate generator: How micro-templates reduce template maintenance effort,” TUGboat, vol. 44, no. 2, pp. 203–207, 2023, doi: 10.47397/tb/44-2/tb137kopp-microtemplates.
[3]M. Stötzner et al., “A Systematic Technology Review of General-Purpose Open-Source TOSCA Orchestrators,” in Proceedings of the IEEE/ACM 16th International Conference on Utility and Cloud Computing, in UCC ’23. ACM, Dec. 2023. doi: 10.1145/3603166.3632130.
[4]S. König et al., “BPMN4Cars: A Car-Tailored Workflow Engine,” in 2023 IEEE 21st International Conference on Industrial Informatics (INDIN), IEEE, Jul. 2023. doi: 10.1109/indin51400.2023.10218082.

With some RegEx magic, this can be transformed to:

* O. Kopp, C. C. Snethlage, and C. Schwentker, “JabRef: BibTeX-based literature management software,” TUGboat, vol. 44, no. 3, pp. 441–447, 2023, doi: 10.47397/tb/44-3/tb138kopp-jabref.
* O. Kopp, “The LaTeXtemplate generator: How micro-templates reduce template maintenance effort,” TUGboat, vol. 44, no. 2, pp. 203–207, 2023, doi: 10.47397/tb/44-2/tb137kopp-microtemplates.
* M. Stötzner et al., “A Systematic Technology Review of General-Purpose Open-Source TOSCA Orchestrators,” in Proceedings of the IEEE/ACM 16th International Conference on Utility and Cloud Computing, in UCC ’23. ACM, Dec. 2023. doi: 10.1145/3603166.3632130.
* S. König et al., “BPMN4Cars: A Car-Tailored Workflow Engine,” in 2023 IEEE 21st International Conference on Industrial Informatics (INDIN), IEEE, Jul. 2023. doi: 10.1109/indin51400.2023.10218082.

I know, the DOI is not linked. I filed a feature request upstream: https://github.com/michel-kraemer/citeproc-java/issues/252