Not signed in (Sign In)
Quick Links
Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
-
- CommentAuthorKramer
- CommentTimeDec 17th 2008
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. -
- CommentAuthorKramer
- CommentTimeDec 17th 2008
Moroever, it would be very helpful to be able to see the Bibtex cite key somehow within zotero, either as an optional column in the main pane, or as a key on the "Info" tab.
As it is now, there is no way to access the cite key at all from within Zotero.
Just a thought. -
- CommentAuthornoksagt
- CommentTimeDec 17th 2008
If your LaTeX editor supports lyxpipes, look at:
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). -
- CommentAuthorKramer
- CommentTimeMay 3rd 2009
Thank you noksagt for the info.
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. -
- CommentAuthorlimpato
- CommentTimeMay 1st 2010
OK, it works, I can use it. It is same with idea of Mr. Ajlyon. I can use it now.. Thank you. -
- CommentAuthormessing
- CommentTimeApr 4th 2011
Looks like the new Zotero updates have broken this functionality, at least on mac. -
- CommentAuthorajlyon
- CommentTimeApr 4th 2011
Essentially, BibTeX.js was reworked somewhat because of some changes in Z 2.1. If you take a look at the new BibTeX.js, you should be able to hack together this again.
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. -
- CommentAuthormessing
- CommentTimeApr 4th 2011
Thanks, looks like I just had to re-hack it for the most recent update. I'll make my bibtex output files available to others later today (Apr 4 2011) at: http://www.stanford.edu/~messing/BibTexCiteKeyOnly.js. -
- CommentAuthormyles
- CommentTimeApr 28th 2011 edited
Thanks, that works for me however for the new translator to appear in the list to choose from I think the "translatorID" needs changing a little bit to make it different from the existing Bibtex translator, e.g. I changed the first letter "translatorID":"5cb7002....etc
And drag and drop doesn't seem to work for Standalone Zotero. -
- CommentAuthorjweile
- CommentTimeJun 23rd 2011
Great work! That last link to the updated script seems to be broken though. Can anyone host it again somewhere, please? -
- CommentAuthoradamsmith
- CommentTimeJun 23rd 2011
it's not broken, it just has a period at the end that shouldn't be there:
http://www.stanford.edu/~messing/BibTexCiteKeyOnly.js -
- CommentAuthorpobrien86
- CommentTimeJun 28th 2011
This is excellent!
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 -
- CommentAuthorvezer
- CommentTimeJun 29th 2011
Hi Everyone,
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? -
- CommentAuthortclose
- CommentTimeJul 5th 2011
Hey Vezer,
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 :) -
- CommentAuthorpgraggo
- CommentTimeAug 18th 2011
Hi everyone! Thanks again for the solution. For some reason pobrien86's solution works on the firefox zotero but not my standalone. I was wondering if you all have the same experience from tclose's post, it seems as it works for her/him.
Thanks for the help! -
- CommentAuthormaclabbiblio
- CommentTimeSep 9th 2011 edited
Hi,
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) -
- CommentAuthorpszacherski
- CommentTimeApr 27th 2012
Thanks for the great job, maclabbibio, I've been using it for a couple of weeks now: it's simply genius. I noticed a little "bug" though: when the first author's name contains a special character. I give a concrete example: The first author's name is Förstner. Zotero exports "forstner" as bibtex key, quick-export "foerstner" (transcribing the special character Ö in an international way).
1 to 17 of 17

Upgrade Storage