BibTeX, biblatex and biberBiblography follows the citation order

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
nadaa
Posts: 19
Joined: Sun Nov 20, 2016 8:12 pm

Biblography follows the citation order

Post by nadaa »

Hi,
Here is the minimum work

\documentclass[a4paper,12pt]{report}
\usepackage{cite}
\usepackage[numbers,sort&compress]{natbib}

\begin{document}
\bibliographystyle{unsrt}
\biblography{bibfile}
\end{document}


%bib file

@inbook{Barnes2015Foundation,
author = {Barnes, David J. and Chu, Dominique},
booktitle = {Guide to Simulation and Modeling for Biosciences},
chapter = {1},
citeulike-article-id = {14016339},
citeulike-linkout-0 = {http://www.springer.com/us/book/9781447167617},
edition = {2nd},
keywords = {abm, proposal, review, validation},
posted-at = {2016-04-19 16:23:43},
priority = {2},
publisher = {Springer},
title = {{Foundation of Modeling}},
url = {http://www.springer.com/us/book/9781447167617},
year = {2015}
}

@book{Klipp2016Model,
author = {Klipp, Edda and Liebermeister, Wolfram and Wierling, Christoph and Kowald, Axel},
booktitle = {Systems Biology: A Textbook},
citeulike-article-id = {14124834},
day = {27},
edition = {2},
chapter = {1}
howpublished = {Paperback},
isbn = {3527336362},
keywords = {review, validation},
month = jun,
posted-at = {2016-08-28 09:24:02},
priority = {2},
publisher = {Wiley-Blackwell},
title = {{Introduction}},
url = {http://www.worldcat.org/isbn/3527336362},
year = {2016}
}





After building, the citation starts at 96, how can I fix this and start numbering from 1,2,.. etc?

Thanks
Last edited by nadaa on Thu Aug 24, 2017 11:45 pm, edited 2 times in total.

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

rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Biblography follows the citation order

Post by rais »

Hi there,
nadaa wrote: After building, the citation starts at 96, how can I fix this and start numbering from 1,2,.. etc?
if you want the first citation in the text numbered `1', use unsrt instead of plain bibliography style.
If you further use any of the \cite commands within a caption (say, for a figure) and have the LOF (\listoffigures) preceding the text, modify those captions to \caption[caption without cite cmd]{caption with (possible) cite cmd}

If you want something completely different, please elaborate. Me, I can't even let your `minimum work' get to show me your problem (no bibliography at all, no citation, let alone one numbered `96')...

KR
Rainer
nadaa
Posts: 19
Joined: Sun Nov 20, 2016 8:12 pm

Biblography follows the citation order

Post by nadaa »

rais wrote:Hi there,
nadaa wrote: After building, the citation starts at 96, how can I fix this and start numbering from 1,2,.. etc?
if you want the first citation in the text numbered `1', use unsrt instead of plain bibliography style.
If you further use any of the \cite commands within a caption (say, for a figure) and have the LOF (\listoffigures) preceding the text, modify those captions to \caption[caption without cite cmd]{caption with (possible) cite cmd}

If you want something completely different, please elaborate. Me, I can't even let your `minimum work' get to show me your problem (no bibliography at all, no citation, let alone one numbered `96')...


KR
Rainer
I need this for my thesis, it includes multiple files. I need the citation to be as you understood. The problem is when I applied your suggestion, nothing change!?
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Biblography follows the citation order

Post by rais »

since there's still no \cite command in your updated `minimum work', the most I'd expect is an empty bibliography.
BTW: there's a comma missing after `chapter = {1}' in the second entry of your presented bib file.

Perhaps you just omitted to run BibTeX (or its run failed, have a look into the generated blg file)...

KR
Rainer
thomasb
Posts: 134
Joined: Thu Aug 03, 2017 10:54 am

Biblography follows the citation order

Post by thomasb »

You need to
  1. compile the .tex file once
  2. run Bibtex once
  3. compile the .tex file twice
Try this :
  • bibliography spells with an i

    Code: Select all

    \documentclass[a4paper,12pt]{report}
    %\usepackage{cite} % obsolete
    \usepackage[numbers,sort&compress]{natbib}
    \begin{document}
    Text1
    \cite{Klipp2016Model}
    Text2
    \cite{Barnes2015Foundation}
    Text3
    \bibliographystyle{unsrt}
    \bibliography{minimalBibBug}
    \end{document}
  • and the .bib file needs a comma after the chapter entry

    Code: Select all

    @inbook{Barnes2015Foundation,
    author = {Barnes, David J. and Chu, Dominique},
    booktitle = {Guide to Simulation and Modeling for Biosciences},
    chapter = {1},
    citeulike-article-id = {14016339},
    citeulike-linkout-0 = {http://www.springer.com/us/book/9781447167617},
    edition = {2nd},
    keywords = {abm, proposal, review, validation},
    posted-at = {2016-04-19 16:23:43},
    priority = {2},
    publisher = {Springer},
    title = {{Foundation of Modeling}},
    url = {http://www.springer.com/us/book/9781447167617},
    year = {2015}
    }
    
    @book{Klipp2016Model,
    author = {Klipp, Edda and Liebermeister, Wolfram and Wierling, Christoph and Kowald, Axel},
    booktitle = {Systems Biology: A Textbook},
    citeulike-article-id = {14124834},
    day = {27},
    edition = {2},
    chapter = {1},
    howpublished = {Paperback},
    isbn = {3527336362},
    keywords = {review, validation},
    month = jun,
    posted-at = {2016-08-28 09:24:02},
    priority = {2},
    publisher = {Wiley-Blackwell},
    title = {{Introduction}},
    url = {http://www.worldcat.org/isbn/3527336362},
    year = {2016}
    }
Post Reply