Bibliography doesn't show up.
My .bib file is okay I think but when I compile the main file bibliography doesn't show.
I don't know what's wrong, please help.
Important parts of code in my main file.
\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{comment}
\usepackage[
backend=biber,
style=ieee
]{biblatex}
\addbibresource{bibliography.bib}
...
\begin{document}
...
\chapter*{Bibliography}
\printbibliography
...
\end{document}
And my bibliography file has some references like this one.
#article{1,
author = "Diomidis Spinellis",
title = "{Being a Software Developer}",
journal = "IEEE Software",
volume = "35",
number = "4",
month = {August},
year = "2018",
pages = "4-7",
doi = {10.1109/MS.2018.2801555}
}
For this kind of message:
ERROR - Cannot find control file biblio.bcf!
Try to also check if you chose the correct corresponding backend in your text editor.
E.g., with Texmaker, you choose "Biber" or "BibTeX" for the field "Bib(La)TeX" , in Tools/configure Texmaker
Related
How do I include a specific table within a latex citation, i.e., what's the syntax? In other words, I'd like to cite table 11.1 in the "Handbook of Hydrology" by David Maidment. In my BibTex text file, the reference is:
#book{maidment1993,
Author = {Maidment, David R},
Isbn = {0-07-039732-5},
Publisher = {McGraw-Hill},
Address = {New York, USA},
Title = {Handbook of Hydrology},
Year = {1993}}
and so in the tex file that invokes this reference, it's easy enough to add ...\citep{maidment1993}..., but if I want the output to also include table 11.1, as in "...(Table 1.1; Maidment, 1993)." and not merely "(Maidment, 1993)", how do I do that in the .tex file? I tried \citep{Table 11.1 maidment1993}, but not surprisingly, that doesn't work.
You can add the table as optional argument. For example with biblatex:
\documentclass{article}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite[Table 11.1]{knuth:ct}
\printbibliography
\end{document}
I got this issue in LayteX (Overleaf) where the \cite{} and \textcite{} command does find my source, but then returns the exact name of the source in my .bib-file. It looks something like this (I couldn't add images somehow):
text...(world'bank"2022)....text.
While the correct output should be:
text... (World Bank, 2022) .... text
The source:
#online{world_bank_2022,
title = {World Bank Open Data {\textbar} Data},
url = {https://data-worldbank-org.eur.idm.oclc.org/},
author = {{World Bank}},
urldate = {2022-10-07},
date = {2022},
file = {World Bank Open Data | Data:C\:\\Users\\jhans\\Zotero\\storage\\X739YI3J\\data-worldbank-org.eur.idm.oclc.org.html:text/html},
}
The package and file name. Name of the bib-file corresponds 1:1 with the imported library file:
\usepackage[backend=biber, style=apa]{biblatex}
\addbibresource{Bibliography-ASP.bib}
And as a result, the following command also does not return anything:
\newpage
\printbibliography
The error messages are:
Empty bibliography on input line 360.
Overfull \hbox (6.3094pt too wide) in paragraph at lines 34--35
Citation 'world_bank_2022' on page 1 undefined on input line 34.
As an illustration, I created a MWE with the exact same structure and packages as in my original file.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage{multirow,booktabs,setspace,caption}
\usepackage{tikz}
\usepackage{ntheorem}
\usepackage{longtable}
\newtheorem{hyp}{H}
\usepackage{subcaption}
\usepackage{lipsum}
\usepackage{minted}
\usepackage{wrapfig}
\usepackage{csquotes}
\usepackage{hyperref}
\usepackage[backend=biber, style=apa]{biblatex}
\addbibresource{Bibliography IIA ASP.bib}
\title{AS\&P Assignment 3}
\author{Hans van Beek, 497005}
\date{14 October 2022}
\begin{document}
\maketitle
\section{Panel Data Modelling: Time-to-Export}\label{q1}
\subsection{Hypotheses}\label{q1: hypotheses}
The current analysis focuses on three hypothesised determinants of the time-to-export in hours (\textit{time\_to\_export}) between countries and over time using data from the World Bank (\cite{world_bank_2022}). The time-to-export is an important indicator of a country's quality of export and import conditions with a lower time-to-export (\textit{time\_to\_export}) in hours reflecting a more efficient economy. An appropriate determinant of the variation in the size of a country's economy could therefore be the GDP per capita (providing a good benchmark). The first hypothesis (i) therefore states that a higher GDP is
\newpage
\printbibliography
\newpage
\end{document}
I am trying to create a bibliography for my thesis using biblatex with the APA-citestyle. I also use the babel with german option since my thesis is in German.
My bibfile looks like this:
% literature.bib
#misc{A01,
author = {Author, A. and Buthor, B. and Cuthor, C.},
year = {2001},
title = {This is the title},
url = {https://www.google.de/},
urldate = {2020-01-10}
}
..and my main.tex like this:
\documentclass{scrbook}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage[ngerman]{babel}
\usepackage[backend=biber, style=apa]{biblatex}
\addbibresource{literature.bib}
\begin{document}
\cite{A01}
\printbibliography
\end{document}
However, on online sources the "accessed" link seems to be translated in a wrong way. It outputs "...Verfügbar + date + unter +url" which translates to "...Available + date + from url". But the date is the date I accessed the url, not the publishing date. If I change the language in the babel package to American, the output is correct.
Since I am new to Latex and Biblatex specifically, I wonder if there is a way to redefine the Output of the urldate field. I am using the Overleaf editor if that is of importance.
Either use a version prior to the commit https://github.com/plk/biblatex-apa/commit/79848cf1e29a2fb0c01b2420ad4753a34b5d2bbd or fix the translation yourself:
\documentclass{scrbook}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage[ngerman]{babel}
\usepackage[backend=biber, style=apa]{biblatex}
\DefineBibliographyStrings{ngerman}{
retrieved = {abgerufen am},
from = {von},
}
\begin{filecontents}[overwrite]{\jobname.bib}
#misc{A01,
author = {Author, A. and Buthor, B. and Cuthor, C.},
year = {2001},
title = {This is the title},
url = {https://www.google.de/},
urldate = {2020-01-10}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{A01}
\printbibliography
\end{document}
I am attempting to compile my latex file and I have a source with author's last name with an accent mark (two dots above the letter o). In the preamble of my file, I have
\documentclass[twoside,11pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{textcomp}
\usepackage{listings}
\usepackage{xcolor, color}
\usepackage{graphics, graphicx, rotating}
\usepackage{float}
\usepackage[caption=false]{subfig}
\usepackage{algpseudocode, algorithm}
\usepackage{url, hyperref}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
Then, at the end of the file, I have
\bibliographystyle{plain}
\bibliography{bib}
In the .bib file I have
#phdthesis{kon,
author = {K\"{o}n},
title = {TITLE}
year = {2014}
}
However, when I compile (I'm using TeXStudio), I get what you see in the image.
It doesn't seem to be recognizing that there are two quotes (' is highlighted in blue and then ' is highlighted in black in the IDE I'm using). I'm not sure how to get the correct accent mark. I can't seem to find this issue elsewhere, and there are no other ways in latex literature (that I can find). Thank you!
Code for .tex file:
\documentclass[twoside,11pt]{article}
\usepackage{jmlr2e}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{textcomp}
\usepackage{listings}
\usepackage{xcolor, color}
\usepackage{graphics, graphicx, rotating}
\usepackage{float}
\usepackage[caption=false]{subfig}
\usepackage{algpseudocode, algorithm}
\usepackage{url, hyperref}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
Here is how it gets cited: \citep{konig2014}
\bibliographystyle{plain}
\bibliography{bibl}
\end{document}
Code for .bib file:
#phdthesis{konig2014,
author = {K\''{o}nig, R.},
title = {Enhancing genetic programming for predictive modeling},
school = {\''{O}rebro University},
year = {2014}
}
Since your edit, your .bib file shows \'' (backslash, single quote, single quote), which is wrong and results in the weird accents you're seeing: it's putting an acute accent (´, coded as \') on top of a single quote (', also coded as '). The correct syntax is \" (backslash, double quote).
If I write the .bib file in the program TeXworks, then \" (backslash, double quotes) automatically turns into \'' (backslash, single quote, single quote). Even if I compile my .tex file that references the .bib file in TeXstudio, I still get weird symbols as show in the image above, rather than the expected two dots above the o because TeXworks doesn't seem to recognize the double quotes. BUT if I write the .bib file in the TeXstudio program, then it compiles as expected. I'm not sure what's going on behind the scenes (maybe there is a setting I have to change?), but the issue was TeXworks, not the \"{o}.
Thanks all for your help!
I'm using biblatex in a beamer presentation so that I can use the \footcite command. The problem is that bibliography styles handling in biblatex don't look quite straighforward and none of the default styles will actually work for me since they do not show Journal references.
I'm looking for something similar as .bst files for Bibtex, since I can have JPC and PRL, PR bibliography styles. I surfed the internet and this stackexchange but couldn't find a proper solution. Could somebody provide me a working example with a style which shows: Authors, Year, Journal?
Best regards
The following code (authoryear style) does not show journal. Alphabetic, numeric etc only produces blank references.
MWE:
\documentclass[8pt mathserif]{beamer}
\usepackage{beamerthemesplit}
\usepackage{latexsym}
\usepackage{eurosym}
\usepackage[english]{babel}
\usepackage{ae,aecompl}
\usepackage{graphicx}
\usepackage{amsfonts}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage[style=authoryear]{biblatex}
\addbibresource{library.bib}
\usetheme{Madrid}
\title[]{Title}
\author[]{author}
\institute{MSE # NTU\\
The Zhao Research Group\\
}
\date[]{Thursday 31, July 2014}
\begin{document}
\section{Review of interesting phenomenology}
\begin{frame}[allowframebreaks noframenumbering]{Polaron Transformation}
\begin{itemize}
\item The original theory was developed by Munn-Silbey{\tiny \footcite{Silbey1980}\footcite{Munn1985}\footcite{Munn1985a}} and further refined by Zhao et al. \footcite{JCP1994OntheMunn}\footcite{Chen2011}
\end{itemize}
\end{frame}
\end{document}
And the library.bib file only contains entries such as the one referenced:
#article{Silbey1980,
author = {Silbey, R. and Munn, R. W.},
doi = {10.1063/1.439425},
file = {:Users/Caco/Documents/Mendeley Desktop/General theory of electronic transport in molecular crystals. I. Local linear electron–phonon coupling R. Silbey and R. W. Munn.pdf:pdf},
issn = {00219606},
journal = {The Journal of Chemical Physics},
number = {4},
pages = {2763},
title = {{General theory of electronic transport in molecular crystals. I. Local linear electron–phonon coupling}},
url = {http://scitation.aip.org/content/aip/journal/jcp/72/4/10.1063/1.439425},
volume = {72},
year = {1980}
}