[Tex/LaTex] Footnote Horizontal Line

footnotesrules

I am using a the IOP (Institute of Physics) LaTeX class/templates, I am trying to add a footnote but it is not showing a horizontal line. Is there a way to force this or define a new rule to make sure one is appearing? Here is a simple example of what I am doing.

\documentclass[12pt,helvetica,a4paper,final]{iopart}
\usepackage{iopams} 
\begin{document}
\maketitle

\title[Short Title]{Short Title: Subtitle}
\author{H. A.}
\section{Introduction}
Here I have an introduction \footnote{check out this note also!}.
\end{document}

Best Answer

The document class iopart.cls has

304: \def\footnoterule{}%

which removes the footnote rule. You can grab the definition from latex.ltx:

\makeatletter
\def\footnoterule{\kern-3\p@
  \hrule \@width 2in \kern 2.6\p@} % the \hrule is .4pt high
\makeatother

Peace has been restored:

enter image description here

\documentclass[12pt,helvetica,a4paper,final]{iopart}

\usepackage{iopams}

\makeatletter
\def\footnoterule{\kern-3\p@
  \hrule \@width 2in \kern 2.6\p@} % the \hrule is .4pt high
\makeatother

\title[Short Title]{Short Title: Subtitle}
\author{Husni Almoubayyed}

\begin{document}

\maketitle

\section{Introduction}

Here I have an introduction \footnote{check out this note also!}.

\end{document}

Some notes:

  • For journal submissions I'd avoid such changes.

  • Based on any template you should set \title and friends before executing \maketitle.

Related Question