Bibliography Customisation for Overleaf - latex

I currently have this code:
\usepackage[
backend=biber,
citestyle=authoryear,
bibstyle=authoryear,
maxcitenames=2,
maxbibnames=99]{biblatex}
\addbibresource{reference.bib}
\renewcommand*{\nameyeardelim}{\addcomma\space}
\DeclareNameAlias{sortname}{family-given}
\setlength\bibitemsep{1em}
Which prints the bibliography like this:
Birrell, S. and Donnelley, P. (2004). “Erving Goffman’s Influence on
the Sociology ofSport”. In: ed. by R. Giulianotti. Sport and Modern
Social Theorists. London: Pal-grave Macmillian UK, pp. 49–64.
This is the info from the .bib file:
#inbook{birrel:2004,
author={S. Birrell and P. Donnelley},
editor={Giulianotti,R.},
year={2004},
title={Erving Goffman's Influence on the Sociology of Sport},
series={Sport and Modern Social Theorists},
publisher={Palgrave Macmillian UK},
address={London},
pages={49-64}
}
I need to remove the parentheses from around the year to conform to Leeds Harvard style, which is like this:
Family name, INITIAL(S). Year. Title of article. Journal Title. Volume(issue number), page numbers.
Help!

Related

Natbib: maximum number of authors in bibliography

I am using natbib to set up the bibliography in a latex document.
I would like citations to appear in the text as:
Author 1 et al., 2022
In the bibliography, I would like the citation to appear with a maximum of three authors. For example:
Author 1, Author 2, Author 3, et al. 2022, journal, page, number
I am currently using:
\usepackage[]{natbib}
...
...
\bibliographystyle{plainnat}
\bibliography{literatur}
which writes the citation as I want, but writes all the authors in the bibliography.
Is there a simple way to have max three authors in the bibliography with natbib?
Or possible alternatives with bibtex?
Here an alternative using biblatex (make sure to compile with biber instead of bibtex)
\documentclass{article}
\usepackage[style=authoryear,minbibnames=3,natbib=true]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{murray}
\printbibliography
\end{document}

Only print a footnote of a acronym once per page in the footnotes.- LaTeX

I want the acronym package to only print a footnote, if its not already printed on that specific page. And give the \acf{XX} the same number in the text.
It should look like this:
Text
The USA¹ are country as well as the UAE², but the USA¹ are bigger.
___________________
1 United States of America, 2 United Arabic Emirates
Next page:
The UAE¹ are still a country.
___________________
1 United Arabic Emirates
But it looks like this:
Text
The USA¹ are country as well as the UAE², but the USA³ are bigger.
___________________
1 United States of America, 2 United Arabic Emirates, 3 United States of America
Next page:
The UAE¹ are still a country.
___________________
1 United Arabic Emirates
My code:
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[footnote]{acronym}
\usepackage{hyperref}
\usepackage{perpage}
\MakePerPage[1]{footnote}
\begin{document}
\section*{Acronyms}
\begin{acronym}[ECU]
\acro{USA}{United States of America}
\acro{UAE}{United Arabic Emirates}
%[...]
\end{acronym}
\newpage
\section{Text}
The \acf{USA} are a country as well as the \acf{UAE}, but the \acf{USA} are bigger.
\newpage
The \acf{USA} are still a country.
\end{document}
I tried a lot but couldnt find out a Solution on my own - Maby someone here is better in LaTeX as me and could provide me some help.
Greetings
Tristan.
When you use \acf you request a "full acronym", so you explicitly override what the package would normally do. If you use \af instead, you'll only get the footnote the first time.
As for "first time¨: the acronym package tracks whether it has spelled out the acronym already. You can reset this counter with \acresetall. This is independent of pages. In your example with the forced page break you could simply add \acresetall after \newpage. In larger documents you could add it to each \section or \chapter, or have it done automatically with the etoolbox package or look into this answer to hook it into a page break.

Changing University name, thesis title e.a. for abstract in different language

