TeX - LaTeX Asked by user78853 on January 16, 2021
It just does not work, no matter how I try. Currently I use
bibliography{lit.bib}
before starting the document, then
printbibliography{lit.bib}
before ending it. I can refer to entries in the bibliography just fine in text, the references will be made and named as they are in the bibliography, however the page on which I put the printbib...
command simply says “lit.bib
“
What am I doing wrong?
I’m using pdflatex+makeindex+bibtex
Edit:
documentclass[english,parskip=half]{scrartcl}
usepackage[utf8]{inputenc}
usepackage{chngcntr}
usepackage{babel}
usepackage{lmodern}
usepackage[T1]{fontenc}
usepackage{microtype}
usepackage{graphicx}
usepackage{csquotes}
usepackage[output-decimal-marker={,},exponent-product=cdot]{siunitx}
usepackage{tabularx}
usepackage{mathtools,amssymb}
usepackage[section]{placeins}
%deffps@figure{htbp}
%deffps@table{htbp}
usepackage[colorlinks=true,allcolors=black]{hyperref}
bibliography{lit.bib}
addbibresource{lit.bib}
addtoextrasenglish{%
defsubsectionautorefname{Abschnitt} von Unterabschnitt auf Abschnitt
deffigureautorefname{Abb.}
}
begin{document}
begin{titlepage}
centering
(Stuff from titlepage here)
end{titlepage}
tableofcontents
clearpage
input{chapter/Abstract}
newpage
....(more chapters here
printbibliography{lit.bib}
end{document}
Edit Nr 2: Current code:
documentclass[english,parskip=half]{scrartcl}
usepackage[utf8]{inputenc}
usepackage{chngcntr}
usepackage{babel}
usepackage{lmodern}
usepackage[T1]{fontenc}
usepackage{microtype}
usepackage{graphicx}
usepackage{csquotes}
usepackage[output-decimal-marker={,},exponent-product=cdot]{siunitx}
usepackage[sorting=none]{biblatex}
usepackage{tabularx}
usepackage{mathtools,amssymb}
usepackage[section]{placeins}
usepackage[backend=bibtex]{biblatex}
%deffps@figure{htbp}
%deffps@table{htbp}
usepackage[colorlinks=true,allcolors=black]{hyperref}
addbibresource{lit.bib}
addtoextrasenglish{%
defsubsectionautorefname{Abschnitt}
deffigureautorefname{Abb.}
}
begin{document}
begin{titlepage}
(content of title page here)
end{titlepage}
tableofcontents
(chapters here)
nocite{*}
printbibliography
end{document}
Version nr 2 gives the error “option clash for package biblatex”
You are mixing commands form bibtex
and biblatex
. If you use biblatex
(i.e., usepackage[...]{biblatex}
, then the first command should be addbibresource{lit.bib}
and at the place where you want your bibliography to be printed, use printbibliography
. Nowadays, the default engine is biber
(instead of bibtex
, so you want to use bibtex
you have to add backend=bibtex
option to biblatex, usepackage[backend=bibtex]{biblatex}
).
If you do not use biblatex
, then you should use bibliographystyle{...}
and bibliography{lit}
.
Answered by Guido on January 16, 2021
Your (modified) code, slightly more minimal than what you posted, runs fine on my system. I also corrected the syntax and I obtain a .blg
file, so try this:
documentclass[english,parskip=half]{scrartcl}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage{babel}
usepackage{microtype}
usepackage{csquotes}
usepackage{biblatex}
usepackage[colorlinks=true,allcolors=black]{hyperref}
addbibresource{lit.bib}
begin{document}
addtoextrasenglish{%
defsubsectionautorefname{Abschnitt} von Unterabschnitt auf Abschnitt
deffigureautorefname{Abb.}
}
....(more chapters here)
nocite{*}
printbibliography
end{document}
Answered by Bernard on January 16, 2021
I'm not sure if anyone mentioned this, but I had the same issue, and then realized that the bibliography only prints once there is actually an in-text citation added to the article. Furthermore, only those sources that are actually cited within text show up in the printed bibliography.So without any actual citations, no bibliography prints
Answered by Murphy Griffin on January 16, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP