我对 Latex 还不熟悉,所以请原谅我的无知。我在 .bib 文件中设置了翻译器,但是当我使用时\printbibliography
没有打印翻译器。所以目前我的参考资料如下所示:
Surname, A. (2018). 文章标题。期刊,10(3),92–101
当它看起来应该是这样的:
Surname, A. (2018). 文章标题 (B. 译者, 译文). 期刊,10(3),92–101
Biblatex 中的 apa 样式是否允许翻译器选项?
顺便说一句,我发现使用该apacite
包会输出参考书目的翻译,但是我找不到一种方法来输出图表列表的完整参考资料(例如参考书目中会出现的内容)。我尝试使用,\caption[{\fullcite]{Figure text}
但很快发现apacite
没有\fullcite
等效方法。这促使我改用biblatex
- 而且我读到 biblatex 的 apa 样式应该是在 Latex 中引用 apa 的“正确”方式。
非常感谢!
编辑:完整示例,感谢 samcarter
主文本
\documentclass[a4paper, twoside, 10pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[british]{babel}
\linespread{1.6}
\setlength{\parindent}{4em}
\usepackage{fullpage}
\usepackage[Sonny]{fncychap}
\usepackage{fancyhdr}
\usepackage{graphicx}
\graphicspath{ {images/} }
\usepackage[backend=biber,style=apa,sorting=ynt,language=british]{biblatex}
\DeclareLanguageMapping{british}{british-apa}
\addbibresource{literature.bib}
\usepackage[font=footnotesize,labelfont=bf]{caption}
\usepackage{parskip}
\usepackage[toc, acronym]{glossaries}
\begin{document}
\chapter{Chapter 1: The Problem}
\section{The Reference}
Here is some writing with a citation \parencite[p.6]{reference1}
\printbibliography\newpage
\end{document}
文献资料
@article{reference1,
title={The Works of John Smith},
author={Smith, J.},
translator={Peter Holmes},
journal={Science Journal},
volume={10},
number={3},
pages={92-105},
year={1999},
language = {german},
}
答案1
您可以创建一个新的宏来输出translator
,article
然后修补article
驱动程序以将其包括在内。
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Surname2018,
author = {Surname, A.},
date = {2018},
title = {Article Title},
translator = {Translator, B.},
journaltitle = {Journal},
volume = {10},
number = {3},
pages = {92-101}
}
\end{filecontents}
\usepackage[style=apa]{biblatex}
\addbibresource{\jobname.bib}
\newbibmacro*{article:trans}{%
\ifnameundef{translator}
{}
{\printtext[parens]{%
\printnames[apanames][-\value{listtotal}]{translator}%
\setunit{\addcomma\addspace}%
\printtext{\bibcpstring{translator}}%
\clearname{translator}}}}
\usepackage{xpatch}
\xpatchbibdriver{article}
{\usebibmacro{title}}
{\usebibmacro{title}%
\setunit{\addspace}\newblock
\usebibmacro{article:trans}}
{}
{}
\begin{document}
\nocite{*}
\printbibliography
\end{document}