O'Reilly logo

LaTeX Beginners Guide by Stefan Kottwitz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – redefining the footnote line

We will use \renewcommand to override the default \footnoterule command:

  1. Take the previous example and add the following lines to the preamble:
    \renewcommand{\footnoterule}
        {\noindent\smash{\rule[3pt]{\textwidth}{0.4pt}}}
  2. Typeset and see how the line has changed:
    Time for action – redefining the footnote line

What just happened?

Remember the definition of \newcommand—here it's analogous. The existing command \footnoterule will be replaced by a new definition that we wrote in the second line. The command \rule[raising]{width}{height} draws a line, here 0.4 pt thick, and as wide as the text, raised a bit by 3 pt. Through the command \smash, we let our ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required