I need to write two different abstracts in my thesis in german and in english. The German one works fine and by using the \begin{otherlanguage} command, the abstract name itself changes to english. But furthermore I need to use an english tilte, university name, faculty name and company name for the second abstract. I tried using \renewcommand but it does not change the title in the output file, which is still german.
I found packages for multiple titles (\titling), but that is not working for the university name and so on.
Thank you in advance
\documentclass[11pt, english, ngerman,]{MastersDoctoralThesis}
\thesistitle{Title in German}
\university{University Title in German}
\begin{document}
\begin{abstract}
\addchaptertocentry{\abstractname}
German German German
\end{abstract}
\begin{otherlanguage}{english}
\renewcommand{\thesistitle}{Title in English}
\renewcommand{\university}{University Title in English}
\begin{abstract}
English English English
\end{abstract}
\end{otherlanguage}
% This template was downloaded from:
% http://www.LaTeXTemplates.com
% Template license:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
\documentclass[11pt, english, ngerman,openany]{MastersDoctoralThesis}
\usepackage{blindtext}
\thesistitle{Wombat} % Your thesis title, this is used in the title and abstract, print it elsewhere with \ttitle
\supervisor{Gerald Giraffe} % Your supervisor's name, this is used in the title page, print it elsewhere with \supname
\examiner{} % Your examiner's name, this is not currently used anywhere in the template, print it elsewhere with \examname
\degree{Doctor of Philosophy} % Your degree name, this is used in the title page and abstract, print it elsewhere with \degreename
\author{John \textsc{Smith}} % Your name, this is used in the title page and abstract, print it elsewhere with \authorname
\addresses{} % Your address, this is not currently used anywhere in the template, print it elsewhere with \addressname
\subject{Biological Sciences} % Your subject area, this is not currently used anywhere in the template, print it elsewhere with \subjectname
\keywords{} % Keywords for your thesis, this is not currently used anywhere in the template, print it elsewhere with \keywordnames
\university{Uni der Zootiere} % Your university's name and URL, this is used in the title page and abstract, print it elsewhere with \univname
\department{Institut der Angewandten Tierpflegeranalyse} % Your department's name and URL, this is used in the title page and abstract, print it elsewhere with \deptname
\group{\href{http://researchgroup.university.com}{Research Group Name}} % Your research group's name and URL, this is used in the title page, print it elsewhere with \groupname
\faculty{\href{http://faculty.university.com}{Faculty Name}} % Your faculty's name and URL, this is used in the title page and abstract, print it elsewhere with \facname
\begin{document}
\begin{abstract}
\addchaptertocentry{\abstractname}
\blindtext
\end{abstract}
\begin{otherlanguage}{english}
\makeatletter
\renewcommand{\#title}{Capybara}
\makeatother
\renewcommand{\univname}{Univerity of Zoo Animals}
\renewcommand{\deptname}{Institute for applied Something}
\begin{abstract}
\blindtext
\end{abstract}
\end{otherlanguage}
\end{document}
I do not have, neither know the package MastersDoctoralThesis.
If it includes the babel package, you can use iflang to test the active language.
\documentclass[11pt]{article}
\usepackage{iflang}
\usepackage[german]{babel}
%\usepackage[english]{babel}
\begin{document}
\IfLanguageName{german}{
German German German
}{
English English English
}
\end{document}
If your document class does not include the babel language, you can do something similar by defining a macro and testing its value with the ifthen package.
\documentclass[11pt]{article}
\usepackage{ifthen}
\def\mylanguage{german}
\begin{document}
\ifthenelse{\equal{\mylanguage}{german}}{
German German German
}{
English English English
}
\end{document}

Hyperlinking to a bibitem in LaTeX

Here is a minimum working example:
\documentclass{article}
\usepackage{natbib,xspace}
\usepackage[colorlinks,citecolor=blue,linkcolor=blue]{hyperref}
\newcommand{\BOGOS}{\hyperlink{BriEtal18a}{BOGOS}\xspace}
\begin{document}
In this article we reference \cite{BriEtal18a} many times. I want to create the shortcut \BOGOS that will still link to the reference in the bibliography. This does not work yet.
\begin{thebibliography}{}
\bibitem[Briol et~al., 2018]{BriEtal18a}
Briol, F.-X., Oates, C.~J., Griolami, M., Osborne, M.~A., and Sejdinovic, D.
(2018+).
\newblock Probabilistic integration: A role in statistical computation?
\newblock {\em Statist.\ Sci.}
\newblock to appear.
\end{thebibliography}
\end{document}
If one clicks on the hyperlink for the citation it sends you to the reference. If one clicks on my abbreviation, nothing happens. I need to know what the right label is. Can you help?
Since you're using natbib, you can define a citation alias which will be displayed instead of the regular \cite:
\documentclass{article}
\usepackage{natbib}
\usepackage[colorlinks,citecolor=blue,linkcolor=blue]{hyperref}
\defcitealias{BriEtal18a}{BOGOS}% Define a citation alias
\newcommand{\BOGOS}{\citetalias{BriEtal18a}}% Use shorthand
\begin{document}
In this article we reference \citet{BriEtal18a} many times.
I want to create the shortcut \BOGOS{} that will still link to the reference in the bibliography.
\begin{thebibliography}{}
\bibitem[Briol et~al., 2018]{BriEtal18a}
Briol, F.-X., Oates, C.~J., Griolami, M., Osborne, M.~A., and Sejdinovic, D.
(2018+).
\newblock Probabilistic integration: A role in statistical computation?
\newblock {\itshape Statist.\ Sci.}
\newblock to appear.
\end{thebibliography}
\end{document}

Add journal name to biblatex references, journal names not showing up

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

Resources