Document Classesrevtex / affiliations

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
santino
Posts: 7
Joined: Sun Dec 26, 2010 8:17 am

revtex / affiliations

Post by santino »

I am in the process of creating a paper for phys. rev. b and I have a problem with the author layout. In essence, I cannot get the order of the authors to match the given affiliation.

I am using TeX Live 2009/Debian on Ubuntu 10.04 with the following commands:

Code: Select all

Code, edit and compile here:
\documentclass[aps,prb,superscriptaddress,twocolumn,showpacs]{revtex4-1}
\author{Author1}
\affiliation{aff1}
\author{Author2}
\affiliation{aff2}
\author{Author3}
\affiliation{aff1}
\author{Author4}
\affiliation{aff1}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The order of the authors is essential, I cannot change this according to how revtex wants to group authors. The output I get is:

Author1,^1 Author2,^2 Author3,^2 and Author4^2
^1 aff1
^2 aff2

As you can see Author 3 and 4 have the wrong affiliation, they should be with aff1.

Help? Thank you in advance.
Last edited by santino on Wed Mar 09, 2011 6:10 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.

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

revtex / affiliations

Post by localghost »

Somehow I can't comprehend the problem on my system². Authors and their assigned affiliations appear correctly in the title.

Code: Select all

Code, edit and compile here:
\listfiles
\documentclass[%
11pt,
aps,
prb,
superscriptaddress,
twocolumn,
showpacs
]{revtex4-1}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{blindtext}
\begin{document}
\title{ReV\TeX\ document with multiple authors and affiliations}
\author{Author1}
\affiliation{Affiliation1}
\author{Author2}
\affiliation{Affiliation2}
\author{Author3}
\affiliation{Affiliation1}
\author{Author4}
\affiliation{Affiliation1}
\begin{abstract}
\blindtext
\end{abstract}
\maketitle
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Perhaps a matter of an outdated document class. Add the \listfiles command as very first line to your code and search the log file for the list of used files.

Code: Select all

