Generalaffiliation with two indices

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
MrH86A
Posts: 9
Joined: Tue Nov 08, 2011 4:36 pm

affiliation with two indices

Post by MrH86A »

Hi, I have the situation where many authors belong to the same institute/company but within different divisions/departments, is there a way to achieve the following (for two authors, for example):

First Name ^{1,2}, Second Name ^{1,3}
^{1} Department One ^{2} (Two ^{3}), Institute bla bla.


So basically I want to add more indices in the main affiliation of the authors that refers to them specifically. It is important to save space by not repeating the affiliation specifying the department of each author in a new line of text.

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: affiliation with two indices

Post by Johannes_B »

Can you show us a minimal working example so we can reproduce how you are currently setting up that author block?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
MrH86A
Posts: 9
Joined: Tue Nov 08, 2011 4:36 pm

affiliation with two indices

Post by MrH86A »

Thanks for your prompt reply. To be very specific and minimal, this is the what I'm trying to compile:

Code: Select all

\documentclass[superscriptaddress]{revtex4}

\begin{document}

\author{First Name}
\affiliation{First Department, Same Institute}
\author{Second Name}
\affiliation{Second Department, Same Institute}
\maketitle


\end{document}
This uses the APS documentclass. I want to produce the affiliation in a single line with indices referring to the authors. This will save a huge space as all the authors belong to the same institute. I know it's silly, but the specific department must be indicated. Is this clear enough?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: affiliation with two indices

Post by Johannes_B »

Why are you using the aps class? Seems a strange reason for me, especially since making changes to the predefined output is much harder when a template is used.
How about using a standard class?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
MrH86A
Posts: 9
Joined: Tue Nov 08, 2011 4:36 pm

Re: affiliation with two indices

Post by MrH86A »

You are right, it's not strictly required to use the APS documentclass. But do you believe that it is possible to achieve what I want using the article documentclass? Thanks for taking the time to help.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

affiliation with two indices

Post by Johannes_B »

No matter if you are using APS or the generic article, you don't have to use \maketitle to generate the actual titlehead. You can do it completely by hand, though this is a tiny bit more complicated.

What would you need from the APS template within article, or ... how should the header look like? Just the linebreaks removed? Do you need this more than once (i.e. a macro) or is it enough to do it completely by hand without any automation.
If the institution is always the same, can it be hardcoded? Is it useful to add the very same marker for every every name instead of just using something like a subtitle to place this information.

Code: Select all

Properties of our new and georgous material
Institute of nano-stuff
James^1, Mary^2, Gunther^7
^1 dep. of materials testing; ^2 dep. of nano-scale simulations; ^3 dep. of ultra-testing, Iceland
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
MrH86A
Posts: 9
Joined: Tue Nov 08, 2011 4:36 pm

Re: affiliation with two indices

Post by MrH86A »

Thanks for your help, I will follow your advice!
Post Reply