![多个引用,整个引用用括号括起来](https://linux22.com/image/385014/%E5%A4%9A%E4%B8%AA%E5%BC%95%E7%94%A8%EF%BC%8C%E6%95%B4%E4%B8%AA%E5%BC%95%E7%94%A8%E7%94%A8%E6%8B%AC%E5%8F%B7%E6%8B%AC%E8%B5%B7%E6%9D%A5.png)
我正在尝试实现一个结果,它相当于 \cites,可能包含所有引用的参考。我的引用与文本内联,我希望将其括在括号中。
我找到了以下参考资料,例如这个问题仅在有多个引用时才放置括号,或者这个问题是关于使用 的多次引用\cites(<multipre>)(<multipost>)
。
但是,我找不到将两者混合在一起的方法。我的目标是:
- 整个块周围都有括号(丢失的)
- 最后毫无意义(完成)
- 标题被强调,名称采用小写字母(完成)
- 法语作为主要语言(已完成)
以下是我目前通过 MWE 所取得的成就:
\documentclass[11pt]{memoir}
\usepackage{filecontents}
\begin{filecontents}{PsammetichusII.bib}
@article{Gozzoli1,
author = {Gozzoli, Roberto B.},
title = {The Statue BM EA 37891 and the Erasures of Necho II's Names},
}
@book{Gozzoli2,
author = {Gozzoli, Roberto B.},
title = {The Writing of History in Ancient Egypt during the First Millennium BC (ca. 1070-180 BC). Trends and Perspectives},
shorttitle = {The Writing of History},
}
\end{filecontents}
\usepackage[style=authortitle,backend=biber,language=french]{biblatex}
\addbibresource{PsammetichusII.bib}
\UndefineBibliographyExtras{french}{\restorecommand\mkbibnamefamily}
\newcommand{\no}{n\textsuperscript{o}\space}
\newcommand{\nos}{n\textsuperscript{os}\space}
\renewcommand*{\mkbibnamefamily}{\textsc}
\renewcommand*{\revsdnamepunct}{}
\DeclareFieldFormat*{citetitle}{\mkbibemph{#1}}
\renewcommand*{\multicitedelim}{\addsemicolon\space}
\DeclareMultiCiteCommand{\ucites}{\cite}{\multicitedelim}
\begin{document}
a first test as demo \ucites[1]{Gozzoli1}[4]{Gozzoli2}
a second text which also has some references \ucites[\nos 1, 2, 5]{Gozzoli1}[10, 11]{Gozzoli2}
\end{document}
答案1
可选包装器看起来\DeclareMultiCiteCommand
好像它就是你正在寻找的
\DeclareMultiCiteCommand{\ucites}[\mkbibparens]{\cite}{\multicitedelim}
总共
\documentclass[11pt]{memoir}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Gozzoli1,
author = {Gozzoli, Roberto B.},
title = {The Statue BM EA 37891 and the Erasures of Necho II's Names},
}
@book{Gozzoli2,
author = {Gozzoli, Roberto B.},
title = {The Writing of History in Ancient Egypt during the First Millennium BC (ca. 1070-180 BC). Trends and Perspectives},
shorttitle = {The Writing of History},
}
\end{filecontents}
\usepackage[style=authortitle,backend=biber,language=french]{biblatex}
\addbibresource{\jobname.bib}
\UndefineBibliographyExtras{french}{\restorecommand\mkbibnamefamily}
\newcommand{\no}{n\textsuperscript{o}\space}
\newcommand{\nos}{n\textsuperscript{os}\space}
\renewcommand*{\mkbibnamefamily}{\textsc}
\renewcommand*{\revsdnamepunct}{}
\DeclareFieldFormat*{citetitle}{\mkbibemph{#1}}
\renewcommand*{\multicitedelim}{\addsemicolon\space}
\DeclareMultiCiteCommand{\ucites}[\mkbibparens]{\cite}{\multicitedelim}
\begin{document}
a first test as demo \ucites[1]{Gozzoli1}[4]{Gozzoli2}
a second text which also has some references \ucites[\nos 1, 2, 5]{Gozzoli1}[10, 11]{Gozzoli2}
\end{document}