Page LayoutSpacing between Footnote and Footnote Rule

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Spacing between Footnote and Footnote Rule

Post by Cham »

I'm having a spacement glitch with a footnote horizontal line. See the pictures below. By default, all my footnotes are placed at the bottom of their page.

How can I tell LaTeX to draw the line exactly the same way for all the footnotes ?

Here's the problematic footnote. The horizontal line has a huge space above the footnote text:
footnote1.jpg
footnote1.jpg (27.16 KiB) Viewed 8542 times
Here's how the footnotes should look like:
footnote2.jpg
footnote2.jpg (29.06 KiB) Viewed 8542 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Spacing between Footnote and Footnote Rule

Post by cgnieder »

Can you please show us a Infominimal working example? There are quite a lot packages (and classes) that influence footnotes that else an answer would be a shot in the dark.

Regards
site moderator & package author
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Spacing between Footnote and Footnote Rule

Post by Cham »

Ok, here's a working example. But take note that I can't reproduce my spacement issue with a small working example like this. It's a very rare issue (actually, I think it's the first time I got this one and yet I have dozens of footnotes in my document).

I need to tell LaTeX to draw the footnote horizontal line at exactly the same height over the footnote text, like the one from this example :

Code: Select all

\documentclass[12pt,letterpaper,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{textcomp}
\usepackage{setspace}
\setstretch{1.1}
\raggedbottom
\usepackage[bottom]{footmisc}
\usepackage{anysize}
\marginsize{1.5in}{1in}{0.5in}{0.5in}

\begin{document}

Bla bla bla bla\footnote{Bla bla bla bla}.  Bla blaaaa !

\end{document}
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Spacing between Footnote and Footnote Rule

Post by cgnieder »

Cham wrote:But take note that I can't reproduce my spacement issue with a small working example like this.
Then you could make it bigger. The “minimal” in MWE means “as long as is needed to reproduce the error/unwanted behavior”

Regards
site moderator & package author
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Re: Spacing between Footnote and Footnote Rule

Post by Cham »

I tried to reproduce the issue. I'm yet unable. The issue is unique to a page, and whatever what I do on it, the problem stay the same. I don't have the problem on any other footnote.

My LaTeX document is very big. It's a whole book.

So is there a preamble command to constraint the footnote line ?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Spacing between Footnote and Footnote Rule

Post by Stefan Kottwitz »

You could "hack down" a copy of the document: reduce the code step by step, compile each step and test. Either you fixed it by such a step and located the error here, or you end with a short document which still contains the error, which we could check.

Stefan
LaTeX.org admin
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Spacing between Footnote and Footnote Rule

Post by Cham »

Okay, here's the "minimal" example I was able to define to reproduce the problem. The code is a bit long, but as soon as I reduce it in some way (replacing the equations by some text, for example), the issue simply disappear !

The issue is located at the bottom of the last page (there are two pages in this example) : The footnote horizontal line doesn't have the same spacing as the footnote on the first page. What is wrong here ?

Code: Select all

\documentclass[12pt,letterpaper,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage{setspace}
\setstretch{1.1}
\usepackage{pdfpages} % include color directives.  Also needed for the title page
\usepackage{anysize}
\marginsize{1.5in}{1in}{0.5in}{0.5in}
\usepackage{titlesec}

\usepackage{empheq} % to put a frame around an equation
\newenvironment{important}[2][]{
	\setkeys{EmphEqEnv}{#2}
	\setkeys{EmphEqOpt}{box={\setlength{\fboxsep}{10pt}\fcolorbox{gray}{gray}},#1}
	\EmphEqMainEnv}
{\endEmphEqMainEnv}

\begin{document}
\section{Bla bla}
Bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blabla bla blabla bla blabla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla\footnote{Bla bla bla.} bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blabla bla blabla bla blabla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blabla bla blabla bla blabla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blabla bla blabla bla blabla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla babla bla blabla bla bla bla bla bla blaa bla bla bla bla bla bla bla blabla bla blabla bla blabla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blbla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blas
	\begin{align*}
		A = B &= C \\ \\
		&= D.
	\end{align*}
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blabla bla blabla bla blabla bla bla bla bla bla bla bla bla bla :
	\begin{important}{equation}
		A = B,
	\end{important}
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla\footnote{bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blabla bla blabla bla blabla bla bla bla bla bla bla bla bla bla :
	\begin{equation*}
		A = B.
	\end{equation*}
}, bla bla bla bla.

Bla bla bla\footnote{Bla bla bla.}.
\end{document}
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Spacing between Footnote and Footnote Rule

Post by cgnieder »

I have a solution that fixes the MWE: include the bigfoot package. However, this might not be compatible with \usepackage[bottom]{footmisc} (from your first example), although »bigfoot« might take care of the cases itself where »footmisc«'s bottom option is useful. Another however: »bigfoot« is incompatible with hyperref's hyperfootnotes and turns them off.

Regards
site moderator & package author
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Spacing between Footnote and Footnote Rule

Post by Cham »

Thanks, is solves the issue,

but I'm using hyperref alot with url links in footnotes. I haven't tested your solution to my whole book yet, and I'm afraid it would give a lot of troubles.

And what is the parameter to place all the footnotes at the bottom of the page ? The documentation isn't clear about that.
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Re: Spacing between Footnote and Footnote Rule

Post by Cham »

Double post deleted...
Last edited by Cham on Thu Oct 11, 2012 2:08 am, edited 1 time in total.
Post Reply