
私はLaTeX 文書にbiblatex
、、Biber、およびを使用しstyle=verbose-trad1
ています。ただし、省略形を使用するときに最初に完全なタイトルを印刷するのではなく、省略形の略語が最初に脚注にも表示されるようにしたいと考えています。
これは解決されましたverbose
ここ既に機能していますが、スタイルを に変更すると機能しなくなりますverbose-trad1
。
だから私はこう言いたいのです
韓国
の代わりに
カント 1968 (以下 KpV と表記)
初めて登場したとき。
これを解決する方法を何か知っていますか?
\documentclass{article}
\usepackage[style=verbose-trad1]{biblatex}
% Original definition
% \newbibmacro*{cite}{%
% \usebibmacro{cite:citepages}%
% \ifciteseen
% {\iffieldundef{shorthand}
% {\usebibmacro{cite:short}}
% {\usebibmacro{cite:shorthand}}}
% {\usebibmacro{cite:full}}}
\renewbibmacro*{cite}{%
\usebibmacro{cite:citepages}%
\iffieldundef{shorthand}
{\ifciteseen
{\usebibmacro{cite:short}}
{\usebibmacro{cite:full}}}
{\usebibmacro{cite:shorthand}}}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@misc{Kan68,
shorthand = {KpV},
author = {Kant, Immanuel},
year = {1968},
title = {Kritik der praktischen Vernunft},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\null\vfill% just for the example
Some text.\autocite{Kan68}
Some text.\autocite{Kan68}
Some text.\autocite{A01}
Some text.\autocite{A01}
\printshorthands
\printbibliography
\end{document}
答え1
この再定義を試してみるといい
\renewbibmacro*{cite}{%
\usebibmacro{cite:citepages}%
\global\togglefalse{cbx:loccit}%
\bibhypertarget{cite\the\value{instcount}}{%
\iffieldundef{shorthand}
{\ifciteseen
{\ifciteibid
{\usebibmacro{cite:ibid}}
{\ifthenelse{\ifciteidem\AND\NOT\boolean{cbx:noidem}}
{\usebibmacro{cite:idem}%
\usebibmacro{cite:title}}
{\ifnameundef{labelname}
{\usebibmacro{cite:title}}
{\usebibmacro{cite:name}%
\ifopcit
{\ifloccit
{\usebibmacro{cite:loccit}}
{\usebibmacro{cite:opcit}}}
{\usebibmacro{cite:title}}}}}%
\usebibmacro{cite:save}}
{\usebibmacro{cite:full}%
\usebibmacro{cite:save}}}
{\usebibmacro{cite:shorthand}}}}
shorthand
ここでは、常に最初に速記法を使用します (完全な引用ではありません)。実質的に、とのチェックの順序を交換します\ifciteseen
。
ムウェ
\documentclass{article}
\usepackage[style=verbose-trad1]{biblatex}
\renewbibmacro*{cite}{%
\usebibmacro{cite:citepages}%
\global\togglefalse{cbx:loccit}%
\bibhypertarget{cite\the\value{instcount}}{%
\iffieldundef{shorthand}
{\ifciteseen
{\ifciteibid
{\usebibmacro{cite:ibid}}
{\ifthenelse{\ifciteidem\AND\NOT\boolean{cbx:noidem}}
{\usebibmacro{cite:idem}%
\usebibmacro{cite:title}}
{\ifnameundef{labelname}
{\usebibmacro{cite:title}}
{\usebibmacro{cite:name}%
\ifopcit
{\ifloccit
{\usebibmacro{cite:loccit}}
{\usebibmacro{cite:opcit}}}
{\usebibmacro{cite:title}}}}}%
\usebibmacro{cite:save}}
{\usebibmacro{cite:full}%
\usebibmacro{cite:save}}}
{\usebibmacro{cite:shorthand}}}}
\addbibresource{biblatex-examples.bib}
\begin{document}
Some text.\autocite{kant:kpv}
Some text.\autocite{kant:kpv}
Some text.\autocite{worman}
Some text.\autocite{worman}
\printshorthands
\printbibliography
\end{document}