BibTeX, biblatex and biberBibTex not working [newbie]

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
kallinteris_andreas
Posts: 1
Joined: Fri Oct 28, 2022 10:01 am

BibTex not working [newbie]

Post by kallinteris_andreas »

my `main.tex`:

Code: Select all

\documentclass{article}

\begin{document}

\cite{Rashid2018QMIXMV}

\bibliography{refs}
\end{document}
my refs.bib

Code: Select all

@article{Rashid2018QMIXMV,
  title={QMIX: Monotonic Value Function Factorisation for Deep Multi-Agent Reinforcement Learning},
  author={Tabish Rashid and Mikayel Samvelyan and C. S. D. Witt and Gregory Farquhar and Jakob N. Foerster and Shimon Whiteson},
  journal={ArXiv},
  year={2018},
  volume={abs/1803.11485}
}
my directory

Code: Select all

sh
$ ls
main.aux  main.log  main.pdf  main.tex  refs.bib
main.log file:

Code: Select all

This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022/Arch Linux) (preloaded format=pdflatex 2022.10.25)  28 OCT 2022 11:28
entering extended mode
 \write18 enabled.
 %&-line parsing enabled.
**main.tex
(./main.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-04-10>
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option)
)
\c@part=\count185
\c@section=\count186
\c@subsection=\count187
\c@subsubsection=\count188
\c@paragraph=\count189
\c@subparagraph=\count190
\c@figure=\count191
\c@table=\count192
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
)
(/usr/share/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
File: l3backend-pdftex.def 2022-04-14 L3 backend support: PDF output (pdfTeX)
\l__color_backend_stack_int=\count193
\l__pdf_internal_box=\box50
) (./main.aux)
\openout1 = `main.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.


LaTeX Warning: Citation `Rashid2018QMIXMV' on page 1 undefined on input line 5.


No file main.bbl.
[1

{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./main.aux)

LaTeX Warning: There were undefined references.

 ) 
Here is how much of TeX's memory you used:
 427 strings out of 478238
 8102 string characters out of 5850455
 297566 words of memory out of 5000000
 18746 multiletter control sequences out of 15000+600000
 469567 words of font info for 29 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 34i,5n,38p,133b,107s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/share/
texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on main.pdf (1 page, 19005 bytes).
PDF statistics:
 18 PDF objects out of 1000 (max. 8388607)
 10 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)
Last edited by Stefan Kottwitz on Fri Oct 28, 2022 5:01 pm, edited 2 times in total.
Reason: code marked

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
MjK
Posts: 89
Joined: Fri Jan 28, 2022 6:09 pm

BibTex not working [newbie]

Post by MjK »

The old BibTeX method of creating a bibliography needs \bibliographystyle, so

Code: Select all

\begin{filecontents}{\jobname.bib}
@article{Rashid2018QMIXMV,
title={QMIX: Monotonic Value Function Factorisation for Deep Multi-Agent Reinforcement Learning},
author={Tabish Rashid and Mikayel Samvelyan and C. S. D. Witt and Gregory Farquhar and Jakob N. Foerster and Shimon Whiteson},
journal={ArXiv},
year={2018},
volume={abs/1803.11485}
}
\end{filecontents}
\documentclass{article}
\bibliographystyle{plain}% Added!
\begin{document}

\cite{Rashid2018QMIXMV}

\bibliography{\jobname}
\end{document}
would work. However for new documents, I would always recommend to use biblatex:

Code: Select all

\begin{filecontents}{\jobname.bib}
@article{Rashid2018QMIXMV,
title={QMIX: Monotonic Value Function Factorisation for Deep Multi-Agent Reinforcement Learning},
author={Tabish Rashid and Mikayel Samvelyan and C. S. D. Witt and Gregory Farquhar and Jakob N. Foerster and Shimon Whiteson},
journal={ArXiv},
year={2018},
volume={abs/1803.11485}
}
\end{filecontents}
\documentclass{article}
\usepackage{biblatex}
\addbibresource{\jobname.bib}
\begin{document}

\autocite{Rashid2018QMIXMV}

\printbibliography
\end{document}
Note: The second example needs to use biber instead of bibtex. So you have to have to configure your editor to use biber instead of bibtex. The online compiler automatically uses biber.

Please also have a look into my signature about minimal working examples and how to tag code correctly.
My main topics are KOMA-Script and other questions related to my packages. If I reply to any other topic or if you've not yet added a minimal working example, please do not expect any further response. And please don't forget to tag examples as code.
Post Reply