Text FormattingCorresponding Author on Front Matter

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
DethLark
Posts: 2
Joined: Tue Aug 12, 2014 12:38 am

Corresponding Author on Front Matter

Post by DethLark »

Hello anyone, I'm writing an Els document. The problem is that I need the corresponding author information at the bottom of the first page. I can only get it to show at the bottom of the second page within the introduction. There are a lot of authors and addresses along with the abstract but there seems to be enough room if things were shifted around a little. I'm compiling with windows MikTex 2.9. Here is the relevant code section:

Code: Select all

\documentclass[preprint,5p]{elsarticle}
\usepackage{natbib}
\usepackage{geometry}
\usepackage{epstopdf}

\begin{document}

\journal{Astroparticle Physics}

\begin{frontmatter}

\title{blah blah blah}

...a bunch of authors...
\author[utah]{Corresponding Author Name\corref{cor1}} 
\ead{Corresponding Author Email Address}
\cortext[cor1]{Corresponding author}
...a bunch more authors...

\address[abc]{A Place}
...a bunch more addresses...

\begin{abstract}
A medium sized abstract
\end{abstract}

\begin{keyword}
A \sep few \sep keywords
\end{keyword}

\end{frontmatter}

\doublespacing

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Introduction}
.
.
.
\end{document}
Any ideas?

Recommended reading 2024:

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

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

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Corresponding Author on Front Matter

Post by kaiserkarl13 »

This works fine as long as you take out the text that's not inside a command and before \maketitle:

Code: Select all

    \documentclass[preprint,5p]{elsarticle}
    \usepackage{natbib}
    \usepackage{geometry}
    \usepackage{epstopdf}

    \begin{document}

    \journal{Astroparticle Physics}

    \begin{frontmatter}

    \title{blah blah blah}

    %...a bunch of authors...
    \author[utah]{Corresponding Author Name\corref{cor1}}
    \ead{Corresponding Author Email Address}
    \cortext[cor1]{Corresponding author}
    %...a bunch more authors...

    \address[abc]{A Place}
    %...a bunch more addresses...

    \begin{abstract}
    A medium sized abstract
    \end{abstract}

    \begin{keyword}
    A \sep few \sep keywords
    \end{keyword}

    \end{frontmatter}

%    \doublespacing

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \section{Introduction}
    Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.
    Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.
    Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.
    Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.
    Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.
    Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.
    Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.
\end{document}
Oh, and I also had to remove your \doublespace command, as it caused an error.

The rule with elsarticle is, don't put anything inside the frontmatter environment that isn't front matter (e.g., author, abstract, title, etc., surrounded by the appropriate command/environment).
DethLark
Posts: 2
Joined: Tue Aug 12, 2014 12:38 am

Re: Corresponding Author on Front Matter

Post by DethLark »

Thanks for trying to help. Unfortunately, I don't see any real changes you made except commenting out lines I don't actually have in the paper. "...a bunch of authors..." for instance isn't in the paper. When I posted my question I suppose I should have commented those out. As for \doublespace I forgot to list that I'm using \usepackage{setspace} as well. I tried to delete only the non-relevant packages.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Corresponding Author on Front Matter

Post by Johannes_B »

I would have suggested the same, since your example doesn't show the behaviour after commenting out those lines. Please check by clicking on »Open in writelatex«.
It is important, that a minimal working example shows the problem, else it's just shooting into the unknown.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply