biblatex bibtool BibTeX CSL
- Journal 2023-11-09 Bibliography Setup
-
https://citationstyles.org/authors/#/finding-and-installing-styles
recommends finding CSL styles using Zotero Style Repository
pandoc --citeproc \ --bibliography=zk.bib \ --metadata='link-citations:true' \ --from=markdown+wikilinks_title_after_pipe \ --standalone \ --to=markdown-citations \ --wrap=none \ 20231019-0701.md | python dude.py
::: {#refs .references .csl-bib-body .hanging-indent} ::: {#ref-bloggs-jones .csl-entry} Bloggs, A. J., and X. Y. Jones. 1959. "Title Title Title Title Title Title Title Title Title Title." *Journal Journal Journal*. ::: ::: {#ref-chomsky-73 .csl-entry} Chomsky, N. 1973. "Conditions on Transformations." In *A Festschrift for Morris Halle*, edited by S. R. Anderson and P. Kiparsky. New York: Holt, Rinehart & Winston. ::: :::
import sys import re def GetTheSentences(): for result in re.findall('::: {#ref-(.*?):::', sys.stdin.read(), re.S): entry = result.split("\n") reference = f"[#{entry[0].split()[0]}]:" citation = "\n".join(entry[1:]) print(f"{reference} {citation}") if __name__ == "__main__": GetTheSentences()
-
fzf-bibtex uses
bibtool
to parseBibTeX
.