new citation style which renders citations as a latex command for citation with their bibtex key

edited 2 days ago
Hi,

Because I use Zotero as my main reference manager, I sometimes write chunks of text in a WYSISYG editor (e.g. LO Writer), where I add the correct references. Then, often, I want to copy and paste this text into a latex document.

The issue is that I need to change the citations into latex command with the corresponding latex key to the citation.

Is it possible to develop a citation style that formats citations into the latex command with the corresponding bibtex key?

Hypothetical example in LO Writer usin Zotero:
* chicago author-date style: Lorem ipsum (Barker, 1999)
* new latex command style: Lorem ipsum \citep{Barker_Title_1999}

Ideally, the new style could be customised to use different latex commands ( \cite, \citep, \citet).
Also, ideally, the style would take options and pass them to the latex command.

* chicago author-date style: Lorem ipsum (Barker, 1999, p. 9)
* new latex command style: Lorem ipsum \citep[p. 9]{Barker_Title_1999}

Is that possible? How can I pass the bibtex key and options in the CSL to generate the new citation?

This citation style would only be for the purpose of copying and pasting the text directly into the latex document (and copying and pasting the used references in the corresponding bib file). I believe it would be of great help to anybody writing in an conventional text editor and then using latex at a later stage of writing.

Thank you,
Aleix

Sign In or Register to comment.