How can I modify what is exported to the clipboard?
I'd like to export citations to a specific format using Markdown syntax and copy them to clipboard. I can copy a plaintext version of a bibliography to the clipboard, but I'd like to add some markdown formatting and a hyperlink to it.
There is certainly a way to modify the formatting of the bibliography entries that are copied to the clipboard, but I just can't find it. I don't want to change the citation style itself, just add some formatting to it.
How would I modify how the bibliography is exported to the clipboard?
There is certainly a way to modify the formatting of the bibliography entries that are copied to the clipboard, but I just can't find it. I don't want to change the citation style itself, just add some formatting to it.
How would I modify how the bibliography is exported to the clipboard?
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
I'm not sure what you're trying to do exactly - I'd need so see an example - but yes, you'd have to modify one of the two. Depending on what you want to do, it may not be possible with CSL - if it is, though, it's easier to do.
If I don't check the "copy as HTML" option and use the Nature citation style, the plain text output is the following, which is reasonably close to what I need:
1.Weber, B. et al. Ohm’s Law Survives to the Atomic Scale. Science 335, 64 -67 (2012).
I'd like to add some formatting commands and a hyperlink to it, like
<sup>[1. Weber, B. et al. Ohm’s Law Survives to the Atomic Scale. *Science* **335**, 64-67 (2012).]({insert DOI link})</sup>
I was unable to find the script that outputs this plaintext version of the Nature style, or is the style itself completely responsible for that? Because there is an option to format it as HTML I assumed that there is some later part that formats whatever the output of the style is.
http://www.zotero.org/support/dev/citation_styles/style_editing_step-by-step which has links to advanced documentation. Remember that you will have to escape a lot of the mark-up symbols in xml.
Theoretically, I guess, you could modify citeproc.js - which generates the citations - but that's a rather complex >10k lines of code, so I'd say that option isn't really one.