Drag and Drop Bibtex \cite{}
Hi,
I'm a big zotero fan but I have a critical feature / hack request.
I'd like to be able to easily insert the Bibtex \cite{} command into a document from zotero, using the existing drag-and-drop or copy-and-paste functionality. This should be a trivial task. By setting Preferences->Export->Quick Copy -> Default Export Format to "Bibtex" Zotero will drag and drop the entire Bibtex entry into, but this is much too much information. I would like only the \cite{} command so that I can drag and drop it quickly in-line into a wating document, similar to the way BibDesk on OS X works.
Is it simple to write my own "Default Export Format" to only have the \cite{} information? Can someone point me to information? If it isn't trivial, would someone else consider taking on this task? In many ways I think it is critical, especially since there is no Word 2004 OS X plugin support for SyncPreview.
Thanks again! Go zotero.
I'm a big zotero fan but I have a critical feature / hack request.
I'd like to be able to easily insert the Bibtex \cite{} command into a document from zotero, using the existing drag-and-drop or copy-and-paste functionality. This should be a trivial task. By setting Preferences->Export->Quick Copy -> Default Export Format to "Bibtex" Zotero will drag and drop the entire Bibtex entry into, but this is much too much information. I would like only the \cite{} command so that I can drag and drop it quickly in-line into a wating document, similar to the way BibDesk on OS X works.
Is it simple to write my own "Default Export Format" to only have the \cite{} information? Can someone point me to information? If it isn't trivial, would someone else consider taking on this task? In many ways I think it is critical, especially since there is no Word 2004 OS X plugin support for SyncPreview.
Thanks again! Go zotero.
As it is now, there is no way to access the cite key at all from within Zotero.
Just a thought.
http://groups.google.com/group/zotero-dev/msg/24ff076ccf8e41b4
There has already been much discussion of whether to include a BibTeX key in the interface (as or with other local identifiers).
I wrote a hack to solve this problem. I modified Simon Kornblith's "BibTex" translator version 1.0.0b4.r1 so that it only exports the "\cite{key}".
I have posted the hacked version:
http://www.people.fas.harvard.edu/~leifer/zotero/BibTexCiteKeyOnly.js
To install, simply save the file to your Zotero translator's directory and restart Zotero.
If you don't know where your translator's directory is: go to Zotero Preferences. Open the Advanced pane. Click on "Show Data Directory." This will take you to a "zotero" folder. The "zotero" folder will contain a "translators" folder. Save the.BibtexCiteKeyOnly.js file here.
Instructions:
After you restart Zotero, you can use the drag and drop functionality by going to the "Export" preferences pane and choosing "BibTex CiteKey-Only Exporter" as the Default Output Format. Now, you can select a reference and drag it off the screen into a waiting text editor. Alternatively you can use Cmd+Shift+C to copy the \Cite{key} to your clipboard.
I hope this is useful. Enjoy.
I won't be able to fix this myself for at least several more weeks. If you still need it then, let me know and I'll take a look.
And drag and drop doesn't seem to work for Standalone Zotero.
http://www.stanford.edu/~messing/BibTexCiteKeyOnly.js
However the current version did not work for me, it was not outputting the "_" characters at least from standalone.
I reworked it from the original bibtex.js and made it so that a multiple selection is output as a single reference, i.e. \citep{ref1,ref2,ref3} instead of \citep{ref1}\citep{ref2}\citep{ref3}.
its at http://pastebin.com/GXmCJevn
You are all discussing something I'm trying to figure out. However, I'm relatively new to Zotero and LaTeX, so I'm not sure how to use the code that's been posted here.
Could someone please explain in novice-friendly terms how to make Zotero show bibtex citation keys?
Just follow Kramer's instructions from the 3rd of May 2009, they are pretty straightforward once you give them a go. The only thing I did differently was to use pobrien86's code; just copy and paste the code in the scrolling box at the bottom of the screen into a file called 'BibTexCiteKeyOnly.js' and follow Kramer's instructions and you will be fine :)
Thanks for the help!
I've simply modified the BibTeX.js provided in the default installation in order to respectively produce \cite{...} and \citep{...} commands, and only the list of currently selected item keys.
You can download them from the link below:
http://www.iadegesso.netsons.org/assets/files/zotero-translator-bibtex-cite_and_citep-keys-only.zip
Iade Gesso (http://www.iadegesso.netsons.org/ - website in Italian language only)
I took the newest bibtex translator (5-13-2012) and modified it again:
http://pastebin.com/UNVexqKc
it uses the new diacritic removal method and will output "forstner" in your citation key. This is a citep version. (really easy to change, just search for \\citep in the text file and change it to whatever other cite** version you want.)
I also removed most of the rest of the file that is not relevant to outputting the citation key.
works for me on standalone 3.0.7
I have just heard from someone who installed this yesterday following these instructions, so this definitely still works.