## LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ Biblatex - bibliography is not displayed

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
MarthaS92
Posts: 8
Joined: Wed May 12, 2021 11:31 am

### Biblatex - bibliography is not displayed

Hi!

I need your help once again
Today I have problem with BIB file. To display the bibliography I use these comments:
\bibliographystyle{spmpsci}
\bibliography{library}

... and I see nothing

Do you have any ideas?

Stefan Kottwitz
Posts: 9766
Joined: Mon Mar 10, 2008 9:44 pm
Hi Martha,

what are your other settings? How do you load the biblatex, with which options? Did you run bibtex or biber? That's an external tool that you may need to run manually, of your editor doesn't run it automatically.

Stefan

Ijon Tichy
Posts: 548
Joined: Mon Dec 24, 2018 10:12 am
@Stefan I don't think, that the OP uses biblatex, because \bibliographystyle would result in an error and \bibliography is also deprecated.

MarthaS92
Posts: 8
Joined: Wed May 12, 2021 11:31 am
Stefan Kottwitz wrote:Hi Martha,

what are your other settings? How do you load the biblatex, with which options? Did you run bibtex or biber? That's an external tool that you may need to run manually, of your editor doesn't run it automatically.

Stefan

Hi Stefan!

Thank you for your reply. Hmm... now I see where the problem might be. I don't see any option which can load the biblatex. I've dowloaded the bibtex package. What should I do now?

Marta

Ijon Tichy
Posts: 548
Joined: Mon Dec 24, 2018 10:12 am
Please first decide to use either biblatex + biber or bibtex with \bibliographystyle. These are two completely different approaches. See the linked manuals or a good up-to-date introduction to LaTeX for more information.

If you have to use spmpsci.bst, which I do not know nor find on CTAN (maybe a publisher bibtex style file?), you cannot use biblatex.

So to answer your question, we need much more (detailed) information about what you are trying to do.

MarthaS92
Posts: 8
Joined: Wed May 12, 2021 11:31 am
Ijon Tichy wrote:Please first decide to use either biblatex + biber or bibtex with \bibliographystyle. These are two completely different approaches. See the linked manuals or a good up-to-date introduction to LaTeX for more information.

If you have to use spmpsci.bst, which I do not know nor find on CTAN (maybe a publisher bibtex style file?), you cannot use biblatex.

So to answer your question, we need much more (detailed) information about what you are trying to do.

OK. Here is the problem that I got this file from someone else and I think that maybe this file was compiled in Overleaf which has many easier settings than Texmaker which I am using.
Someone who used this code was working for him and I can not find out why it does not work in Texmaker.

I was looking for the solution here but everything I have tried, did not work.

Here is the beginning of a file:
\documentclass[runningheads]{svproc}

% to typeset URLs, URIs, and DOIs
\usepackage{url}
\def\UrlFont{\rmfamily}

\usepackage{makeidx}  % allows for index generation

% multicolumn layout
\usepackage{multicol}

% graphics
\usepackage{graphicx} % permit graphics inclusion
\usepackage{subfigure}
\usepackage{rotating} % box rotating (use with moderation)

\usepackage[T1]{fontenc} % needed for (among other) Polish diactrics

% tables
\usepackage{multirow} % permit row spanning

% place footnotes on the bottom of the page
\usepackage[bottom]{footmisc}

% provide \Floatbarrier (use \Floatbarrier with caution!)
\usepackage{placeins}

% bibliography
\usepackage{cite}

% mathematical typesetting
\usepackage{amsmath} %
\usepackage{amssymb} %
\usepackage{amsfonts} %

A part with the bibliography you have already known.
I would like to make this bibliography run having this code with some new lines added.
Can you guide me through this please?

MarthaS92
Posts: 8
Joined: Wed May 12, 2021 11:31 am
OK! I have figured it out why it did now working
I just changed bibliography style to ieeetr and now I can see the bibliography and citations in the text. The last thing I want to change are the numbers in the list of references.
Now I have this pattern:
1. ...
2. ...
etc.

Instead of these I want to have:
[1] ...
[2] ...
etc.

I have tried many types of the bibliography styles but it did not work. Maybe I should add some package to have this kind of bibliography?

Thanks for any ideas

Ijon Tichy
Posts: 548
Joined: Mon Dec 24, 2018 10:12 am
Maybe you simply want style plain:
\documentclass[a4paper]{article}

\begin{document}

This is an example of a paragraph with in-text
citations using the plain BibTeX style.
Here is a reference to a journal article with
a single author \cite{aksin}, to a journal
article with two authors \cite{baez/article} and
several authors \cite{murray}, and to a book
\cite{aristotle:anima}.

\bibliographystyle{plain}
\bibliography{biblatex-examples}
\end{document}


Another alternative would be to switch over to biblatex + biber:
\documentclass[a4paper,english]{article}
\usepackage{babel}
\usepackage{csquotes}
\usepackage{biblatex}

\begin{document}

This is an example of a paragraph with in-text
citations using the plain BibTeX style.
Here is a reference to a journal article with
a single author \autocite{aksin}, to a journal
article with two authors \autocite{baez/article} and
several authors \autocite{murray}, and to a book
\autocite{aristotle:anima} and an online resource \autocite{ctan}.

\printbibliography

\end{document}


For this example, it could be needed to configure the editor to use biber instead of bibtex.

MarthaS92
Posts: 8
Joined: Wed May 12, 2021 11:31 am
I am preparing this kind of mimimal example for the first time so I do not know if it was done correct.
Here is my original file with llncs document class:
\begin{filecontents}{library.bib}
@article{Decruz2019,
author = {Joshua Decruz and Rex Premchand Antony Rex and Suheal Ali Khan},
doi = {10.1016/j.cjtee.2019.01.004},
issn = {10081275},
issue = {2},
journal = {Chinese Journal of Traumatology},
month = {4},
unusedTitle = {Epidemiology of inpatient tibia fractures in Singapore – A single centre experience},
volume = {22},
year = {2019},
}

\end{filecontents}

% to typeset URLs, URIs, and DOIs
\usepackage{url}
\def\UrlFont{\rmfamily}

\usepackage{makeidx}  % allows for index generation

% multicolumn layout
\usepackage{multicol}

% graphics
\usepackage{graphicx} % permit graphics inclusion
\usepackage{subfigure}
\usepackage{rotating} % box rotating (use with moderation)

\usepackage[T1]{fontenc} % needed for (among other) Polish diactrics

% tables
\usepackage{multirow} % permit row spanning

% place footnotes on the bottom of the page
\usepackage[bottom]{footmisc}

% provide \Floatbarrier (use \Floatbarrier with caution!)
\usepackage{placeins}

% bibliography
\usepackage{cite}

% mathematical typesetting
\usepackage{amsmath} %
\usepackage{amssymb} %
\usepackage{amsfonts} %

\begin{document}

Some text and some citation \cite{Decruz2019}
\bibliographystyle{ieeetr}
\bibliography{library}
\end{document}

And here is working one with the article document class:

\begin{filecontents}{library.bib}
@article{Decruz2019,
author = {Joshua Decruz and Rex Premchand Antony Rex and Suheal Ali Khan},
doi = {10.1016/j.cjtee.2019.01.004},
issn = {10081275},
issue = {2},
journal = {Chinese Journal of Traumatology},
month = {4},
unusedTitle = {Epidemiology of inpatient tibia fractures in Singapore – A single centre experience},
volume = {22},
year = {2019},
}

\end{filecontents}

% to typeset URLs, URIs, and DOIs
\usepackage{url}
\def\UrlFont{\rmfamily}

\usepackage{makeidx}  % allows for index generation

% multicolumn layout
\usepackage{multicol}

% graphics
\usepackage{graphicx} % permit graphics inclusion
\usepackage{subfigure}
\usepackage{rotating} % box rotating (use with moderation)

\usepackage[T1]{fontenc} % needed for (among other) Polish diactrics

% tables
\usepackage{multirow} % permit row spanning

% place footnotes on the bottom of the page
\usepackage[bottom]{footmisc}

% provide \Floatbarrier (use \Floatbarrier with caution!)
\usepackage{placeins}

% bibliography
\usepackage{cite}

% mathematical typesetting
\usepackage{amsmath} %
\usepackage{amssymb} %
\usepackage{amsfonts} %

\begin{document}

Some text and some citation \cite{Decruz2019}
\bibliographystyle{ieeetr}
\bibliography{library}
\end{document}

It seems to be in llns.cls that the references are pointed in this way:
1. ...
2. ...
etc.

... and this if fine.

Sorry to bother you. Now it is all fine