Featured Book

LaTeX Beginners Guide

Who is online

In total there are 9 users online :: 0 registered, 0 hidden and 9 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 9 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

bibliographystyle plainnat without url

Add tags Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.

bibliographystyle plainnat without url

Postby wandasia on Mon Aug 17th, 2009

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!
wandasia
 
Posts: 4
Joined: Thu Aug 13th, 2009

Re: bibliographystyle plainnat without url

Postby eero on Sat Aug 22nd, 2009

Hi,

I need the same thing except for natbib.
eero
 
Posts: 4
Joined: Thu Jul 30th, 2009

Re: bibliographystyle plainnat without url

Postby fr33sh1 on Thu Sep 3rd, 2009

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  •  Open in writeLaTeX
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  •  Open in writeLaTeX
format.doi output
and
Code: Select all  •  Open in writeLaTeX
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  •  Open in writeLaTeX
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!
fr33sh1
 
Posts: 5
Joined: Tue Jul 21st, 2009

Re: bibliographystyle plainnat without url

Postby eero on Fri Feb 12th, 2010

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!
eero
 
Posts: 4
Joined: Thu Jul 30th, 2009


Return to BiBTeX

Who is online

Users browsing this forum: No registered users and 9 guests