BibTeX, biblatex and biberBiblatex - bibliography is not displayed

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

Biblatex - bibliography is not displayed

Post by MarthaS92 »

Hi!

I need your help once again :oops:
Today I have problem with BIB file. To display the bibliography I use these comments:

Code: Select all

\bibliographystyle{spmpsci}
\bibliography{library}
... and I see nothing :cry:

Do you have any ideas?

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10319
Joined: Mon Mar 10, 2008 9:44 pm

Biblatex - bibliography is not displayed

Post by Stefan Kottwitz »

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
LaTeX.org admin
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Biblatex - bibliography is not displayed

Post by Ijon Tichy »

@Stefan I don't think, that the OP uses biblatex, because \bibliographystyle would result in an error and \bibliography is also deprecated.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
MarthaS92
Posts: 13
Joined: Wed May 12, 2021 11:31 am

Biblatex - bibliography is not displayed

Post by MarthaS92 »

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
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Biblatex - bibliography is not displayed

Post by Ijon Tichy »

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.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
MarthaS92
Posts: 13
Joined: Wed May 12, 2021 11:31 am

Biblatex - bibliography is not displayed

Post by MarthaS92 »

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:

Code: Select all

\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{tabularx} % advanced table formatting
\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: 13
Joined: Wed May 12, 2021 11:31 am

Biblatex - bibliography is not displayed

Post by MarthaS92 »

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 :)
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Biblatex - bibliography is not displayed

Post by Ijon Tichy »

Maybe you simply want style plain:

Code: Select all

\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:

Code: Select all

\documentclass[a4paper,english]{article}
\usepackage{babel}
\usepackage{csquotes}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}

\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.

As already told, we need much more information to give better answers → Infominimal working example.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
MarthaS92
Posts: 13
Joined: Wed May 12, 2021 11:31 am

Biblatex - bibliography is not displayed

Post by MarthaS92 »

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:

Code: Select all

\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}

\documentclass[runningheads,a4paper]{llncs}

% 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{tabularx} % advanced table formatting
\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:

Code: Select all

\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}

\documentclass[runningheads,a4paper]{article}

% 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{tabularx} % advanced table formatting
\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 :)
Post Reply