![Biblatex 中脚注引用的改进](https://linux22.com/image/369793/Biblatex%20%E4%B8%AD%E8%84%9A%E6%B3%A8%E5%BC%95%E7%94%A8%E7%9A%84%E6%94%B9%E8%BF%9B.png)
我正在使用的代码https://tex.stackexchange.com/a/275524/154017,请问应该如何进行修改。
- 有没有办法修改它,使引用显示为
[1]
而不是1
? - 有没有办法将引用从上标转移
as shown in^1
到内标as shown in [1]
? - 如何处理脚注?在当前代码中,它们再次按数字从 开始编入索引
1
,这与引用相冲突1
。我应该使用符号吗?
答案1
您可以尝试以下解决方案https://tex.stackexchange.com/a/275524/154017和bigfoot
脚注处理。您可以将其\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}