我需要更改 biblatex cite 和 footcite 命令,以便它打印姓氏、简称和期刊标题。 姓氏和简称开箱即用,但对于期刊标题,我认为必须更改 cite 和/或 footcite 命令。 以下是我所取得的进展:
\documentclass{article}
\usepackage[
style=authortitle-dw,
journalnumber=date,
idembibformat=dash,
sorting=nyt,
maxcitenames=1,
maxbibnames=2,
url=false,
doi=false
]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
Angenendt~\footcite{angenendt} has a shorttitle.
And Augustine \footcite{augustine} also has a shorttitle.
Kullback~\footcite{kullback} is a book.
Bertram~\footcite{bertram} also has a short title, only two words long.
Doody~\footcite{doody} does not have a shorttile.
Kullback~\footcite{kullback} is a book.
Sometimes citatations are in footnotes.\footnote{so i can have more text and so on like \cite{bertram}}
\printbibliography
\end{document}
答案1
相关的宏是cite:title
。我们添加块
\ifentrytype{article}
{\setunit{\addcomma\space}%
\usebibmacro{in:}%
\printfield{journaltitle}}
{}%
打印journaltitle
条目@article
。
\documentclass{article}
\usepackage[
style=authortitle-dw,
journalnumber=date,
idembibformat=dash,
sorting=nyt,
maxcitenames=1,
maxbibnames=2,
url=false,
doi=false
]{biblatex}
\makeatletter
\renewbibmacro*{cite:title}{%
\ifsingletitle
{\setunit{}}% Löschen des \nametitledelim, falls kein Titel ausgegeben wird
{\ifboolexpr{
test {\ifentrytype{review}}
and
not test {\iffieldundef{xref}}
}
{\printtext[review]{\bbx@review{\thefield{xref}}}}
{\printtext[bibhyperref]{%
\printfield[citetitle]{labeltitle}}}%
\ifentrytype{article}
{\setunit{\addcomma\space}%
\usebibmacro{in:}%
\printfield{journaltitle}}
{}%
\ifbool{cbx:addyear}
{\iffieldundef{year}
{}
{\titleyeardelim%
\parentext{\printfield{year}}}}
{}}}
\makeatother
\addbibresource{biblatex-examples.bib}
\begin{document}
Angenendt~\footcite{angenendt} has a shorttitle.
And Augustine \footcite{augustine} also has a shorttitle.
Kullback~\footcite{kullback} is a book.
Bertram~\footcite{bertram} also has a short title, only two words long.
Doody~\footcite{doody} does not have a shorttile.
Kullback~\footcite{kullback} is a book.
Sometimes citatations are in footnotes.\footnote{so i can have more text and so on like \cite{bertram}}
\printbibliography
\end{document}