BibTeX, biblatex and biber ⇒ bibliographystyle plainnat without url
bibliographystyle plainnat without url
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!
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
bibliographystyle plainnat without url
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
}
Code: Select all
format.doi output
Code: Select all
format.url output
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
Cheers!
Re: bibliographystyle plainnat without url
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!