How do I reference a bibliography in a path name with a -? - latex

My work is all stored on our work's OneDrive and so the path name has a dash in it:
OneDrive - My Organization
I think I can handle the spaces, but the dash is giving me a problem. I can't get biblatex to find the file!
Thank you.
\documentclass{article}
\usepackage[style=authoryear-comp]{biblatex}
\begin{filecontents}{\jobname - test.bib}
#book{key,
author = {Author, A.},
year = {2001},
title = {Title},
publisher = {Publisher},
}
\end{filecontents}
\addbibresource{\jobname - test.bib}
\begin{document}
\cite{key}
\printbibliography
\end{document}

Related

Augment latex citation with specific table (or figure) reference

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}

Is there a way to redefine the bibliography output in biblatex w/ apacite citestyle? The german translation seems to be wrong

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}

List of references are not showing up with \printbibliography

I'm using overleaf. I have 2 files,main.tex and gil.bib uploaded
main.tex :
\documentclass{article}
\usepackage[backend=biber]{biblatex}
\addbibresource{gil.bib}
\begin{document}
Test test test \cite{Lee2009a}
\printbibliography
\end{document}
gil.bib :
#article{Lee2009a,
author = {Lee, Geun},
file = {:Users/JulianLeitner/Library/Application Support/Mendeley Desktop/Downloaded/Lee - 2009 - A Theory of Soft Power and Korea's Soft Power Strategy.pdf:pdf},
journal = {The Korean Journal of Defense Analysis},
number = {2},
pages = {205--218},
title = {{A Theory of Soft Power and Korea's Soft Power Strategy}},
volume = {21},
year = {2009}
}
But I get error saying I have "Empty bibliography on input line 6" and nothing works.
I'm new to Latex - hope someone can help me out.
Thanks!

Problems with bibliography file in LaTex

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

LaTeX and Bibtex: command to print a single full reference from a bib file?

I'd like to be able to print a single reference from a Bibtex .bib file anywhere in my LaTeX document—not cite it, but print the reference, exactly as it would appear in the normal bibliography listing.
So if this is a regular citation, that prints a bracketed reference:
% Normal citation, appears as bracketed reference, e.g. [2]
\cite{Kawahara:2007p1116}
I want something like the following:
\print_citation{Kawahara:2007p1116}
which should print the full citation as it appears in the bibliography, something like:
[2] S Kawahara. Half rhymes in japanese rap lyrics and knowledge of similarity. Journal of East Asian
Linguistics, Jan 2007.
Is it possible?
Use \fullcite with the biblatex package as mentioned in this answer on tex.stackexchange.
bibentry package would provide inline bibliography. Ref: http://stefaanlippens.net/bibentry.
I've not tried it out myself though.
My CV uses multibib nicely:
\usepackage[resetlabels]{multibib}
% Define bibliographies.
\newcites{j,c}{Journal Publications,Conference Publications}
\begin{document}
% Stuff here.
% Publications.
\bibliographystylej{IEEEtran}
\bibliographystylec{IEEEtran}
\nocitej{journalpaperlabel1}
\nocitej{journalpaperlabel2}
\nocitec{conferencepaperlabel1}
\bibliographyj{mybib}
\bibliographyc{mybib}
% More stuff here.
\end{document}
Edited with something less self-promoting here.
See also this answer, that provides a trick using biblatex and its category system:
\documentclass{article}
\usepackage{filecontents}
\usepackage{biblatex}
\begin{filecontents*}{\jobname.bib}
#misc{Gyro2012,
author = {Gearloose, Gyro},
title = {1st paper with a very loooooooooooong title, so it spans multiple rows},
}
#misc{Gyro2013,
author = {Gearloose, Gyro},
title = {2nd paper},
}
#misc{Stark2012,
author = {Stark, Anthony Edward},
title = {3rd paper},
}
#misc{Stark2013,
author = {Stark, Anthony Edward},
title = {4th paper},
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\DeclareBibliographyCategory{enumpapers}
\newcommand{\enumcite}[1]{%
\addtocategory{enumpapers}{#1}%
\defbibcheck{key#1}{
\iffieldequalstr{entrykey}{#1}
{}
{\skipentry}}%
\printbibliography[heading=none,check=key#1]%
}
\begin{document}
\nocite{*}
\begin{enumerate}
\item \enumcite{Gyro2012}
\setcounter{enumi}{9} % Two digits to test alignment
\item \enumcite{Gyro2013}
\end{enumerate}
\printbibliography[notcategory=enumpapers]
\end{document}

Resources