第一次使用 verbose-trad1 時如何使用簡寫

第一次使用 verbose-trad1 時如何使用簡寫

我正在使用biblatex、 Biber 和style=verbose-trad1作為我的 LaTeX 文件。但是,我希望在使用速記時不要第一次打印完整的標題,而是讓速記縮寫也第一次出現在腳註中。

這已經解決了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}

在此輸入影像描述

相關內容