我在使用参考书目时遇到了两个问题ConTeXt ver: 2013.01.10 01:04 MKIV
。
我希望得到
\citet
类似的行为Author name [1]
。但是,目前 MWE 仅生成数字。\placepublications
其次,根本没有制作出版物清单\completepublications
。
平均能量损失
\setupbibtex[database={bib}]
%\setuppublications[alternative=]
\starttext
I am refering to \cite{me13}.
\placepublications[criterium=text]
\stoptext
书目目录
@article{me13,
title = {This bibliography in context},
author = {Convert, Recent},
journal = {Tex SX},
volume = {1},
number = {1},
pages = {1-11},
year = {2013},
}
答案1
您需要将 更改refcommand
为authornum
,即
\setuppublications[alternative=num, refcommand=authornum]
完整的 MWE:
\setupbibtex[database={bib}]
\setuppublications[alternative=num, refcommand=authornum]
\starttext
I am refering to \cite{me13}.
\placepublications[criterium=text]
\stoptext
给出
编辑:存在一个错误,authornum
当引用包含超过三位作者时,它不起作用。这是一个错误修复。
\setupbibtex[database={bib}]
\setuppublications[alternative=num, refcommand=authornum]
\unprotected\def\dobibauthornumref#1%
{\bibinsertrefsep
\doifbibreferencefoundelse{#1}
{\begingroup
\cite[left=,right=,alternative=author][#1]%
\bibalternative\c!inbetween
\cite[num][#1]%
\endgroup}
{}}
\starttext
\startTEXpage[offset=3mm]
I am refering to \cite[me13]. I can also refer to \cite[me13a,me13b].
\placepublications[criterium=text]
\stopTEXpage
\stoptext
bib.bib
文件在哪里
@article{me13,
title = {This bibliography in context},
author = {Convert, Recent and User, Latex and Guru, Old},
journal = {Tex SX},
volume = {1},
number = {1},
pages = {1-11},
year = {2013},
}
@article{me13a,
title = {This bibliography in context},
author = {Convert, Recent and Guru, Old},
journal = {Tex SX},
volume = {1},
number = {2},
pages = {12-16},
year = {2013},
}
@article{me13b,
title = {This bibliography in context},
author = {Convert, Recent},
journal = {Tex SX},
volume = {1},
number = {3},
pages = {17-32},
year = {2013},
}
这使