Biblatex 中脚注引用的改进

Biblatex 中脚注引用的改进

我正在使用的代码https://tex.stackexchange.com/a/275524/154017,请问应该如何进行修改。

  1. 有没有办法修改它,使引用显示为[1]而不是1
  2. 有没有办法将引用从上标转移as shown in^1到内标as shown in [1]
  3. 如何处理脚注?在当前代码中,它们再次按数字从 开始编入索引1,这与引用相冲突1。我应该使用符号吗?

答案1

您可以尝试以下解决方案https://tex.stackexchange.com/a/275524/154017bigfoot脚注处理。您可以将其\footnote用于带数字的普通脚注。\cite在脚注中也使用方括号生成引文。

\documentclass{report}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage{bigfoot}
\DeclareNewFootnote{A}
\usepackage[style=numeric, citetracker=true, pagetracker=true, sorting=none]{biblatex}
\usepackage[colorlinks]{hyperref}

\makeatletter
\AtEveryCitekey{%
  \ifcsundef{cbx@instcount@curr@\the\c@refsection @\thefield{entrykey}}
    {\csnumgdef{cbx@instcount@curr@\the\c@refsection @\thefield{entrykey}}{0}}
    {}%
  \csnumgdef{cbx@instcount@last@\the\c@refsection @\thefield{entrykey}}{%
    \csuse{cbx@instcount@curr@\the\c@refsection @\thefield{entrykey}}}%
  \csnumgdef{cbx@instcount@curr@\the\c@refsection @\thefield{entrykey}}{\value{instcount}}}

\def\iflastciteonsamepage{%
  \ifsamepage
    {\number\csuse{cbx@instcount@curr@\the\c@refsection @\thefield{entrykey}}}
    {\number\csuse{cbx@instcount@last@\the\c@refsection @\thefield{entrykey}}}}


\DeclareCiteCommand{\cite}[\mkbibbrackets]
  {\usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \usebibmacro{cite}%
   \iflastciteonsamepage
     {}
     {\def\@makefnmark{%
        \printtext[labelnumberwidth]{%
          \printfield{labelprefix}%
          \printfield{labelnumber}}%
        \setunit{\addspace}}%
      \footnotetextA{%
        \usedriver
          {\DeclareNameAlias{sortname}{default}}
          {\thefield{entrytype}}}}}
  {\multicitedelim}
  {\usebibmacro{postnote}}
\makeatother

\addbibresource{biblatex-examples.bib}

\begin{document}
\chapter{Title}
\null\vfill\noindent
First citation.\cite{bertram}
First\footnote{Lorem} citation.\cite{companion}
Some recurrent citations on\footnote {ipsum} same page.\cite{bertram,companion,augustine}
\chapter{Title}
\null\vfill\noindent
Recurrent citation on different page.\cite{companion}
Recurrent on different page and first citations.\cite{augustine,cicero}
Recurrent citation on same page.\cite{companion}
\printbibliography
\end{document}

在此处输入图片描述 在此处输入图片描述

相关内容