I am on Ubuntu 20.04 and need to use MLA format for citing my resources for a presentation and cannot find a way to do that using Bibtex. I have tried numerous things described in suggestions found while duckduckgoing the topic and it seems that all of them only work on Windows, I don't have any Windows installations to test them on. I have the texlive-full package and am compiling using the following:
$ pdflatex texfilebasename
$ bibtex texfilebasename
$ pdflatex texfilebasename
$ pdflatex texfilebasenameI generally use apalike, but MLA has been specifically requested for my assignment. I found zero results when searching this site for my question. Does anyone know how to get MLA formatting. The usual way that I use apalike is:
\bibliography{bibliography}
\bibliographystyle{apalike}I have tried "mla" and "mlalike"
EDIT
Here is the code in my .tex file:
\documentclass[12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{indentfirst}
\usepackage{setspace}
\usepackage{float, lscape}
\usepackage{hyperref}
\doublespacing{}
\pagenumbering{gobble}
% \author{}
% \title{}
% \date{\today}
\begin{document}
% \maketitle
% \newpage
% \pagenumbering{arabic}
\section*{some good quotes and paragraphs that could be used}
\noindent ``One additional strength of a network-transparency mechanism is that it would benefit not only
individual end users, but also commercial users (e.g., content providers) and network providers
who are interested in whether their peering partners adhere to their contractual
promises.''\cite{transparencyNotNeutrality}
\section*{Transparency With Respect to ISPs}
\bibliography{bibliography}
\bibliographystyle{mla}
\end{document} 1 2 Answers
The biblatex-mla is packaged for Ubuntu and contained in texlive-bibtex-extra package.
You have to install it with:
sudo apt-get install texlive-bibtex-extraThen register mla.bst locally by:
mkdir -p ~/texmf/bibtex/bst/
cd ~/texmf/bibtex/bst/
wget
texhash ~/texmfand then compile your file by xelatex / pdflatex and bibtex as you have planned.
I tried replacing pdflatex with xelatex in the workflow from my question and it still gives the same result. Compiles without error, but bibtex cannot find mla.bst and so I just have [?] Where my citations should be and no references section. Maybe something has been broken between 16.04 and 20.04.
EDIT
Here is the error:
LaTeX Warning: Citation `transparencyNotNeutrality' on page undefined on input line 115.
pdfTeX warning (ext4): destination with the same identifier (name{page.}) has b
een already used, duplicate ignored
<to be read again> \relax
l.117 \section *{Transparency With Respect to ISPs} [2] (./isp_section.bbl
! Undefined control sequence.
<argument> \protect \citeauthoryear {Pappas, Argyraki, Bechtold, and Perrig}...
l.4 et~al.}{2015}]{transparencyNotNeutrality}
? XHere is the bibliography.bib entry, which I got from the ACM Digital Library and only changed the reference name to transparencyNotNeutrality. Syntax highlighting in Vim is not recognizing articleno and numpages, but the issue still remains if those lines are deleted:
@inproceedings{transparencyNotNeutrality,
author = {Pappas, Christos and Argyraki, Katerina and Bechtold, Stefan and Perrig, Adrian},
title = {Transparency Instead of Neutrality},
year = {2015},
isbn = {9781450340472},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {
doi = {10.1145/2834050.2834082},
booktitle = {Proceedings of the 14th ACM Workshop on Hot Topics in Networks},
articleno = {22},
numpages = {7},
location = {Philadelphia, PA, USA},
series = {HotNets-XIV}
} 4