1

The footer appears on all pages except the first one. Here is MWE:

 \documentclass[12pt]{article}
    \usepackage{fancyhdr}
    \pagestyle{fancy}
    \fancyhead{} % clear all header fields
    \renewcommand{\headrulewidth}{0pt} % no line in header area
    \fancyfoot{} % clear all footer fields
    \fancyfoot[LE,RO]{\thepage}           % page number in "outer" position of footer line
    \fancyfoot[RE,LO]{I reserve the right to change anything in this document at any time.} % other info in "inner" position of footer line

    \title{Env. Science}
    \author{Syllabus}
    \date{}
    \begin{document}
    \maketitle
    \hrule 
    \smallskip
Here is some random text.
    \end{document}
3
  • 1
    You have no footnote in your code. Would you mean footer, per chance?
    – Bernard
    Commented Jan 8, 2020 at 0:01
  • oops. I am sorry. Yes, I meant footer not footnote.
    – rose
    Commented Jan 8, 2020 at 0:02
  • 1
    Try to insert \thispagestyle{fancy} after \maketitle.
    – Zarko
    Commented Jan 8, 2020 at 0:06

1 Answer 1

1

For the document class article, the first page always has a plain style (only page number on the bottom of the page). The styles of other pages can be specified with the fancyhdr package, for example.

If you also want to have the first page in the same style as the others, insert the command \thispagestyle{fancy} after the line with \maketitle:

\documentclass[12pt]{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{} % clear all header fields
\renewcommand{\headrulewidth}{0pt}  % no line in header area
\fancyfoot{} % clear all footer fields
\fancyfoot[LE,RO]{\thepage}         % page number in "outer" position of footer line
\fancyfoot[RE,LO]{I reserve the right to change anything in this document at any time.}

\title{Env. Science}
\author{Syllabus}
\date{}

\begin{document}
\maketitle
\thispagestyle{fancy} % <---
\hrule
\smallskip
Here is some random text.
\end{document}
2
  • Is it possible to change the color of the text in the footer?
    – rose
    Commented Jan 8, 2020 at 23:40
  • @math, I believe that it is possible, however, so far I didn't doing this :-(. As starting solution can be insert \textcolor{<desired color> }{ text in the desired color} into \fancyfoot. For this you need to load xcolor package. An example of preamble: \documentclass[12pt]{article} \usepackage[table]{xcolor} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead{} \renewcommand{\headrulewidth}{0pt} \fancyfoot{} \fancyfoot[LE,RO]{\thepage} \fancyfoot[RE,LO]{\textcolor{blue}{I reserve the right to change anything in this document at any time.}}
    – Zarko
    Commented Jan 9, 2020 at 2:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .