首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用LaTeX实现双LaTeX的MLA格式

用LaTeX实现双LaTeX的MLA格式
EN

Ask Ubuntu用户
提问于 2020-09-05 17:08:54
回答 2查看 355关注 0票数 1

我在Ubuntu20.04上,需要使用MLA格式引用我的资源作为演示文稿,并且无法找到使用Bibtex的方法。我尝试了很多建议中所描述的东西,这些建议都是在讨论这个话题时发现的,看起来它们都只在Windows上工作,我没有任何Windows安装可以测试它们。我有一个完整的文本包,正在使用以下内容进行编译:

代码语言:javascript
复制
$ pdflatex texfilebasename
$ bibtex texfilebasename
$ pdflatex texfilebasename
$ pdflatex texfilebasename

我通常使用类似的,但司法协助已被特别要求为我的任务。当我在这个网站上搜索我的问题时,我发现没有结果。有没有人知道如何获得MLA格式。我常用的用法是:

代码语言:javascript
复制
\bibliography{bibliography}
\bibliographystyle{apalike}

我试过"mla“和"mlalike”

编辑

下面是我的.tex文件中的代码:

代码语言:javascript
复制
\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}
EN

回答 2

Ask Ubuntu用户

发布于 2020-09-05 17:15:40

圣经-司法协助是在texlive-bibtex-extra包中为Ubuntu和包含打包的。

你必须用以下方式安装它:

代码语言:javascript
复制
sudo apt-get install texlive-bibtex-extra

然后通过以下方式在本地注册mla.bst

代码语言:javascript
复制
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编译您的文件。

票数 1
EN

Ask Ubuntu用户

发布于 2020-09-05 18:30:33

在我的问题中,我尝试用xelatex替换pdflatex,结果仍然一样。编译是没有错误的,但是bibtex无法找到mla.bst,所以我只知道引用的位置,而没有引用部分。也许在16.04到20.04之间有什么东西坏了。

编辑

以下是错误:

代码语言:javascript
复制
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
 
               \relax 
l.117 \section
          *{Transparency With Respect to ISPs} [2] (./isp_section.bbl
! Undefined control sequence.
 \protect \citeauthoryear 
                                {Pappas, Argyraki, Bechtold, and Perrig}...
l.4   et~al.}{2015}]{transparencyNotNeutrality}
                                           
? X

这里是bibliography.bib条目,我是从ACM获得的,它只将引用名更改为transparencyNotNeutrality。Vim中的语法突出显示不识别articleno和numpage,但如果删除这些行,问题仍然存在:

代码语言:javascript
复制
@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}
}
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1272887

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档