I am using pdflatex and just want to know how to change the footnote line (thickness, length).
Besides that: How can I set the distance between text-lines in the text.
I am using pdflatex and just want to know how to change the footnote line (thickness, length).
Besides that: How can I set the distance between text-lines in the text.
The footnote rule should take no space on the page. That's the purpose of
\kern -3pt
\hrule width 2in
\kern 2.6pt
First of all TeX backs up vertically by 3pt, then prints the rule (which is by default 0.4pt thick) and then skips by 2.6pt: the total is zero.
So a correct redefinition would be
\renewcommand{\footnoterule}{%
\kern -3pt
\hrule width \textwidth height 1pt
\kern 2pt
}
Instead of \textwidth one can also put an explicit dimension. The rule height added to the positive kern after the rule should give the negative of the back up amount preceding the rule.
One should note that the amount of skipping down gives the separation between the rule and the footnote text. With this definition the rule will be at 2pt + height of strut from the baseline of the footnote's first line. Before the rule there's a vertical skip measured by \skip\footins, whose default value is 9pt plus 4pt minus 2pt. With the 3pt back up, the space between the text and the footnote rule will be at least 4pt and at most 10pt.
Jan Tschichold frowned upon footnote rules: he said that there should be none at all or it must occupy the entire text width.
\kern. Is there any special reason to use -3pt in LaTeX2e source? Why not \hrule width 2in\kern-0.4pt?
– Leo Liu
Jun 29 '11 at 15:36
\renewcommand{\footnoterule}{% \kern -3pt \hrule width \footnoterulewidth height \footnoteruleheight \kern \dimexpr 3pt - \footnoteruleheight \relax } `
– Martin Scharrer Jun 29 '11 at 15:57memoir or KOMA-script. I think for beginners it is better not to change the definition, unless to remove the rule.
– Leo Liu
Jun 29 '11 at 16:05
\setfootrule. It can have the option none for suppressing the rule maybe hooking to footmisc.
– egreg
Jun 29 '11 at 18:02
You can redefine \footnoterule to do what you want. For instance, here's a really ugly footnote rule:
\renewcommand\footnoterule{\rule{\linewidth}{5pt}}
The first command of the \rule command is how long it is, the second how thick.
Given that the footnote rule should not actually take up any space on the page, egreg's answer should be preferred to this one.
\textwidth would be more correct here than \linewidth. But isn't the footnote rule not anyway shorter than that? (I hardly use footnotes)
– Martin Scharrer
Jun 29 '11 at 15:42
\textwidth over \linewidth but then, see my first point...
– Seamus
Jun 29 '11 at 18:22
\textwidth, not the height/thickness. The normal length (or width) is .4\columnwidth which is like .4\textwidth.
– Martin Scharrer
Jun 29 '11 at 18:25
The equivalence of the original definition is:
\newcommand\footnoterule{\kern-3pt \hrule width 2in \kern 2.6pt}
You can redefine \footnoterule to control it. For example:
\renewcommand\footnoterule{{\color{blue}\hrule height 2pt}} % a long blue line
source2e.pdf, page 301 for the A4 version.
– egreg
Jun 29 '11 at 15:34
\rule starts a paragraph, which is not wanted here.
– egreg
Jun 29 '11 at 15:36
setspacepackage. See e.g. the questions Double line spacing and Finely control line spacing when already using the setspace package?. – Martin Scharrer Jun 29 '11 at 15:25