[Tex/LaTex] How to remove preprint submitted to Elsevier in cas_dc class template

els-caselsarticle

I have used cas_dc class as a template. I tried to remove the footer 'preprint submitted to Elsevier using this code:

\makeatletter
\def\ps@first{%
   \let\@oddhead\@empty
   \let\@evenhead\@empty
   \def\@oddfoot{}
   \let\@evenfoot\@oddfoot
}

it removes the footer from the first page only.
I tried this code as well:

\makeatletter
\def\ps@cas{%
   \let\@oddhead\@empty
   \let\@evenhead\@empty
   \def\@oddfoot{}
   \let\@evenfoot\@oddfoot
}

but nothing changed

Could you please help me on how to remove the footer
Thank you

Best Answer

Please don't.

As you were advised in the comments, this class is intended for submissions to Elsevier and should probably not be used otherwise, and if you're submitting to Elsevier there is no reason to change the layout in any way.

But supposing you have a real good reason for doing this, you can add

\ExplSyntaxOn
\cs_gset:Npn \__first_footerline:
  { \group_begin: \small \sffamily \__short_authors: \group_end: }
\ExplSyntaxOff 

to your preamble and it should do what you want (code crossed out for added drama :).

The convention with expl3 is to not redefine or use macros with __<package> in their name because those macros are internal to <package>. The els-cas templates however don't use a module consistently (the code above has __first and __short, which are definitely not the <package> here), so if you really need to remove that sentence from the footer, bite the bullet and use that code, but beware it may stop working1 without notice.

  1. Because the template otherwise works so flawlessly.