Generalneed help: how to modify bst files

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
nynke
Posts: 2
Joined: Tue Apr 22, 2008 1:40 pm

need help: how to modify bst files

Post by nynke »

I would like to modify the elsart-harv.bst file so that the field URL is not displayed in the bibliography list, how can I do this?

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

need help: how to modify bst files

Post by Juanjo »

It seems that, when the elsart-harv bib style is active, BibTeX writes in the bbl file lines of the form \newline\urlprefix\url{url address} . So, instead of changing the bst file, a different strategy could be to annulate the effect of those lines by temporarily redefining \newline and \urlprefix. Assuming that your bib file is called references.bib, try this:

Code: Select all

\begingroup
\newcommand{\urlprefix}[2]{}
\renewcommand{\newline}{}
\bibliographystyle{elsart-harv}
\bibliography{references}
\endgroup
nynke
Posts: 2
Joined: Tue Apr 22, 2008 1:40 pm

Re: need help: how to modify bst files

Post by nynke »

Hello Juanjo,
It works fine now, thank you!
Post Reply