我有一个 KOMA 图书课程,我希望能够使用 footcite。我的代码如下所示
\documentclass{scrbook}
\usepackage[backend=biber,natbib=true,style=ieee]{biblatex}
\usepackage[colorlinks=true, allcolors=blue]{hyperref}
\addbibresource{sample.bib}
\begin{document}
\chapter{Chap 1}
Some text\cite{greenwade93}.
\printbibliography
\end{document}
这会在书的末尾生成一个引用。但如果我用一个替换,\cite
就会\footcite
出现一些不理想的行为。
我希望脚注的编号与文档末尾的参考书目中的编号相同。我还希望脚注与脚注引用无关。如果我先添加脚注,然后添加引用,则脚注不应采用引用所采用的值。
Some note\footnote{This is a note} followed by a referenced
text\footcite{greenwade93}.
应该返回类似这样的内容
1:这是一张便笺
[1]:Greenwade 1993
我怎么做?
答案1
使用biblatex
与manyfoot
包更接近底部引用:
参考文献按引用顺序打印,但按照书目的按姓氏字母顺序编号。
平均能量损失
\documentclass{article}
\usepackage[ruled]{manyfoot}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}
\setlength{\textheight}{5in} % just to make a smaller picture
% Define a citation command based on \supercite
% but without superscripting
% because the footnoter command will take care of that;
% and put the bib labelnumber in []:
\DeclareCiteCommand{\superciten}%[\mkbibsuperscript]
{\iffieldundef{prenote}
{}
{\BibliographyWarning{Ignoring prenote argument}}%
\iffieldundef{postnote}
{}
{\BibliographyWarning{Ignoring postnote argument}}}
{%
\usebibmacro{citeindex}%
\mkbibbrackets{\usebibmacro{cite}}%
}
{\supercitedelim}
{}
% Define a new foot layer called c,
% so that command \Footnotetextc becomes available:
\newfootnote{c}
% For convenience, put footnotemark/footnotetext commands
% in a wrapper macro:
\newcommand{\bottomcite}[1]{%
\Footnotemark{\superciten{#1}}\Footnotetextc{}{\fullcite{#1}}}
\begin{document}
text\footnote{A footnote.}
text\Footnotemark{m}\Footnotetextc{}{c note text}
text\footnote{Another footnote.}
xmtest\bottomcite{worman}
xotest\Footnotemark{\superciten{nussbaum}}\Footnotetextc{}{\fullcite{nussbaum}}
xntest\bottomcite{sigfridsson}
%x \autocite{aksin}
\printbibliography
\end{document}
编辑添加
温哥华风格biblatex
按引用顺序对参考文献进行编号:
平均能量损失
\documentclass{article}
\usepackage[ruled]{manyfoot}
\usepackage[style=vancouver]{biblatex}
\addbibresource{biblatex-examples.bib}
\setlength{\textheight}{5in} % just to make a smaller picture
% Define a citation command based on \supercite
% but without superscripting
% because the footnoter command will take care of that;
% and put the bib labelnumber in []:
\DeclareCiteCommand{\superciten}%[\mkbibsuperscript]
{\iffieldundef{prenote}
{}
{\BibliographyWarning{Ignoring prenote argument}}%
\iffieldundef{postnote}
{}
{\BibliographyWarning{Ignoring postnote argument}}}
{%
\usebibmacro{citeindex}%
\mkbibbrackets{\usebibmacro{cite}}%
}
{\supercitedelim}
{}
% Define a new foot layer called c,
% so that command \Footnotetextc becomes available:
\newfootnote{c}
% For convenience, put footnotemark/footnotetext commands
% in a wrapper macro:
\newcommand{\bottomcite}[1]{%
\Footnotemark{\superciten{#1}}\Footnotetextc{}{\fullcite{#1}}}
\begin{document}
text\footnote{A footnote.}
text\Footnotemark{m}\Footnotetextc{}{c note text}
text\footnote{Another footnote.}
xmtest\bottomcite{worman}
xotest\Footnotemark{\superciten{nussbaum}}\Footnotetextc{}{\fullcite{nussbaum}}
xntest\bottomcite{sigfridsson}
%x \autocite{aksin}
\printbibliography
\end{document}
答案2
可视化:
不值得推荐。
不同类型的信息不应该混合在一起。(例如,为什么首先使用脚注?将脚注文本放在正文的内联中,以便查看。)
\textbf{\textsuperscript{\parencite{#1}}}
另外:在文本中仅使用上标括号部分可以避免在页面底部重复相同的信息。
等等....
需要更多的设计思考。
平均能量损失
\documentclass{article}
\usepackage[paperheight=4in]{geometry}%for one screen image
%from kaobiblio.sty:
\usepackage[
%style=numeric-comp,
%citestyle=authortitle-icomp,
citestyle=numeric-comp,
%bibstyle=authoryear,
bibstyle=numeric,
sorting=none,
%sorting=nyt,
%sortcites=true,
%autocite=footnote,
backend=biber, % Compile the bibliography with biber
hyperref=true,
backref=true,
citecounter=true,
pagetracker=true,
citetracker=true,
ibidtracker=context,
autopunct=true,
autocite=plain,
]{biblatex}
%\usepackage{hyperref}
%
\addbibresource{biblatex-examples.bib}
\newcommand{\myfnmarktext}[2]{%
\textbf{\textsuperscript{\parencite{#1}}}%
{%
\renewcommand{\thefootnote}{\relax}%
\footnotetext%
{%
\kern-1ex{\textbf{\textsuperscript{\parencite{#1}}}}
\citeauthor*{#1}
(\citeyear{#1}),
\citetitle{#1}. #2%
}%
}%
}
\begin{document}
\begin{verbatim}
\parencite{#1}: \citeauthor*{#1} (\citeyear{#1}), \citetitle{#1}%
\end{verbatim}
Some text\footnote{A footnote.} and some more text\myfnmarktext{aristotle:rhetoric}{This, obviously, is a reference.}
and more text\footnote{Another footnote, but not citing \parencite{aristotle:rhetoric}.}. And the famous philosopher
again,\myfnmarktext{aristotle:rhetoric}{This, obviously, is a reference too.}
and another normal footnote\footnote{The next footnote.}.
\printbibliography
\end{document}
编辑添加:
kaobook
class 使用边注(用于脚注和参考书目)实际上使其成为双列布局:
从教科书
来自kaobook
的文档:请注意重复的 bib 引用: