# Footnote problem using paracol package

Look at this simple code:

\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[german]{babel}
\usepackage{paracol}

\begin{document}

Hello world!\footnote{A simple footnote.}

\columnratio{0.1}
\begin{paracol}{2}
D1.1
\switchcolumn
This is a simple definition.
\end{paracol}

This is a simple sentence.\footnote{Another simple footnote!}

\end{document}


It's producing a totally weird output. (Sorry, I'm not allowed to upload an image.)

Why is the first footnote showing up right above the paracol environment? What am I doing wrong?

-
Welcome to TeX.sx! As new user without image posting privileges simply include the image as normal and remove the ! in front of it to turn it into a link. A moderator or another user with edit privileges can then reinsert the ! to turn it into an image again. –  Torbjørn T. Feb 6 '13 at 19:28
I get an undefined command error for \columnratio{0.1} if I remove that line the footnote comes first as you say. it looks like paracol finishes the page, including footnotes, then restarts in its two column mode, so I suspect this is as designed. –  David Carlisle Feb 6 '13 at 21:19
@DavidCarlisle : the error with \columnratio is probably due to an old version of paracol where this command was not defined. Make sure you have at least version 1.1 (May 2012) or later. It is included in TeXLive 2012, but TeXLive 2011 has only version 1.0. –  ogerard Jun 6 '13 at 14:55

paracols ends the current page so places footnotes before starting its multicolumn layout.

If you don't want that you can redefine things so it just stores the footnote away and then you can retrieve it after the environment or anywhere else suitable.

\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[german]{babel}
\usepackage{paracol}

\setlength\textheight{.3\textheight}

\makeatletter
\newbox\mybox
\def\pcol@makenormalcol{%
\ifvoid\footins
\else
\global\setbox\mybox\box\footins
\fi
\setbox\@outputbox\box\@holdpg
\let\@elt\relax
\xdef\@freelist{\@freelist\@midlist}%
\global\let\@midlist\@empty
\@combinefloats}

\makeatother

\begin{document}

Hello world!\footnote{A simple footnote.}

%\columnratio{0.1}% this generates an error
\begin{paracol}{2}
D1.1
\switchcolumn
This is a simple definition.
\end{paracol}
\ifvoid\mybox\else\insert\footins{\unvbox\mybox}\fi

This is a simple sentence.\footnote{Another simple footnote!}

\end{document}

-