Forum Feature requests

Warning when footnote marker and footnote not on same page

In some cases it may happen that a footnote marker and the actual footnote don't appear on the same page. It would be nice if Prince reported this in the log or in the verbose output, e.g. something like

Warning: footnote "number" moved to next page.

A test document illustration the case when a footnote marker and the footnote text are on different pages can be found below.

Best regards,

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="">
		<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
		<style type="text/css">
			@page {
			  size: 12cm;
			  margin: 1cm 1.5cm;

			* {
				font-family: monospace;
				font-size: .5cm;
				line-height: 1cm;

			.footnote {
			  font-style: normal;
			  float: footnote;

			.footnote::footnote-call {
			  content: counter(footnote);
			  vertical-align: super;

			.footnote::footnote-marker {
			  content: counter(footnote) ".";
			  padding-right: .25em;

			/* Highlight the second footnote */
			.footnote ~ .footnote::footnote-call,
			.footnote ~ .footnote::footnote-marker {
				background: #f77;

			Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore.<span class="footnote">The first footnote.</span>
			Lorem ipsum dolor sit amet, consectetur adipisicing elit.<span class="footnote">The second footnote.</span>
That's a good idea.
We have now release Prince 9, which emits a warning when a footnote does not fit on the same page as the footnote call. There is also a new property which can move footnote calls to the next page in this situation:
prince-footnote-policy: auto | keep-with-line | keep-with-block