LaTeX forum ⇒ BibTeX, biblatex and biberBiblography follows the citation order

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

Biblography follows the citation order

Postby nadaa » Thu Aug 24, 2017 8:24 pm

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.

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

Postby rais » Thu Aug 24, 2017 11:24 pm

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

Postby nadaa » Thu Aug 24, 2017 11:40 pm

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: 149
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Fri Aug 25, 2017 12:54 am

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

User avatar
thomasb
Posts: 76
Joined: Thu Aug 03, 2017 10:54 am
Location: france

Postby thomasb » Fri Aug 25, 2017 1:03 am

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
    1. \documentclass[a4paper,12pt]{report}
    2. %\usepackage{cite} % obsolete
    3. \usepackage[numbers,sort&compress]{natbib}
    4. \begin{document}
    5. Text1
    6. \cite{Klipp2016Model}
    7. Text2
    8. \cite{Barnes2015Foundation}
    9. Text3
    10. \bibliographystyle{unsrt}
    11. \bibliography{minimalBibBug}
    12. \end{document}
  • and the .bib file needs a comma after the chapter entry
    1. @inbook{Barnes2015Foundation,
    2. author = {Barnes, David J. and Chu, Dominique},
    3. booktitle = {Guide to Simulation and Modeling for Biosciences},
    4. chapter = {1},
    5. citeulike-article-id = {14016339},
    6. citeulike-linkout-0 = {http://www.springer.com/us/book/9781447167617},
    7. edition = {2nd},
    8. keywords = {abm, proposal, review, validation},
    9. posted-at = {2016-04-19 16:23:43},
    10. priority = {2},
    11. publisher = {Springer},
    12. title = {{Foundation of Modeling}},
    13. url = {http://www.springer.com/us/book/9781447167617},
    14. year = {2015}
    15. }
    16.  
    17. @book{Klipp2016Model,
    18. author = {Klipp, Edda and Liebermeister, Wolfram and Wierling, Christoph and Kowald, Axel},
    19. booktitle = {Systems Biology: A Textbook},
    20. citeulike-article-id = {14124834},
    21. day = {27},
    22. edition = {2},
    23. chapter = {1},
    24. howpublished = {Paperback},
    25. isbn = {3527336362},
    26. keywords = {review, validation},
    27. month = jun,
    28. posted-at = {2016-08-28 09:24:02},
    29. priority = {2},
    30. publisher = {Wiley-Blackwell},
    31. title = {{Introduction}},
    32. url = {http://www.worldcat.org/isbn/3527336362},
    33. year = {2016}
    34. }


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 5 guests