Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there an existing tool for generating BibTeX of a website using its URL? What I'm thinking is something like a web tool or a Python script that does this.

share|improve this question
    
add comment

2 Answers

up vote 9 down vote accepted

I'm using Zotero, a Firefox plugin, to collect and maintain my references. It has to possiblity to export to BibTeX and to generate an entry from a website. It supports several online formats for references, like Google Scholar or the IEEE Explorer website and can extract the data from them directly. For general websites it produces a generic entry.

For example it generated this entry from this very page:

@misc{_citing_????,
    title = {citing - Tool for generating a website's {BibTex} using the {URL?} - {TeX} - {LaTeX} - Stack Exchange},
    url = {http://tex.stackexchange.com/questions/32955/tool-for-generating-a-websites-bibtex-using-the-url},
    howpublished = {http://tex.stackexchange.com/questions/32955/tool-for-generating-a-websites-bibtex-using-the-url}
}
share|improve this answer
    
What package are you using "url" never works for me. –  Magpie Jan 26 '13 at 21:42
    
@Magpie: I'm using hyperref which also uses url, but your bibliography style is what's important here, i.e. what code it does create from the url entry. –  Martin Scharrer Jan 27 '13 at 9:45
add comment

A generic (reference manager independent) solution:

  1. Create a new bookmark in the bookmark panel of your browser.
  2. Name it ("Export -> BibLaTeX" or whatever).
  3. URL: (Insert Content from this file).
  4. Load the page you want to cite.
  5. Click on the new bookmark button.
  6. Copy the selected text to clipboard and press [ENTER].
  7. Paste the BibLaTeX entry into
    1. your .bib file.
    2. JabRef: Just paste it into the open bibliography table.
    3. Zotero: Go to 'file' -> 'import from clipboard'.
share|improve this answer
1  
Welcome to TeX.SX! Would this work in any browser? –  Torbjørn T. Apr 10 at 7:50
    
Hi, Torbjørn T.! I tested it with Google Chrome. Works fine for me. Sorry, no idea, if this works with other browsers. –  Daniel Apr 10 at 7:54
    
Doesn't work in Firefox (28) on Linux Mint. –  Bruno Apr 10 at 8:26
    
@Bruno: Sorry, there was a problem with some code escape characters. I created a git repository to file my script and updated my answer. Could you please try this version again? Thanks! –  Daniel Apr 10 at 9:37
    
@Daniel: It works now! –  Bruno Apr 10 at 11:34
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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