How can I delete or replace "Springer Nature 2021 LATEX template" from my page?
1 Answer
In the file sn-jnl.cls
(An authoring template for Springer Journal articles) it is established
It may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3c of this license or (at your option) any later version.
The LaTeX Project Public License
- If you are not the Current Maintainer of the Work, you may modify your copy of the Work, thus creating a Derived Work based on the Work, and compile this Derived Work, thus creating a Compiled Work based on the Derived Work.
As an exercise of patching commands, following the examples in https://tex.stackexchange.com/a/152811/161015 it might be possible to change the heading to something else making a proper reference to the author(s)/owner(s).
Add after the comment in the template sn-article.tex
`
%%<additional latex packages if required can be included here>
\usepackage{etoolbox}
\makeatletter
\patchcmd{\ps@headings}%% Regular Pages Style
{\hbox to \hsize{\hfill Springer Nature 2021 \LaTeX\ template\hfill}}
{\hbox to \hsize{\hfill Based on Springer Nature \LaTeX\ template\hfill}}
{}
{}
\patchcmd{\ps@titlepage}%% Opening Page Style
{\hbox to \hsize{\hfill Springer Nature 2021 \LaTeX\ template\hfill}}
{\hbox to \hsize{\hfill Based on Springer Nature \LaTeX\ template\hfill}}
{}
{}
\makeatother
UPDATED to remove
Springer Nature etc. from every page see
from every page
-
This not an answer to the question of how to remove the header, just the replace part...and it doesn't work (for me). Is there a simple way to just delete it? Nov 13, 2021 at 7:41
-
1@AaronBramson - Just replace the 3rd argument of
\patchcmd
-- here:{\hbox to \hsize{\hfill Based on Springer Nature \LaTeX\ template\hfill}}
-- with{}
.– MicoNov 13, 2021 at 8:41 -
1Yes, well, if I run it as is, or change that text to a blank, the document is unchanged. Possibly the issue is that this header also appears in a
\def\ps@titlepage{
block that isn't caught by the\patchcmd
as written. I ended up editting the cls file directly Nov 13, 2021 at 11:55
article
class instead?