Generalelsarticle | Elsevier Template Modifications

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ChrisDanger
Posts: 13
Joined: Tue Dec 07, 2010 5:25 pm

elsarticle | Elsevier Template Modifications

Post by ChrisDanger »

Hi,

I'm using an Elsevier template to submit an article to my university, who do not supply any template themselves. However, there are two things I need to change. Please refer to the code below.
  • The superscripts for the author addresses need to be * and +. Currently they are a and b.
  • The first page footer must be removed. (Omission of the \journal command still results in a footer.)
I would greatly appreciate any help with these issues.

Code: Select all

\documentclass[final,5p,times,twocolumn]{elsarticle}

\journal{A Journal}

\begin{document}

\begin{frontmatter}

\title{A Title}

\author[label1]{A. N. Author}
\author[label2]{A. N. Other}
\address[label1]{A label}
\address[label2]{Another label}

\begin{abstract}Abstract\end{abstract}

\begin{keyword}Keywords \sep go \sep here\end{keyword}

\end{frontmatter}

\section{Introduction}
The article starts here.

\end{document}
Last edited by ChrisDanger on Tue Oct 25, 2011 8:58 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

elsarticle | Elsevier Template Modifications

Post by localghost »

You can try the additions shown in the code below. I assume that with "+" you actually mean what LaTeX prints by its \dag command (a so called dagger). For the affiliation superscripts the corresponding counter is redefined and the definition of a helper macro is repeated to make sure that all superscripts are done right. The redefinition of the page style replaces the original footer with the centered page number.

Code: Select all

\documentclass[final,5p,times,twocolumn]{elsarticle}
\usepackage[T1]{fontenc}

\renewcommand{\theaffn}{\fnsymbol{affn}}
\makeatletter
\long\def\@@address[#1]#2{\g@addto@macro\elsaddress{%
    \def\baselinestretch{1}%
     \refstepcounter{affn}
     \xdef\@currentlabel{\theaffn}
     \elsLabel{#1}%
    \textsuperscript{\theaffn}#2\par}}
\def\ps@pprintTitle{%
  \let\@oddhead\@empty
  \let\@evenhead\@empty
  \def\@oddfoot{\reset@font\hfil\thepage\hfil}
  \let\@evenfoot\@oddfoot
}
\makeatother

\journal{A Journal}

\begin{document}
  \title{A Title}
  \author[label1]{A. N. Author}
  \author[label2]{A. N. Other}
  \address[label1]{A label}
  \address[label2]{Another label}

  \begin{abstract}
    Abstract
  \end{abstract}

  \begin{keyword}
    Keywords \sep go \sep here
  \end{keyword}

  \maketitle

  \section{Introduction}
    The article starts here.
\end{document}
Note that if there is a corresponding author given by the \corref and \cortext commands, this will also use a superscripted asterisk (*). This could cause confusion not only in the case that this should be the first author. A remedy would require further slight modifications.


Thorsten
ChrisDanger
Posts: 13
Joined: Tue Dec 07, 2010 5:25 pm

Re: elsarticle | Elsevier Template Modifications

Post by ChrisDanger »

Thanks again Thorsten. Works like a charm.
Post Reply