*File List*
revtex4-1.cls 2010/02/25/18:00:00 4.1p (http://publish.aps.org/revtex4/ for documentation)
aps4-1.rtx
aps11pt4-1.rtx
textcase.sty 2004/10/07 v0.07 Text only upper/lower case changing (DPC)
url.sty 2006/04/12 ver 3.3 Verb mode for urls, etc.
natbib.sty 2009/11/07 8.31a (PWD, AO)
revsymb4-1.sty 2010/02/25/18:00:00 4.1p (http://publish.aps.org/revtex4/ for documentation)
fontenc.sty
t1enc.def 2005/09/27 v1.99g Standard LaTeX file
inputenc.sty 2008/03/30 v1.1d Input encoding file
utf8.def 2008/04/05 v1.1m UTF-8 support for inputenc
t1enc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc
ot1enc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc
omsenc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc
babel.sty 2008/07/06 v3.8l The Babel package
english.ldf 2005/03/30 v3.3o English support from the babel system
blindtext.sty 2009/12/29 V1.9c blindtext-Package
xspace.sty 2006/05/08 v1.12 Space after command names (DPC,MH)
***********
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Thorsten
santino
Posts: 7
Joined: Sun Dec 26, 2010 8:17 am

revtex / affiliations

Post by santino »

Thanks Thorsten:
Here is a list of the files that I am using:

Code: Select all

*File List*
revtex4-1.cls 2009/10/08:11:23 4.1g (http://publish.aps.org/revtex4/ for doc
umentation)
aps4-1.rtx
aps10pt4-1.rtx
textcase.sty 2004/10/07 v0.07 Text only upper/lower case changing (DPC)
url.sty 2006/04/12 ver 3.3 Verb mode for urls, etc.
natbib.sty 2009/07/16 8.31 (PWD, AO)
revsymb4-1.sty 2009/10/08:11:23 4.1g (http://publish.aps.org/revtex4/ for do
cumentation)
amsmath.sty 2000/07/18 v2.13 AMS math features
amstext.sty 2000/06/29 v2.01
amsgen.sty 1999/11/30 v2.0
amsbsy.sty 1999/11/29 v1.2d
amsopn.sty 1999/12/14 v2.01 operator names
amsthm.sty 2004/08/06 v2.20
amssymb.sty 2009/06/22 v3.00
amsfonts.sty 2009/06/22 v3.00 Basic AMSFonts support
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
graphics.sty 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2009/08/28 v1.8 graphics configuration of TeX Live
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks.sty 2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2009/05/19 v1.29 `PSTricks' (tvz,hv)
xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)
color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pst-grad.sty 2004/07/15 package wrapper for pst-grad.tex (hv)
pst-grad.tex 2006/11/27 1.06 `pst-grad' (tvz)
pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
xkeyval.sty 2008/08/13 v2.6a package option processing (HA)
xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)
pst-plot.sty 2004/07/15 package wrapper for pst-plot.tex
pst-plot.tex 2009/06/08 1.04 `pst-plot' (tvz)
umsa.fd 2009/06/22 v3.00 AMS symbols A
umsb.fd 2009/06/22 v3.00 AMS symbols B
omscmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
fig1.eps Graphic file (type eps)
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
santino
Posts: 7
Joined: Sun Dec 26, 2010 8:17 am

revtex / affiliations

Post by santino »

The problem is now solved... after looking closely through the list files, it was primarily my natbib.sty package that was out of date. I did not notice the problem for some time because other publications of mine did not require such an author order and revtex4-1 was working with natbib 8.31.

In all I updated: revtex4-1.cls, natbib.sty and revsymb4-1.sty... not sure if anything else needs an update... but the wheels are well greased at the moment.

For any interested parties:
You can get an updated version of these files through:
https://authors.aps.org/revtex4/
and
http://www.ctan.org/tex-archive/macros/ ... ib/natbib/

cheers
dottorbartolo
Posts: 3
Joined: Fri Aug 19, 2011 1:09 pm

revtex / affiliations

Post by dottorbartolo »

Hi there,

I have tried to update those files, but no success at the moment. My version of latex is the one from Synaptics, with all the possible texlive packages (texlive-publishers seems the one relevant to this discussion).
  1. I looked for the natbib.sty on the system. In my case is in the dir: /usr/share/texmf-texlive/tex/latex/natbib/ (the other two files revsymb4-1.sty and revtex4-1.cls are in /usr/share/texmf-texlive/tex/latex/revtex/).
  2. I downloaded natbib.sty and overwritten the old one in /usr/share/texmf-texlive/tex/latex/natbib/, but my paper was still showing the same error in the affiliations.
  3. Then, I tried to re-install revtex4-1 from https://authors.aps.org/revtex4/. Just to make things clean enough, I have completely unistalled first the package texlive-publishers with synaptic.
  4. After unpacking the first zip file, the README file suggests to install revtex in a different dir:

    Code: Select all

    unzip revtex4-1-tds.zip -d /usr/local/texlive/texmf-local/
    הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    I do that, I run the second command:

    Code: Select all

    mktexlsr /usr/local/texlive/texmf-local
    הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    but now my tex file doesn't even find revtex4-1.cls
    Am I doing some obvious mistake here?
Can anybody help please?

Cheers.
Last edited by dottorbartolo on Fri Aug 19, 2011 2:58 pm, edited 1 time in total.
santino
Posts: 7
Joined: Sun Dec 26, 2010 8:17 am

Re: revtex / affiliations

Post by santino »

Hi:

Not really sure what problems you are running into... all I did was simply replace the three files mentioned in the previous post... the only other thing I can think of is you need to run the command 'texhash' from your main directory. This command has the effect of updated the latex directory so that it recognizes the new files.

I hope that helps.

Ciao
Santino
dottorbartolo
Posts: 3
Joined: Fri Aug 19, 2011 1:09 pm

Re: revtex / affiliations

Post by dottorbartolo »

I have run texhash after substituting the 3 files, but no luck! :(
Cheers
dottorbartolo
Posts: 3
Joined: Fri Aug 19, 2011 1:09 pm

Re: revtex / affiliations

Post by dottorbartolo »

Aha, now it works!
I had been fooled by acroread who had stopped refreshing the file without telling me!
Many thanks.
santino
Posts: 7
Joined: Sun Dec 26, 2010 8:17 am

Re: revtex / affiliations

Post by santino »

...we are all subjugated to the whimsical nature of adobe.

Glad to hear it worked...

Cheers
Post Reply