idem
我对中的文字字体形状有疑问biblatex-dw
。
在 MWE 中,我们可以看到第一个脚注中的单词Ders
是用小写字母排版的,而原始处理后的单词是ders
小写的。
第二个脚注Ders
也采用小写字母排版,但原始处理后的单词Ders
首字母大写。这使其看起来与最初的单词不同。
该URL
文本可以排版为小型大写字母,原始处理后的单词为url
。
我希望两者的Ders
排版相同。为此,我尝试重新定义\mkbibmacro
将大写缩写词先改为小写,然后将首字母大写,最后将其设置为小写。但是,\MakeCapital
似乎不起作用。即使它可以工作,我认为也会URL
受到影响。
\documentclass{article}
\usepackage[backend=biber,style=footnote-dw,xref=true,mincrossrefs=1,edsuper=true,autocite=footnote,ibidtracker=constrict,idemtracker=constrict,ibidpage=true,namefont=smallcaps,citedas=true,annotation=true,idemfont=smallcaps]{biblatex}
\usepackage[ngerman]{babel}
\renewcommand*{\mkbibacro}[1]{\textsc{\MakeCapital{\MakeLowercase{#1}}}}
\begin{filecontents*}{MWE.bib}
@Collection{ABC,
editor = {Cornelisse, J. W.},
title = {Rocket Propulsion and Spaceflight Dynamics},
year = {1979},
gender = {sm},
publisher = {Pitman},
url = {https://google.com}
}
@InCollection{ABC2,
crossref = {ABC},
author = {Cornelisse, J. W.},
title = {Rocket Propulsion II},
year = {1979},
gender = {sm},
publisher = {Pitman},
url = {https://google.com}
}
\end{filecontents*}
\bibliography{MWE.bib}
\begin{document}
Second book\autocite[][]{ABC2}. \textsc{ders} should look like \textsc{Ders} but \textsc{url} is fine
First book\autocite[][]{ABC} where \textsc{Ders} is typeset correctly.
\end{document}
答案1
biblatex-dw
使用 主动禁用编辑器和翻译器位置中“idem”的自动大写跟踪器\midsentence*
。以下 MWE 重新启用它。useeditor
和的定义usetranslator
是从 复制的standard-dw.bbx
,只是\midsentence*
删除了 。
由于“idem”/“ders.”不是首字母缩略词,因此\mkbibacro
格式中没有单词。下面的代码显示格式由 控制\mkidem
,但无需在此处重新定义该宏。
\documentclass{article}
\usepackage[backend=biber,style=footnote-dw, xref=true, mincrossrefs=1, edsuper=true, autocite=footnote, ibidtracker=constrict, idemtracker=constrict, ibidpage=true, namefont=smallcaps, citedas=true, annotation=true, idemfont=smallcaps]{biblatex}
\usepackage[ngerman]{babel}
\makeatletter
\renewbibmacro*{useeditor}{%
\ifnamesequal{author}{editor}
{\ifbool{bbx:edbyidem}
{\bibstring[\mkidem]{idem\thefield{gender}}%
\addspace}%
{\printnames[byeditor]{editor}%
\usebibmacro{editorstringpunct}%
\savefield{namehash}{\bbx@lasthash}}}%
{\printnames[byeditor]{editor}%
\usebibmacro{editorstringpunct}%
\savefield{namehash}{\bbx@lasthash}}%
\usebibmacro{editorstrg}%
\clearname{editor}%
\setunit{\labelnamepunct}\newblock}
\renewbibmacro*{usetranslator}{%
\ifnamesequal{author}{translator}
{\ifbool{bbx:edbyidem}
{\bibstring[\mkidem]{idem\thefield{gender}}%
\addspace}%
{\printnames[byeditor]{translator}%
\usebibmacro{editorstringpunct}%
\savefield{namehash}{\bbx@lasthash}}}%
{\printnames[byeditor]{translator}%
\usebibmacro{editorstringpunct}%
\savefield{namehash}{\bbx@lasthash}}%
\usebibmacro{translatorstrg}%
\clearname{translator}%
\setunit{\labelnamepunct}\newblock}
\makeatother
%\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Collection{ABC,
editor = {Cornelisse, J. W.},
title = {Rocket Propulsion and Spaceflight Dynamics},
year = {1979},
gender = {sm},
publisher = {Pitman},
url = {https://google.com}
}
@InCollection{ABC2,
crossref = {ABC},
author = {Cornelisse, J. W.},
title = {Rocket Propulsion II},
year = {1979},
gender = {sm},
publisher = {Pitman},
url = {https://google.com}
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
Second book\autocite[][]{ABC2}. \textsc{ders} should look like \textsc{Ders} but \textsc{url} is fine
First book\autocite[][]{ABC} where \textsc{Ders} is typeset correctly.
\end{document}