使用 LaTeX 的 MLA 格式进行 bibtex 开发

使用 LaTeX 的 MLA 格式进行 bibtex 开发

我在 Ubuntu 20.04 上,需要使用 MLA 格式引用我的资源进行演示,但找不到使用 Bibtex 的方法。我尝试了 duckduckgoing 主题时发现的建议中描述的许多方法,但似乎所有这些都只适用于 Windows,我没有任何 Windows 安装来测试它们。我有 texlive-full 包,正在使用以下内容进行编译:

$ pdflatex texfilebasename
$ bibtex texfilebasename
$ pdflatex texfilebasename
$ pdflatex texfilebasename

我通常使用 apalike,但我的作业特别要求使用 MLA。我在这个网站上搜索我的问题时没有找到任何结果。有人知道如何获得 MLA 格式吗?我使用 apalike 的通常方式是:

\bibliography{bibliography}
\bibliographystyle{apalike}

我尝试过“mla”和“mlalike”

编辑

这是我的 .tex 文件中的代码:

\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

biblatex-mla适用于 Ubuntu 和包含texlive-bibtex-extra包裹中。

您必须使用以下命令安装它:

sudo apt-get install texlive-bibtex-extra

然后mla.bst通过以下方式进行本地注册:

mkdir -p ~/texmf/bibtex/bst/
cd ~/texmf/bibtex/bst/
wget http://tug.ctan.org/tex-archive/biblio/bibtex/contrib/mla/mla.bst
texhash ~/texmf

然后按照您的计划通过xelatex/编译您的文件。pdflatexbibtex

答案2

我尝试在问题的工作流中用 xelatex 替换 pdflatex,但结果仍然相同。编译没有错误,但 bibtex 找不到 mla.bst,所以我只有 [?] 引用应该出现的位置,而没有参考文献部分。也许 16.04 和 20.04 之间出了点问题。

编辑

错误如下:

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

这是 bibliography.bib 条目,我从 ACM 数字图书馆获取了它,并且只将参考名称更改为 transparentNotNeutrality。Vim 中的语法高亮无法识别 articleno 和 numpages,但如果删除这些行,问题仍然存在:

@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 = {https://doi.org/10.1145/2834050.2834082},
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}
}

相关内容