8

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}

1 Answer 1

8

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.