BibTeX, biblatex and biberbibliographystyle plainnat without url

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

bibliographystyle plainnat without url

Post by wandasia »

Hi,

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!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

eero

Re: bibliographystyle plainnat without url

Post by eero »

Hi,

I need the same thing except for natbib.
fr33sh1
Posts: 5
Joined: Tue Jul 21, 2009 5:35 pm

bibliographystyle plainnat without url

Post by fr33sh1 »

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)

Code: Select all

FUNCTION {book}
{ output.bibitem
  author empty$
    { format.editors "author and editor" output.check
      editor format.key output
    }
    { format.authors output.nonnull
      crossref missing$
        { "author and editor" editor either.or.check }
        'skip$
      if$
    }
  if$
  new.block
  format.btitle "title" output.check
  crossref missing$
    { format.bvolume output
      new.block
      format.number.series output
      new.sentence
      publisher "publisher" output.check
      address output
    }
    { new.block
      format.book.crossref output.nonnull
    }
  if$
  format.edition output
  format.date "year" output.check
  format.isbn output
  format.doi output
  format.url output
  new.block
  note output
  fin.entry
}
That's a sample Function that tells how to handle Book type references. You can see two lines at the bottom:

Code: Select all

format.doi output
and

Code: Select all

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

Code: Select all

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.

Cheers!
eero

Re: bibliographystyle plainnat without url

Post by eero »

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!
Post Reply