8

How to change space between main text and footnote, so text goes with the line of footnote

Bonnie
  • 379

1 Answers1

30

You have to modify the \skip\footins length. You can use addtolength to add a rubber length or setlength to set one.

A couple of examples:

\documentclass{article}
\addtolength{\skip\footins}{2pc plus 5pt}
\usepackage{lipsum}
\begin{document}
a\footnote{test}
\lipsum
\end{document}

enter image description here

\documentclass{article}
\setlength{\skip\footins}{1.2pc plus 5pt minus 2pt}
\usepackage{lipsum}
\begin{document}
a\footnote{test}
\lipsum
\end{document}

enter image description here

\documentclass{article}
\setlength{\skip\footins}{6pt}
\usepackage{lipsum}
\begin{document}
a\footnote{test} b\footnote{test2}
\lipsum
\end{document}

enter image description here

Just for reference, here is the normal case:

\documentclass{article}
\usepackage{lipsum}
\begin{document}
a\footnote{test}
\lipsum
\end{document}

enter image description here


There are other lengths involved in the footnotes styling/creation. E.g. you could also change the footnotesep length (which is a rigid and not rubber length), and this will change the amount of space placed at the beginning of each footnote. This will change also the distance between the first footnote and the text/footnote rule:

\documentclass{article}
\setlength{\footnotesep}{2pc}
\usepackage{lipsum}
\begin{document}
a\footnote{test} b\footnote{test2}
\lipsum
\end{document}

enter image description here

Moriambar
  • 11,466
  • May I suggest that you elaborate on the fact that it is \skip\footins and not \footnoteSEP (if you understand what I mean)? – GuM May 22 '17 at 18:47
  • @GustavoMezzetti yep – Moriambar May 22 '17 at 18:47
  • In particular, in order to get what the OP asks for, you should say something along the lines of \begingroup \footnotesize \global \skip\footins = \baselineskip \endgroup (beware: I did not test this!). – GuM May 22 '17 at 18:51
  • @GustavoMezzetti you lost me. I think you'd better create that kind of answer since I don't understand it, thus I wouldn't be able to be properly credited and possibly correct it if necessary. But thanks – Moriambar May 22 '17 at 18:57
  • @moriambar but my text ends somewhere under the center of page, and I can't move footnote under that text.. i tried your codes but it still stays at the bottom of page – Bonnie May 22 '17 at 19:04
  • 2
    @Bonnie: You didn’t make that explicit in your question: I suggest that you edit it. Anyway, I’m afraid that is much harder to achieve, since it entails modifying LaTeX’s output routine; I don’t remember, off the top of my head, if there are any packages that provide what you are asking for. – GuM May 22 '17 at 19:16
  • @Moriambar: as you see, it turned out that I misunderstood the OP’s request. – GuM May 22 '17 at 19:17
  • @moriambar I added a photo if u can understand now what I meant – Bonnie May 22 '17 at 20:13
  • What is meant by rubber length? – Viesturs Nov 17 '18 at 14:23
  • 1
    @Viesturs a rubber length is one that can be increased or decreased by LaTeX within certain limits, in order to fit more items onto a page or to avoid large white spaces. – Liam Baker Dec 03 '19 at 19:10