BibTeX key into part of style XML
Hello,
in order to reformat an article written in LibreOffice into Markdown for further processing by pandoc/scholdoc & LaTeX (based on this if someone is interested), I have to replace all the "(Author, Year)" citations in the text with "[@BibTeX_key]".
Can this be done by a custom .csl? I didn't find a useful references to the BibTeX key in the CSL docu. Better Bib(La)TeX doesn't seem to be made to pass the key to LibreOffice or Word.
Thanks for any advice and kind regards :-)
in order to reformat an article written in LibreOffice into Markdown for further processing by pandoc/scholdoc & LaTeX (based on this if someone is interested), I have to replace all the "(Author, Year)" citations in the text with "[@BibTeX_key]".
Can this be done by a custom .csl? I didn't find a useful references to the BibTeX key in the CSL docu. Better Bib(La)TeX doesn't seem to be made to pass the key to LibreOffice or Word.
Thanks for any advice and kind regards :-)
-
adamsmithsorry, can't be done as of now. Zotero doesn't expose bibtex citekeys to the CSL processor.
-
CathryneOK, thanks for confirming. Would it alternatively be possible to code a citation style that selects the 1 word from the title, like "[auth].[year].[Title:skipwords:select,1,1]" explained on https://zotplus.github.io/better-bibtex/Citation-Keys.html
-
adamsmithno, sorry, I would have mentioned that otherwise. CSL is a citation language, not a programming language. You can't do things like extract individual words from a string.
-
CathryneAlrighty then! *flexes fingers for copy-and-paste marathon*