我使用缩写/速记在文本中引用来源(使用命令\parencite
)。我希望得到的是缩写以小写字母打印,大写字母略大于小写字母。目前,小写字母的大小都相同,高度与小写字母差不多(参见 MWE)。有人能帮我实现不同大小的小写字母吗?提前谢谢!
这是 MWE
\documentclass[12pt, a4paper, openany]{report}
%Disables "ibid" in running text while leaving it activated in footnotes:
\makeatletter
\def\blx@opt@ibidtracker@foot{%
\let\blx@imc@ifciteibid\blx@ifciteibid@foot
\let\blx@ibidtracker\blx@ibidtracker@foot
\let\blx@ibidreset\blx@ibidreset@foot
\booltrue{citetracker}}
\def\blx@ifciteibid@foot{%
\ifbool{citetracker}
{\iftoggle{blx@footnote}
{\blx@imc@iffieldequals{entrykey}\blx@lastkey@text}
{\@secondoftwo}}
{\@secondoftwo}}
\def\blx@ibidtracker@foot{%
\ifbool{citetracker}
{\iftoggle{blx@footnote}
{\global\let\blx@lastkey@text\abx@field@entrykey}
{\global\let\blx@lastkey@foot\abx@field@entrykey}}
{}}
\def\blx@ibidreset@foot{%
\iftoggle{blx@footnote}
{\global\undef\blx@lastkey@text}}
{}
\makeatother
\usepackage[backend=biber, style=authortitle-dw, useprefix=true, acronyms=true, ibidtracker=foot]{biblatex}
\usepackage[left=2.5cm, top=2.5cm, right=2.5cm, bottom=2cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{betababel}
\usepackage{csquotes}
\begin{filecontents}{\jobname.bib}
@book{Hegel,
author = {Hegel, Georg Wilhelm Friedrich},
title = {Enzyklopädie der philosophischen Wissenschaften III},
options = {acronym=true},
shorthand = {Enz III},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Text Text Text \parencite[10]{Hegel}. Text Text Text \parencite[10]{Hegel}.
\end{document}
答案1
biblatex-dw
的acronym
选项使用\mkbibacro
,它首先将其参数转换为小写,然后应用小型大写字母。这意味着您的首字母缩略词中的大小写字母没有区别。
可以通过在相关字段格式中从 切换\mkbibacro
到 来更改这一点。\textsc
\documentclass[12pt, a4paper, openany]{report}
\makeatletter
\def\blx@opt@ibidtracker@foot{%
\let\blx@imc@ifciteibid\blx@ifciteibid@foot
\let\blx@ibidtracker\blx@ibidtracker@foot
\let\blx@ibidreset\blx@ibidreset@foot
\booltrue{citetracker}}
\def\blx@ifciteibid@foot{%
\ifbool{citetracker}
{\iftoggle{blx@footnote}
{\blx@imc@iffieldequals{entrykey}\blx@lastkey@text}
{\@secondoftwo}}
{\@secondoftwo}}
\def\blx@ibidtracker@foot{%
\ifbool{citetracker}
{\iftoggle{blx@footnote}
{\global\let\blx@lastkey@text\abx@field@entrykey}
{\global\let\blx@lastkey@foot\abx@field@entrykey}}
{}}
\def\blx@ibidreset@foot{%
\iftoggle{blx@footnote}
{\global\undef\blx@lastkey@text}}
{}
\makeatother
\usepackage[backend=biber, style=authortitle-dw, useprefix=true, acronyms=true, ibidtracker=foot]{biblatex}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{csquotes}
\DeclareFieldFormat{shorthandwidth}{%
\ifboolexpr{
bool {bbx:shorthandacro}
and
bool {bbx:acronym}
}
{\textsc{#1}\isdot}
{#1\isdot}}
\DeclareFieldFormat{shortjournal}{%
\ifboolexpr{
bool {bbx:shorthandacro}
and
bool {bbx:acronym}
}
{\textsc{#1}\isdot}
{#1\isdot}}
\DeclareFieldFormat{shorthand}{%
\ifbool{bbx:shorthandacro}
{\ifbool{bbx:acronym}
{\textsc{#1}\isdot}
{#1\isdot}}
{#1\isdot}}
\begin{filecontents}{\jobname.bib}
@book{Hegel,
author = {Hegel, Georg Wilhelm Friedrich},
title = {Enzyklopädie der philosophischen Wissenschaften III},
options = {acronym=true},
shorthand = {Enz III},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Text Text Text \parencite[10]{Hegel}.
Text Text Text \parencite[10]{Hegel}.
\end{document}