[Tex/LaTex] How to place a copyright note at the bottom of a page after the footnotes

footnotestypography

Similarly to this question I need to put a copyright note on the first page of a paper. I would like to have a similar \mycopyright command to set its text. However, differently from the other question, I would like the copyright note to appear after any other footnote of the page coming from the paper.

This is a starting point:

\documentclass[11pt]{article}

\usepackage{lipsum}

\author{Mr Someone\\University of Somewhere}

\newcommand\copyrightnote[1]{}

\copyrightnote{Copyright notice}

\begin{document}
  \maketitle

  \lipsum[1]\footnote{Some footnote}
  \lipsum[2-4]
\end{document}

Best Answer

The following patches parts of LaTeX's output routine and is not thoroughly tested, use with caution.

The following defines the macro \copyrightnote, it places its argument below the footnotes. The formatting is copied from LaTeX's standard definition of \@footnotetext. You should call it either in your preamble or after \begin{document} (just make sure it is before the first page was shipped out if you use it). The patching of the output routine is only done if you really use \copyrightnote.

\documentclass[]{article}

\usepackage{lipsum}
\usepackage{xpatch}

\title{Some Title}
\author{Mr Someone\\University of Somewhere}

\makeatletter
\newinsert\copyrightnote@ins
\count\copyrightnote@ins=1000
\dimen\copyrightnote@ins=8in
\newcommand*\copyrightnote@hook
  {%
    % place 
    \unvbox\copyrightnote@ins
    \global\let\@makecol\copyrightnote@makecol
  }
\let\copyrightnote@AtBeginDocument\AtBeginDocument
\AtBeginDocument{\let\copyrightnote@AtBeginDocument\@firstofone}
\newcommand*\copyrightnote@firstuse
  {%
    \gdef\copyrightnote@firstuse
      {\global\skip\copyrightnote@ins=\bigskipamount\gdef\copyrightnote@firstuse{}}%
    % backup to later restore it
    \global\let\copyrightnote@makecol\@makecol
    % after the actual footnotes are placed we place something else
    \xpatchcmd\@makecol{\unvbox\footins}{\unvbox\footins\copyrightnote@hook}
      {}{\GenericError{}{patching @makecol failed}{}{}}
    \copyrightnote@AtBeginDocument
      {%
        % trick the output routine to think there are footnotes, even if there
        % are none
        \ifvoid\footins
          \insert\footins{}% 
        \else
          \global\skip\copyrightnote@ins=\bigskipamount
        \fi
      }%
  }
\newcommand\copyrightnote[1]
  {%
    \copyrightnote@firstuse
    \copyrightnote@AtBeginDocument
      {%
        \insert\copyrightnote@ins
          {%
            \reset@font\footnotesize
            \interlinepenalty\interfootnotelinepenalty
            \splittopskip\footnotesep
            \splitmaxdepth\dp\strutbox
            \floatingpenalty\@MM
            \hsize\columnwidth
            \@parboxrestore
            \color@begingroup
            \parindent1em
            \noindent
            \hskip1.8em
            \ignorespaces #1\@finalstrut\strutbox
            \color@endgroup
          }%
      }%
  }
\makeatother

\copyrightnote{Copyright notice}

\begin{document}
\maketitle

\lipsum[1]\footnote{Some footnote}
\lipsum[2-4]
\end{document}

With a footnote:

enter image description here

Without a footnote:

enter image description here

Related Question