28

I contribute a bit to various forums and Stack Exchange sites and I often want to cite a journal article that I've found from a quick search on Google Scholar. Google Scholar allows for easy exporting of BibTeX references.

I then want to get the citation into a reasonable format for inclusion in a post (e.g., an answer on a stack exchange question). I'm not that fussy about the particular bibliographic style, although all the core information should be included (and something like APA style would be good).

Question

  • What is a quick method for getting a single BibTeX reference from Google Scholar into a respectable format for inclusion into an online forum post?

Note that I had a look at the online BibTeX Convertor and none of the formats appear suitable.

  • You can use this website: ref.lexique.org which will give you your reference in the APA style. If the site is useful to many people, I'll implement other output formats... – pandelis Mar 7 '12 at 14:41
9

BibDesk on the Mac can import and export references via the clipboard, so it's easy to import the reference into BibDesk and then export it in Rich Text or HTML by just copying and pasting it. The internal preview mechanism is driven by LaTeX, so you can use any bibliography style you need. The simplest would be to use the Rich Text export, although pasting that wouldn't do any formatting of the reference with respect to italics if you were pasting it into a .sx answer, for example, but otherwise would be fine. The basic HTML export creates a freestanding document, which isn't quite what you want, but you can modify the basic template used to make a minimal HTML template.

For example, the following citation

Chomsky, N. 2005. Three factors in language design. Linguistic inquiry 36(1). 1–22.

was placed into this answer effectively with 4 keystrokes: one to copy the BibTeX generated by Google Scholar, one to paste it into BibDesk, and one (actually a mouse action) to export it as Rich Text and one to paste it into the answer.

JabRef can also export HTML, but only through the file saving mechanism, as far as I know, so this wouldn't be so simple.

  • This works for me. To get the citation preview, you have to enable "TeX preview" in preferences, and then click on a small icon that looks like a pair of glasses, in the bar at the very bottom of the window. – Nathaniel Jan 4 '17 at 6:17
9

After reading this answer to a question on command-line bibtex tools I discovered bibtex2html.

If one or more bibtex references are contained in local.bib, the following command would output the HTML for these reference in APA style.

  • bibtex2html -nokeys -o - -s apa -nodoc -q local.bib
    • -nokeys prevents bibtex keys from being displayed, which corresponds to what I typically want to do when including formatted references in blog posts or forums
    • -s apa uses the apa style file, which on casual inspection seems to work fairly well
    • -q is quiet mode necessary to suppress unnecessary information
    • -o - means that information is sent to standard out
    • -nodoc supresses the opening and closing html code necessary to make a stand-alone document
7

To quote myself:

Google Scholar now has a cite button on each reference which makes it easy to get an APA formatted reference. See the announcment on the blog and this image taken from the blog post:

example of using cite feature in google scholar

4

You can try bibtex.online, it converts BibTeX to formatted text in many formats (APA, MLA, Chicago, Harvard, Vancouver...).

No installation is required since it runs in the browser.

Example: enter image description here

3

You could try Bibtex2Cite. It converts Bibtex article to APS style. view

2

THere is a much easier method than what you suggest with JabRef.

When clicking on the entry in the JabRef main window, the bottom panel displays a preview of the entry that is in fact a nicely formatted citation. You can select and copy this text.

This preview also has two nice features:

  • You can switch between two display formats (via F9, or right click on the area)

  • You can edit the two display formats as you wish in the JabRef preferences.

  • Shortcut to do this is CTRL-shift-C. Nice tip! – spinup Feb 12 '18 at 18:35
1

I see the easiest method is to import the file as RefMan from the menu after press cite for any research, this will give you .ris file extension. After that you can import this file through any citation program like Mendeley and through that program you can export again to .bib.

hope that will be helpful.

Reem

1

On Ubuntu,

sudo apt-get install bibtexconv
bibtexconv example.bib </usr/share/doc/bibtexconv/examples/text-example.export 

Some info on the tool and its other capabilities is here: https://www.uni-due.de/~be0001/bibtexconv/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.