有没有办法在使用时在参考文献列表中的数字之前或之后添加星号(或其他符号)biblatex
?
我正在创建一份简历,我想突出显示我作为通讯作者的论文,因此它看起来像这样:
但我所能做的最多的就是手动列出清单:
\documentclass[letterpaper,11pt]{article}
\usepackage[style=ieee,url=false,doi=false,maxbibnames=99,sorting=ydnt,dashed=false]{biblatex}
\bibliography{papers}
\usepackage{simplecv}
\makeatletter
\newcommand{\corresp}{%
\refstepcounter{\@enumctr}% step the level-specific counter
\item[% Insert item/enumeration
\textdagger
\,% Space
\@nameuse{label\@enumctr}]% Place level-formatted counter
}
\makeatother
\begin{document}
\section{Publications}
\begin{enumerate}
\corresp First Author, Second Author, \textbf{My Name}, Other Corresponding Author, \textit{Journal}, \textbf{1991}, \textit{20}, pp. 1-3.
\corresp First Author, Second Author, Someone Else, \textbf{Me Again}, \textit{Journal}, \textbf{1992}, \textit{30}, pp. 4-5.
\item First Author, Second Author, Someone Else, \textbf{Not Corresponding Me}, Corresponding Author \textit{Journal}, \textbf{1993}, \textit{40}, pp. 5-6.
\end{enumerate}
\textdagger indicates applicant is (co-) corresponding author.
\end{document}
答案1
您可以使用与apacites \nocitemeta 与 biblatex-apa 的功能:在作者姓氏中添加星号(元分析)。
labelnumberwidth
我们只需要在字段格式中而不是在bibmacro 中打印符号,begentry
以确保符号出现在标签编号之前。
\documentclass[american]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=ieee,
sorting=ydnt,
maxbibnames=99,
url=false,doi=false,
dashed=false,
]{biblatex}
\newtoggle{bib@corresponding}
\DeclareEntryOption{corresponding}[true]{\settoggle{bib@corresponding}{#1}}
\DeclareFieldFormat{labelnumberwidth}{%
\iftoggle{bib@corresponding}%
{\textdagger}%
{}%
\mkbibbrackets{#1}%
}
\defbibnote{corresponding}{\textdagger\ indicates applicant is (co-) corresponding author.}
\begin{filecontents*}{\jobname.bib}
@book{bohec,
author = {Le Bohec, Yann},
title = {Histoire militaire des guerres puniques},
date = {1996},
location = {Monaco},
publisher = {Rocher},
isbn = {2-268-02147-5},
options = {corresponding},
}
@book{uthor,
author = {Uthor, Arnold},
title = {A Book},
date = {2013},
location = {Place},
publisher = {P. Ublisher's \& Co.},
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
\autocite{bohec,uthor}
\printbibliography[postnote=corresponding]
\end{document}
可以类似地添加不同的标记。
\documentclass[american]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=ieee,
sorting=ydnt,
maxbibnames=99,
url=false,doi=false,
dashed=false,
]{biblatex}
\newtoggle{bibentry@corresponding}
\DeclareEntryOption{corresponding}[true]{\settoggle{bibentry@corresponding}{#1}}
\newtoggle{bibentry@cofirst}
\DeclareEntryOption{cofirst}[true]{\settoggle{bibentry@cofirst}{#1}}
\DeclareFieldFormat{labelnumberwidth}{%
\iftoggle{bibentry@corresponding}%
{\textdagger}%
{}%
\iftoggle{bibentry@cofirst}%
{\textdaggerdbl}%
{}%
\mkbibbrackets{#1}%
}
\defbibnote{corresponding}{\textdagger\ indicates applicant is (co-) corresponding author.}
\begin{filecontents*}{\jobname.bib}
@book{bohec,
author = {Le Bohec, Yann},
title = {Histoire militaire des guerres puniques},
date = {1996},
location = {Monaco},
publisher = {Rocher},
isbn = {2-268-02147-5},
options = {corresponding},
}
@book{uthor,
author = {Uthor, Arnold},
title = {A Book},
date = {2013},
location = {Place},
publisher = {P. Ublisher's \& Co.},
options = {cofirst},
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
\autocite{bohec,uthor}
\printbibliography[postnote=corresponding]
\end{document}