LaTeX forum ⇒ BibTeX, biblatex and biberbibliographystyle plainnat without url Topic is solved

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Posts: 4
Joined: Thu Aug 13, 2009 3:22 pm

bibliographystyle plainnat without url

Postby wandasia » Mon Aug 17, 2009 5:16 pm


I use Jabref to get the bibtex entrys for my bibliography. There is only one problem.

I don't know and I couldn't find how to hide the url/doi in the bibliography.

Thanks for your help!


Postby eero » Sat Aug 22, 2009 2:03 pm


I need the same thing except for natbib.

Posts: 5
Joined: Tue Jul 21, 2009 5:35 pm

Postby fr33sh1 » Thu Sep 03, 2009 10:12 am

Now, I'm no specialist in this matter but I think there are two ways:
1. just delete doi and ulr from your bibliography database ;-)
2. copy plainnat.bst file (it's in \bibtex\bst\natbib) to your projects folder and rename it (let's say notplainnat.bst). *.bst files are bibliography style files, so inside are hidden informations on how your bibliography is going to look like.
Open your renamed file (notplainnat.bst) in text editor (notepad, vim whatever) and find (it's somewhere at the end)
  1. FUNCTION {book}
  2. { output.bibitem
  3. author empty$
  4. { format.editors "author and editor" output.check
  5. editor format.key output
  6. }
  7. { format.authors output.nonnull
  8. crossref missing$
  9. { "author and editor" editor either.or.check }
  10. 'skip$
  11. if$
  12. }
  13. if$
  14. new.block
  15. format.btitle "title" output.check
  16. crossref missing$
  17. { format.bvolume output
  18. new.block
  19. format.number.series output
  20. new.sentence
  21. publisher "publisher" output.check
  22. address output
  23. }
  24. { new.block
  25. output.nonnull
  26. }
  27. if$
  28. format.edition output
  29. "year" output.check
  30. format.isbn output
  31. format.doi output
  32. format.url output
  33. new.block
  34. note output
  35. fin.entry
  36. }

That's a sample Function that tells how to handle Book type references. You can see two lines at the bottom:
  1. format.doi output
  1. format.url output
. Remove them and try running your document at least two times.
Do the same for other reference types that you use (Inbook, article whatever).

There is a third option - making your own custuom bst style with
  1. latex makebst

from the command line. It looks pretty scary when you do it for the first time, but you can get used to it.



Postby eero » Fri Feb 12, 2010 1:03 pm

Hey there!

I had to do it differently then and didn't have to write longer texts for a while. That's why my response is a bit late.

ad 1. The point is that I have my references in JabRef and want to keep the urls etc. in the bib file.

ad 2. Thanks for the hint, it does what I wanted!

Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 3 guests