How can I delete or replace "Springer Nature 2021 LATEX template" from my page?
Asked
Active
Viewed 8,706 times
9
The Amplitwist
- 71
- 1
- 18
S M Sarwar
- 93
1 Answers
10
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
Simon Dispa
- 39,141
-
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? – Aaron Bramson Nov 13 '21 at 07:41
-
1@AaronBramson - Just replace the 3rd argument of
\patchcmd-- here:{\hbox to \hsize{\hfill Based on Springer Nature \LaTeX\ template\hfill}}-- with{}. – Mico Nov 13 '21 at 08: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\patchcmdas written. I ended up editting the cls file directly – Aaron Bramson Nov 13 '21 at 11:55



articleclass instead? – David Carlisle Oct 03 '21 at 20:54