[texhax] PNAS style

Tom Schneider toms at ncifcrf.gov
Sun Feb 4 20:29:28 CET 2007


Thanks for looking into the problem.

> > I can get the right format using this command in the preamble:
> > 
> > \usepackage[numbers,sort&compress,round]{natbib}
> > 
> > which makes numbers, sorts, compresses and gives round parenthesis. 
> > (as per the documentation at
> > http://www.ctan.org/tex-archive/help/Catalogue/entries/natbib.html)
> > 
> > For the bibliography I do:
> > 
> > \makeatletter
> > \renewcommand\@biblabel[1]{#1.}
> > \makeatother
> > 
> > However, I'd like to package this together as a single call:
> > 
> > \usepackage{pnas}
> > 
> > For some reason this fails to work whether I name it pnas.sty 
> > or pnas.cls.

> Well, it has to pnas.sty to work with \usepackage{pnas}.  But, if you don't
> tell is how it fails, it's a little hard to say what's wrong.  I can only
> guess that MiKTeX doesn't find the file; which simply means that you didn't
> put it ib the right place or you didn't refresh the MiKTeX filename
> database.  Thses problems are all dealt with in the FAQ and are indeed VFAQ.
> On the other hand, if you get some specific error message, assuming it
> doesn't violate some official secrets act, how about letting us in on it?

Sorry I wasn't so clear.

Ok, so it needs to be named pnas.sty and not pnas.cls (though I don't
understand the difference).  I am keeping the file for now in the same
directory while I work on it so access is not a problem.  I'm doing
the work on a Sun, so it's a different installation, but my
installation is fine.

The relevant calls are:



When I put these calls into the paper itself, they work.  That is, I
get '()' around the references in the text, citations come out as
(1-3) and the bibliography references look like '1.'.  That's the
result I want.

When I put the same calls into pnas.sty and call it with
\usepackage{pnas}, I get '[]' around the references.  Citations come
out as [1-3] indicating that natbib is being called but that the
'round' command is not working.  The bibiliography looks like '1.' as

So for some reason the 'round' function of natbib does not work when
natbib is called from inside pnas.sty.


  Dr. Thomas D. Schneider
  National Institutes of Health
  National Cancer Institute
  Center for Cancer Research Nanobiology Program
  Molecular Information Theory Group
  Frederick, Maryland  21702-1201
  toms at ncifcrf.gov
  permanent email: toms at alum.mit.edu (use only if first address fails)

More information about the texhax mailing list