我正在撰写论文,但在使用两行脚注引用时遇到了问题。
最小的工作示例是:
\documentclass[a4paper,11pt,oneside]{book}
\usepackage[hyperref=true,
url=false,
isbn=false,
doi=true,
backref=true,
style=custom-numeric-comp,
citereset=chapter,
maxcitenames=3,
maxbibnames=100,
backend=bibtex,
block=none]{biblatex}
\newlength{\spc} % declare a variable to save spacing value
\newcommand{\sjcitep}[2][]{% new command with two arguments: optional (#1) and mandatory (#2)
\settowidth{\spc}{#1}% set value of \spc variable to the width of #1 argument
\addtolength{\spc}{-1.8\spc}% subtract from \spc about two (1.8) of its values making its magnitude negative
#1% print the optional argument
\hspace*{\spc}% print an additional negative spacing stored in \spc after #1
\supershortnotecite{#2}}% print (cite) the mandatory argument
\addbibresource{testbib}
\begin{document}
\chapter*{Introduction}
Citation here \sjcitep{MPT3}
\end{document}
testbib.bib 文件是:
@inproceedings{MPT3,
author = {M. Herceg and M. Kvasnica and C.N. Jones and M. Morari},
title = {{Multi-Parametric Toolbox 3.0}},
booktitle = {Proceedings of the European Control Conference},
year = {2013},
address = {Z\"urich, Switzerland}
}
它还需要一些文件,可以在以下网址下载:http://www.khirevich.com/downloads/example_latex_bib_foot.rar
答案1
这可以通过命令轻松完成\deffootnote
(最初为 KOMA 类提供,但可以在典型的类中使用,例如book
通过加载scrextend
包)。
\begin{filecontents*}{testbib.bib}
@inproceedings{MPT3,
author = {M. Herceg and M. Kvasnica and C.N. Jones and M. Morari},
title = {{Multi-Parametric Toolbox 3.0}},
booktitle = {Proceedings of the European Control Conference},
year = {2013},
address = {Z\"urich, Switzerland}
}
\end{filecontents*}
\documentclass[a4paper,11pt,oneside]{book}
\usepackage{scrextend}
\usepackage[hyperref=true,
url=false,
isbn=false,
doi=true,
backref=true,
style=custom-numeric-comp,
citereset=chapter,
maxcitenames=3,
maxbibnames=100,
backend=bibtex,
block=none]{biblatex}
\newlength{\spc} % declare a variable to save spacing value
\newcommand{\sjcitep}[2][]{% new command with two arguments: optional (#1) and mandatory (#2)
\settowidth{\spc}{#1}% set value of \spc variable to the width of #1 argument
\addtolength{\spc}{-1.8\spc}% subtract from \spc about two (1.8) of its values making its magnitude negative
#1% print the optional argument
\hspace*{\spc}% print an additional negative spacing stored in \spc after #1
\supershortnotecite{#2}}% print (cite) the mandatory argument
\deffootnote[2em]{2em}{1em}{% <------------------
\textsuperscript{\thefootnotemark}\,}
\addbibresource{testbib}
\begin{document}
\chapter*{Introduction}
Citation here \sjcitep{MPT3}
\end{document}