Change default footnote alignment in PDF chapters?

106 views
Skip to first unread message

Erin Kelly

unread,
Apr 18, 2018, 6:05:24 PM4/18/18
to sphinx-users
I am using footnotes to reference URLs in PDF documents for the first time, so I end up with many footnotes on some pages. 

On the last page of the chapter, the footnotes align nicely at the bottom of the page, before the footer. However, on other pages, the footnotes are placed right below the last line of text, even if there is a lot of space at the bottom of the page. That looks awkward. 

Can I specify the horizontal alignment of all footnotes? I want them to all be at the bottom of the page. 

(I am still working on the projects in this thread, which I started under a different account before my company was acquired and I switched logins: https://groups.google.com/d/topic/sphinx-users/e93WiwjrQLg/discussion )

Using "make latexpdf" to build, and on Sphinx 1.7.1. 

jfbu

unread,
Apr 18, 2018, 6:26:12 PM4/18/18
to sphinx...@googlegroups.com
Hi,

try adding

\usepackage[bottom]{footmisc}

to the preamble

(via 'preamble' key of latex_elements dict in conf.py)

(not really tested, only added to a Sphinx produced latex file to see if no compilation error resulted)

Jean-François

Erin Kelly

unread,
Apr 18, 2018, 6:57:27 PM4/18/18
to sphinx-users
Thanks - apparently I'm already calling {footmisc} with the option [] so this causes a conflict in my current configuration. I will look into that. I'm not explicitly using {footmisc} elsewhere in my conf.py - but I am using {fancyfoot} which might be related. (I had some LaTeX experts help with formatting in the past.) 

jfbu

unread,
Apr 19, 2018, 2:29:09 AM4/19/18
to sphinx...@googlegroups.com
Le 19/04/2018 à 00:55, Erin Kelly a écrit :
> Thanks - apparently I'm already calling {footmisc} with the option [] so this causes a conflict in my current configuration. I will look into that. I'm not explicitly using {footmisc} elsewhere in my conf.py - but I am using {fancyfoot} which might be related. (I had some LaTeX experts help with formatting in the past.)
>
> --

0. I don't know about a fancyfoot package, it is not on CTAN

$ find . -name '*foot.sty'
./bigfoot/bigfoot.sty
./fixfoot/fixfoot.sty
./ledmac/afoot.sty
./ncctools/manyfoot.sty
./oberdiek/pdfcolfoot.sty
./titlefoot/titlefoot.sty

(there is also /arabtex/afoot.sty in my TeXLive 2015 which is a full install,
nowadays to spare disk space, I don't install full TeXLive)

1. you can try 'passoptionstopackages': r'\PassOptionsToPackage{bottom}{footmisc}',
if footmisc is indirectly loaded by some other package added to preamble

(in latex_elements)

2. The problem with LaTeX placement of footnotes at fixed distance under text
shows because sphinx.sty issues \raggedbottom

You can try adding \flushbottom to reset LaTeX's default which is to
allow vertical space stretch on pages. Then LaTeX attempts to get text to
end at same position, except on final chapter pages, thus this indirectly
sets footnotes more likely at fixed position respective to bottom
of phyisical page.

Jean-François

Reply all
Reply to author
Forward
0 new messages