TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
    
up vote 13 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

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 '14 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 '14 at 7:54
    
Doesn't work in Firefox (28) on Linux Mint. – Bruno Apr 10 '14 at 8:26
1  
@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 '14 at 9:37
    
@Daniel: It works now! – Bruno Apr 10 '14 at 11:34

This site allows you to create a citation from a URL and then export it as a bibtex reference:

https://www.citethisforme.com/apa

share|improve this answer
1  
Welcome to TeX.SX! – Adam Liter Jan 15 '15 at 19:45

This chrome extension I wrote sometime ago tries to address this. It creates a BibTeX entry from the active URL and copies it to clipboard automatically.There are three options to create a BibTeX entry from the active URL:

  • either press the extension button in the browser
  • right-click in the webpage and copy the bibtex to clipboard
  • assign a keyboard shortcut to the extension from Chrome menu to automatically copy the BibTeX entry of the active URL.

Example:

For http://developer.chrome.com/extensions/packaging.html we get:

@misc{Packa3:Online,
author = {},
title = {Packaging - Google Chrome},
howpublished = {\url{https://developer.chrome.com/extensions/packaging}},
month = {},
year = {},
note = {(Accessed on 06/07/2014)}
}

share|improve this answer
1  
Welcome and thanks for your feedback. Why don't you use the @online field, with the convenient urldate field? See for instance this answer for some hints. Your extension could allow to switch between different formatting of the bibtex entry. And, as @Kurt said, a simple link is not really useful. – Clément Feb 19 at 18:15
    
@clement thanks for the feedback. I could add some option to select the format. I was using online before, but for my personal needs misc was better. It should be easy to have it as an option though. Since I am not really an experienced TeX user, what are the candidate formats you would recommend (fields etc.)? – nettrino Feb 20 at 0:48

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.