[英]Changing citation language in latex
我试图在我用荷兰语编写的乳胶文档中包含引用 APA 样式。 但是,引文显示为
作者 ea(年)
代替
作者等人 (年)
第一个可能是一些翻译,但在荷兰语中仍然使用 et al 是很常见的。 如何将文本中的引文更改为 et al.?
\documentclass[dutch]{article}
\usepackage[utf8]{inputenc}
\usepackage[dutch]{babel}
\usepackage{csquotes}
\usepackage[style=apa, backend=bibtex]{biblatex}
\addbibresource{Refrences.bib}
\begin{document}
\begin{otherlanguage}{dutch}
Dit is een test. \cite{Schleigh2015}. \cite{Slater2015}
\bibliography{bibliography}
\printbibliography
\end{otherlanguage}
\end{document}
输出:
Dit 是 een 测试。 Schleigh ea, 2015. Slater ea, 2015
另外,我刚刚发现当有超过三个作者存在时,这种 apa 样式显然不会打印“&”。 取而代之的是打印单词“and”,这不是 apa。
作者 1、作者 2 和作者 3
应该是:
作者 1、作者 2 和作者 3
幸运的是你使用了 biblatex 包,这使得调整字符串变得容易:
\documentclass[dutch]{article}
\usepackage[utf8]{inputenc}
\usepackage[dutch]{babel}
\usepackage{csquotes}
\usepackage[style=apa, backend=biber]{biblatex}
\addbibresource{biblatex-examples.bib}
\DefineBibliographyStrings{dutch}{
andothers = {et\addabbrvspace al\adddot},
andmore = {et\addabbrvspace al\adddot},
}
\begin{document}
Dit is een test. \cite{aksin}.
\printbibliography
\end{document}
关于您的代码的其他一些评论:
apa
样式需要 biber 后端。 当您尝试将它与 biblatex 一起使用时,您应该会收到一条错误消息告诉您。 请不要忽略错误消息
您正在混合来自两种不同书目工具的语法。 \\addbibresource{...}
和\\printbibliography
是\\printbibliography
的正确语法。 \\bibliography{bibliography}
不是。
使用\\usepackage[dutch]{babel}
您已经将文档的主要语言更改为荷兰语, \\begin{otherlanguage}{dutch}...\\end{otherlanguage}
不是必需的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.