[texhax] xcolor package puzzle

Shuler, Megan MShuler at nas.edu
Tue Oct 9 19:24:45 CEST 2018


Dear Dr. Schneider,

Thank you for this message. The PNAS .cls file includes is written to produce the formatting PNAS will use in publication. We generally do not include colored table cells in published papers, so it is not accounted for in the .cls file. I suggest that you create your tables without this formatting to ensure that the files will compile correctly when submitted. 

When you submit source files for a LaTeX paper on our submission site, however, we do ask that you upload the .cls and .sty files you used to compile your manuscript file. This way, we have the accurate code if you have made any changes. Regardless, our printer will format the manuscript to PNAS style if the paper is accepted.

Sincerely,

Megan E. Shuler
PNAS Editorial Office




-----Original Message-----
From: Thomas Schneider [mailto:schneidt at mail.nih.gov] 
Sent: Tuesday, October 9, 2018 2:05 AM
To: texhax at tug.org; Allison, James <JAllison at nas.edu>
Cc: schneidt at mail.nih.gov; vishnu.jejjala at gmail.com; PNAS <PNAS at nas.edu>
Subject: xcolor package puzzle

Dear TexHax and James Allison:

I am preparing a paper for PNAS.  The PNAS class file pnas-new.cls has \RequirePackage{xcolor}.

For a table I am working on I have been using the table flag:

\usepackage[table]{xcolor}

so that I can get alternating grey striped lines:

\colorlet{tablerowcolor}{gray!19.0}
\rowcolors{4}{white}{tablerowcolor} % start alternation on 4th row

However, my usepackage conflicts with the PNAS cls file.  I could modify the pnas-new.cls file but then it would fail when PNAS folks compile my document with their standard cls.

Is there a way to activate [table] for xcolor so that I can use it?

----

The manual for xcolor says "These commands require the table option
(which loads the colortbl package)" (page 28).   Although I can
\usepackage{colortbl}, I still get 'Undefined control sequence' for \rowcolors.  So that doesn't work ...

Tom

  Thomas D. Schneider, Ph.D.
  Senior Investigator
  National Institutes of Health
  National Cancer Institute
  Center for Cancer Research
  RNA Biology Laboratory
  Biological Information Theory Group
  Frederick, Maryland  21702-1201
  schneidt at mail.nih.gov
  https://alum.mit.edu/www/toms



More information about the texhax mailing list