引文前的小写作者姓名

引文前的小写作者姓名

我必须将“op. cit.”字符串之前的作者姓名转换为小写,就像第一个引文中一样。我使用\cite引文命令到目前为止,我尝试遵循相同的方法这个问题但没有成功。我不知道到底要注入什么,也不知道是否应该更改verbose-trad1.cbx文件

平均能量损失

\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[
backend=biber,
style=verbose-trad1,
natbib=true,
sorting=nty,
giveninits=true,
citetracker,
isbn=false,
opcittracker=context,
labeldateparts
]{biblatex}

\addbibresource{biblatex-examples.bib}

% To get small caps in author name and swap given and family 
\DeclareNameAlias{author}{given-family}
\DeclareNameFormat{given-family}{%
    \ifgiveninits
    {\usebibmacro{name:given-family}
        {\scshape\namepartfamily}
        {\namepartgiveni}
        {\namepartprefix}
        {\namepartsuffix}}
    {\usebibmacro{name:given-family}
        {\namepartfamily}
        {\namepartgiven}
        {\namepartprefix}
        {\namepartsuffix}}%
    \usebibmacro{name:andothers}}
 
\begin{document}

\usepackage{csquotes}

\usepackage[
backend=biber,
style=verbose-trad1,
natbib=true,
sorting=nty,
giveninits=true,
citetracker,
isbn=false,
opcittracker=context,
labeldateparts
]{biblatex}

\addbibresource{biblatex-examples.bib}

% To get small caps in author name and swap given and family 
\DeclareNameAlias{author}{given-family}
\DeclareNameFormat{given-family}{%
    \ifgiveninits
    {\usebibmacro{name:given-family}
        {\scshape\namepartfamily}
        {\namepartgiveni}
        {\namepartprefix}
        {\namepartsuffix}}
    {\usebibmacro{name:given-family}
        {\namepartfamily}
        {\namepartgiven}
        {\namepartprefix}
        {\namepartsuffix}}%
    \usebibmacro{name:andothers}}
 
\begin{document}

WHAT I GET: 
Lorem \autocite{sigfridsson}
dolor \autocite{knuth:ct:a}
ipsum \autocite{sigfridsson}
amet \autocite{knuth:ct:b}
ipsum \autocite{sigfridsson}

WHAT I WANT TO ACHIEVE: 
Lorem \autocite{sigfridsson}
dolor \autocite{knuth:ct:a}
ipsum \footnote{\textsc{Sigfridsson and Ryde}, op.cit.}
amet \autocite{knuth:ct:b}
ipsum \footnote{\textsc{Sigfridsson and Ryde}, op.cit.}

\printbibliography
\end{document}

脚注 3 和 5 是错误的。脚注 8 和 10 是期望的结果:

脚注 3 和 5 是错误的。脚注 8 和 10 是期望的结果

答案1

如果你想全部名字要有小写字母的姓氏,最简单的解决办法就是重新定义\mkbibnamefamily

\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[
  backend=biber,
  natbib=true,
  style=verbose-trad1,
  giveninits=true,
  isbn=false,
]{biblatex}

\renewcommand*{\mkbibnamefamily}{\textsc}

\addbibresource{biblatex-examples.bib}

\begin{document}
WHAT I GET: 
Lorem \autocite{sigfridsson}
dolor \autocite{knuth:ct:a}
ipsum \autocite{sigfridsson}
amet \autocite{knuth:ct:b}
ipsum \autocite{sigfridsson}

Dolor \autocite{pines}

\printbibliography
\end{document}

脚注中的名称采用小写字母。

如果您只希望与作品相关的“主要名称”(作者或编辑者)全部大写,那就稍微棘手一些。

\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[
  backend=biber,
  natbib=true,
  style=verbose-trad1,
  giveninits=true,
  isbn=false,
]{biblatex}

\DeclareNameWrapperFormat{sortname}{%
  \renewcommand*{\mkbibnamefamily}{\textsc}%
  #1}
\DeclareNameWrapperFormat{labelname}{%
  \renewcommand*{\mkbibnamefamily}{\textsc}%
  #1}

\addbibresource{biblatex-examples.bib}

\begin{document}
WHAT I GET: 
Lorem \autocite{sigfridsson}
dolor \autocite{knuth:ct:a}
ipsum \autocite{sigfridsson}
amet \autocite{knuth:ct:b}
ipsum \autocite{sigfridsson}

Dolor \autocite{pines}

\printbibliography
\end{document}

脚注中的名称采用小写字母。

解决方案之间的差异在条目(最后一个脚注)中可见pines。编辑(I. Twersky)不是此处的主要名称,因此两种方法的格式不同。

相关内容