Generalelsarticle | Author Address with multiple Affiliations

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
rkealey
Posts: 4
Joined: Thu Nov 22, 2012 7:47 pm

elsarticle | Author Address with multiple Affiliations

Post by rkealey »

Hello all

I am new to the community and hope this is the correct place for this post. I've been having some issues formatting the document I'm working on. I'm using the elsarticle class class and I am trying to format the front matter for the document.

The area where I'm encountering an issues is with the declaration of multiple affiliations for 2 of the 3 authors. In the output document these two authors have incorrect tags for their second affiliation. It's a trivial matter, but an important one that I can't figure out. I'm hoping someone on here knows what the issue is.

This is how I setup the document:

Code: Select all

\documentclass[authoryear]{elsarticle} 
\begin{document}
\begin{frontmatter}
\title{A Very Clever Paper Title}

\author[add1]{Author1}
\ead{email1@domain.ca}
\author[add2, add3]{Author2\corref{cor1}}
\ead{email2@domain.ca}
\author[add2, add3]{Author3\corref{cor1}}
\ead{email3@domain.ca}

\cortext[cor1]{Please address correspondence to Author2 or Author3}
\address[add1]{Department of Redundancy Department}
\address[add2]{Centre for Study of Things}
\address[add3]{Department of Interests}
The output is as follows (the bold characters in brackets represent superscript characters)

A Very Clever Paper Title
Author1(c), Author2(a,1,*), and Author3(a,1,*)

(a) Department of Redundancy Department
(b) Centre for Study of Things
(c) Department of Interests

(*) Please address correspondence to Author1 or Author2

The main issue is that when I try to have multiple affiliations for Authors1 and 2, the second affiliation (add2) shows up as the number 1 in the superscript list instead of 'b'. So the author line should look like this:

Author1c, Author2a,b,*, and Author3a,b,*

Again, it is trivial but for the life of me I can't figure out why this is happening! Any advice would be helpful!

Recommended reading 2024:

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

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

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

elsarticle | Author Address with multiple Affiliations

Post by localghost »

After completing your code snippet to a self-contained document I can't comprehend the problem since I get the desired output (needs at least two compiler runs).

Code: Select all

\documentclass[authoryear]{elsarticle}
\usepackage[T1]{fontenc}
\usepackage{lipsum}

\begin{document}
  \title{A Very Clever Paper Title}

  \author[add1]{Author1}
  \ead{email1@domain.ca}
  \author[add2,add3]{Author2\corref{cor1}}
  \ead{email2@domain.ca}
  \author[add2,add3]{Author3\corref{cor1}}
  \ead{email3@domain.ca}

  \cortext[cor1]{Please address correspondence to Author2 or Author3}
  \address[add1]{Department of Redundancy Department}
  \address[add2]{Centre for Study of Things}
  \address[add3]{Department of Interests}

  \begin{abstract}
    \lipsum[1]
  \end{abstract}
  \begin{keyword}
    Keywords
  \end{keyword}

  \maketitle
\end{document}
It is important to delete the blank spaces in the optional arguments for the \author commands.


Thorsten
Attachments
The resulting output.
The resulting output.
elsarticle-author-affiliations.png (19.87 KiB) Viewed 54725 times
rkealey
Posts: 4
Joined: Thu Nov 22, 2012 7:47 pm

Re: elsarticle | Author Address with multiple Affiliations

Post by rkealey »

Thank you very much for your response and for testing out the code.

I'm very confused as well haha. I have a sneaking suspicion that my latex install is a little bit messed up. This is the second time a very odd error has occurred that does not seem to be typical for other users.

Thanks again for the reply, I'll keep at it. If I find a solution or the cause on my end, I'll post it.

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

elsarticle | Author Address with multiple Affiliations

Post by localghost »

rkealey wrote:[…] I have a sneaking suspicion that my latex install is a little bit messed up. This is the second time a very odd error has occurred that does not seem to be typical for other users. […]
Perhaps it's a matter of your TeX system which is probably not up to date. It is recommended that you update your TeX system regularly. LaTeX – and its packages in particular – is under continuous development.
rkealey
Posts: 4
Joined: Thu Nov 22, 2012 7:47 pm

Re: elsarticle | Author Address with multiple Affiliations

Post by rkealey »

Thank you again for the help.
After some re-installs and updating, everything seems to be working properly!

Ryan
omekrit
Posts: 1
Joined: Tue Sep 10, 2024 4:23 pm

elsarticle | Author Address with multiple Affiliations

Post by omekrit »

See that space between addresses? \author[add2, add3] That's the problem.

The solution is to simply remove that space \author[add2,add3].
Post Reply