在芬兰语中,我们需要变格。那么当我引用文本时该怎么做呢?我想使用一些自定义命令,例如\customcitet[Greenwaden]{greenwade93}
。我希望找到不与 biblatex(使用 natbib 命令)包冲突的解决方案。
这是一个最简单的例子:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{bibfile.bib}
@article{greenwade93,
author = "George D. Greenwade",
title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
year = "1993",
journal = "TUGBoat",
volume = "14",
number = "3",
pages = "342--351"
}
\end{filecontents}
\usepackage[%
natbib,%
authordate,%
backend=biber,%
noibid,
language=finnish,%
]{biblatex-chicago}
\bibliography{bibfile}
\begin{document}
Now I get this: \citet{greenwade93}.
But I want something like this: Greenwaden (1993).
\end{document}
答案1
编辑
从评论来看,令人满意的答案就是以适当的词形变化形式输入作者姓名,然后使用\parencite*{<entrykey>}
。
原始建议
这是实现此目的的一种方法。
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{bibfile.bib}
@preamble{ "\newif\ifdecline" }
@preamble{ "\newcommand\finale{\ifdecline en\else e\fi}" }
@article{greenwade93,
author = {George D. Greenwad\finale },
title = {The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})},
year = {1993},
journal = {TUGBoat},
volume = {14},
number = {3},
pages = {342--351}
}
\end{filecontents*}
\usepackage[%
natbib,%
authordate,%
backend=biber,%
noibid,
language=finnish,%
]{biblatex-chicago}
\bibliography{bibfile}
\newcommand\dcitet[1]{\AtNextCite{\declinetrue}\citet{#1}}
\begin{document}
Now I get this: \dcitet{greenwade93}.
But I want something like this: Greenwaden (1993).
\citet{greenwade93}
\end{document}