# Making footmisc work with manyfoot or bigfoot

How is it possible to get the side option of footmisc to work with the manyfoot or bigfoot packages?

The following displays the footnotes in the bottom of the page. The footnotes show on the sides when bigfoot is not used.

\documentclass[twocolumn=true]{scrartcl}

\usepackage{lipsum}

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

\usepackage[side]{footmisc}

\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}


Edit:

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

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

\newcommand\sidefootnoteA[1]{%
\footnotemarkA

\newcommand\sidefootnoteB[1]{%
\footnotemarkB

\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}


It fixes does put the notes in the margin, and it does a good job with counter A, which is numeric, but counter B doesn't get decremented, so I end up with d for the last note.

Edit 2:

The problem comes from \MakeSortedPerPage{footnoteB}. Commenting it fixes the issue.

-
Thanks for fixing the typo @egreg. – ℝaphink Jul 29 '11 at 11:19

I don't think that you can do it. I would do something like this:

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

\newcommand\sidefootnote[1]{%
\footnotemark

\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}

-
That's a nice solution to re-implement the side option of footmisc, but it doesn't solve the multi footnote levels problem which bigfoot addresses. – ℝaphink Jul 29 '11 at 13:20
Also, the -1 trick works with numeric counters, but not with letters. – ℝaphink Jul 29 '11 at 13:36
I don't see how you want to place multi footnote levels in the margin. If you only want another numbering: define a \sidefootnoteB: \newcommand\sidefootnoteB[1]{\footnotemarkB{}\marginpar{\addtocounter{footnoteB‌​}{-1}\footnotemarkB{}\raggedright#1}} – Ulrike Fischer Jul 29 '11 at 13:38
footnote is a counter. You can always add -1 to a counter, regardless how you actually print the value. – Ulrike Fischer Jul 29 '11 at 13:39
Hm. Thinking about it I think the second \footnotemark and the \addtocounter is a bit hackish. Better use \textsuperscript{\thefootnoteB} – Ulrike Fischer Jul 29 '11 at 14:31