使 footmisc 与 manyfoot 或 bigfoot 协同工作

使 footmisc 与 manyfoot 或 bigfoot 协同工作

如何才能获得使用或包side的选项?footmiscmanyfootbigfoot

以下显示页面底部的脚注。bigfoot不使用时,脚注显示在侧面。

\documentclass[twocolumn=true]{scrartcl}

\usepackage{lipsum}

\usepackage{bigfoot}
\DeclareNewFootnote{default}
\DeclareNewFootnote{B}[alph]
\MakeSortedPerPage{footnoteB}

\usepackage[side]{footmisc}

\setlength{\marginparwidth}{2cm}% adjust to your document's needs

\begin{document}

Hello\footnote{This is some text in the margin that should break and everything.}
World\footnoteB{And some more text that should go to the margin as well and behave like
the other footnote.}.

\lipsum[1-3]

Hello\footnote{This is some text in the margin that should break and everything.}
World\footnoteB{And some more text that should go to the margin as well and behave like
the other footnote.}.

\lipsum[4-6]

\end{document}

编辑:

以下是我改编 Ulrike 的回答:

\documentclass[twocolumn=true]{scrartcl}
\usepackage{lipsum}

\usepackage{bigfoot}
\DeclareNewFootnote{A}[arabic]
\DeclareNewFootnote{B}[alph]
\MakeSortedPerPage{footnoteB}

\newcommand\sidefootnoteA[1]{%
   \footnotemarkA
   \marginpar{\footnotesize\addtocounter{footnoteA}{-1}\footnotemarkA\raggedright#1}}

\newcommand\sidefootnoteB[1]{%
   \footnotemarkB
   \marginpar{\footnotesize\addtocounter{footnoteB}{-1}\footnotemarkB\raggedright#1}}

\begin{document}

Hello\sidefootnoteA{This is some text in the margin that should break and everything.}
World\sidefootnoteB{And some more text that should go to the margin as well and behave like
the other footnote.}.

\lipsum[1-3]

Hello\sidefootnoteA{This is some text in the margin that should break and everything.}
World\sidefootnoteB{And some more text that should go to the margin as well and behave like
the other footnote.}.

\lipsum[4-6]

\end{document}

它确实将注释放在了边缘,并且它很好地处理了计数器 A(它是数字),但是计数器 B 并没有减少,所以我最终得到了d最后一个注释。

编辑2

问题来自\MakeSortedPerPage{footnoteB}。评论它可解决问题。

答案1

我不认为你能做到。我会做这样的事情:

\documentclass[twocolumn=true]{scrartcl}
\usepackage{lipsum}

\newcommand\sidefootnote[1]{%
   \footnotemark
   \marginpar{\addtocounter{footnote}{-1}\footnotemark\raggedright#1}}

\begin{document}

Hello\sidefootnote{This is some text in the margin that should break and everything.}
World\sidefootnote{And some more text that should go to the margin as well and behave like
the other footnote.}.

\lipsum[1-3]
\end{document}

相关内容