Document ClassesHow to remove the line "Preprint submitted to Elsevier"

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

How to remove the line "Preprint submitted to Elsevier"

Post by bkarpuz »

Dear LC Users,

I am using elsarticle.cls class file for my document.
I want to remove the line "Preprint submitted to Elsevier",
which appears automatically.
I know how to change "Elsevier" by using "\journal" command.
I just need to remove that line completely.
Is that possible?

Many thanks.
bkarpuz
Last edited by bkarpuz on Thu Dec 16, 2010 11:55 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
TikZ book
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How to remove the line "Preprint submitted to Elsevier"

Post by localghost »

A quick solution would be to pick up the related code from the class file and redefine the relevant command. This results in adding some lines to the preamble.

Code: Select all

\makeatletter
\def\ps@pprintTitle{%
  \let\@oddhead\@empty
  \let\@evenhead\@empty
  \let\@oddfoot\@empty
  \let\@evenfoot\@oddfoot
}
\makeatother
This lets the footer on the first page simply vanish. At the moment I'm not aware how to enable the plain page style for the first page (with the page number centered in the footer).

Supplement:
Looking at the definition for the plain page style in the LaTeX kernel lets you redefine the title page style accordingly. The code for the preamble then looks like the following.

Code: Select all

\makeatletter
\def\ps@pprintTitle{%
  \let\@oddhead\@empty
  \let\@evenhead\@empty
  \def\@oddfoot{\reset@font\hfil\thepage\hfil}
  \let\@evenfoot\@oddfoot
}
\makeatother

Thorsten
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

How to remove the line "Preprint submitted to Elsevier"

Post by bkarpuz »

Thanks a lot localghost, this was what I was looking for!
The trick I did was deleting the relevant lines in the cls file and saving it with a different name, and then using it.

Many thanks.
bkarpuz
Post Reply