BibTeX, biblatex and biber ⇒ Number and linebreak between references in the bibliography
Number and linebreak between references in the bibliography
I need to format my reference list so that it has a number, separated by a linebreak between each reference (these are the guidelines of a particular journal):
1.
Begon, M., Harper, J. & Townsend, C. (1996). Ecology: Individuals, Populations and Communities. 3rd edn. Blackwell Science, Oxford.
2.
Ferris, C., King, R.A. & Gray, A.J. (1997). Molecular evidence for the maternal parentage in the hybrid origin of Spartina anglica C.E. Hubbard. Mol. Ecol., 6, 185-187.
3.
Milligan, B. (1992). Plant DNA isolation. In: Molecular Genetic Analysis of Populations: A Practical Approach (ed. Hoelzel, A.R.). IRL Press, Oxford, UK, pp. 59-88.
Using packages like natbib it is possible to number the reference list, but i haven't found any examples that allow me to put a linebreak between the number and the reference itself. Any ideas?
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
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Number and linebreak between references in the bibliography
Code: Select all
\makeatletter
\def\@biblabel#1{#1.\\}
\makeatother
Re: Number and linebreak between references in the bibliogra
Further help much appreciated!
Number and linebreak between references in the bibliography
Welcome to the LaTeX community!
In order to help us helping you please prepare a proper

Regards
*If you don't know what that is please follow the link!
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Number and linebreak between references in the bibliography
Code: Select all
"\bibitem{" write$
"\hspace{0em}\\"
and save the file. That file should now break the line right after the number.Please ignore my first post, then---that's what I get for posting without testing it first!
Number and linebreak between references in the bibliography
http://www.lecb.ncifcrf.gov/~toms/ftp/ecol_let.bst
I guess Kaiserkarl13 is saying the function that needs to be modified in order for me to get a number and line break before the first author is the following:
Code: Select all
FUNCTION {output.bibitem}
{ newline$
"\bibitem[{" write$
label write$
")" make.full.names duplicate$ short.list =
{ pop$ }
{ * }
if$
"}]{" * write$
cite$ write$
"}" write$
newline$
""
before.all 'output.state :=
}
cheers,
David
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Number and linebreak between references in the bibliography
Code: Select all
FUNCTION {output.bibitem}
{ newline$
"\bibitem[{" write$
label write$
")" make.full.names duplicate$ short.list =
{ pop$ }
{ * }
if$
"}]{" * write$
cite$ write$
"}" write$
newline$
"\hspace{0em}\\" % CHANGED LINE
before.all 'output.state :=
}
Code: Select all
\documentclass{article}
\usepackage[numbers]{natbib} % Your database assumes author-year; this overrides
\usepackage{url}
\makeatletter
\def\@biblabel#1{#1} % changes numbers from [1] to 1.
\makeatother
\begin{document}
\nocite{*}
\bibliographystyle{ecol_let.bst}
\bibliography{yourbibliographydatabasename}
\end{document}
Re: Number and linebreak between references in the bibliogra
Re: Number and linebreak between references in the bibliogra
Did you eventually solve your problem? I am trying to submit to the same journal, and have the same problem...
Hope you can help me!