如何使 \citetitle 命令也包含副标题?

如何使 \citetitle 命令也包含副标题?

我正在使用该biblatex-apa软件包,但是subtitle当我觉得需要时我在许多参考文献中使用该字段,因此我遇到了一个问题:如果我在文档中引用该作品的标题,则不会出现副标题。

所以我的问题是:有没有办法让命令\citetitle也添加字幕信息,或者如果失败了,是否可以\citesubtitle创建一个引用字幕的新命令,以便我可以执行类似的操作\citetitle{ref}~\citesubtitle{ref}

V. Gr.

@Book{plant_zeros_1997,
  author    = {Plant, Sadie},
  date      = {1997-09-01},
  isbn      = {978-0385482608},
  langid    = {english},
  pagetotal = {305},
  publisher = {Fourth Estate London},
  subtitle  = {Digital women+ the new technoculture},
  title     = {Zeros + ones:},
  year      = {1997},
}

@Book{cox_speaking_2012,
  author    = {Cox, Geoff and McLean, Alex},
  date      = {2012-11-09},
  foreword  = {Berardi, Franco \enquote{Bifo}},
  isbn      = {9780262018364},
  langid    = {english},
  pagetotal = {168},
  subtitle  = {Coding as Aesthetic and Political Expression},
  title     = {Speaking Code:},
  url       = {https://mitpress.mit.edu/9780262018364/speaking-code/},
}

答案1

您必须修改cite:noname宏,例如:

\renewbibmacro*{cite:noname}{%
  \iffieldundef{labeltitle}
    {\ifthenelse{\ifentrytype{legmaterial}\OR%
                 \ifentrytype{legadminmaterial}}
      {\let\blx@tempa\bibcplstring% \textcite default
       \let\blx@tempb\bibcplstring% \textcite default
       \iftoggle{apa:inpcite}
         {\iffieldequalstr{type}{execorder}{\let\blx@tempb\bibcpsstring}{}%
          \iffieldequalstr{type}{resolution}{\let\blx@tempa\bibcpsstring}{}%
          \iffieldequalstr{type}{report}{\let\blx@tempa\bibcpsstring\let\blx@tempb\bibcpsstring}{}}
         {}%
       \iffieldundef{source}{}{\blx@tempa{\thefield{source}}}%
       \setunit{\addspace}%
       \iffieldundef{type}{}{\blx@tempb{\thefield{type}}}%
       \setunit{\addspace}%
       \printfield[legmaterialnum]{number}}
      {\ifentrytype{constitution}{\usebibmacro{cite:noname:const}}{}}}
    {\printfield[citetitle]{labeltitle}\addcolon\printfield[citetitle]{subtitle}}}

相关内容