[R] Sweave:How to load available colors from pkg 'color'--(Resolved)

From: Felipe Carrillo <mazatlanmexico_at_yahoo.com>
Date: Fri, 07 Nov 2008 20:09:23 -0800 (PST)

Hello: I found a solution to my problem here, I just downloaded mystyle.sty to the same directory where my latex file resides. Then I included \usepackage{mystyle} in my preamble and that took care of coloring any section of the document. http://www.sci.usq.edu.au/staff/robertsa/LaTeX/ltxfloats.html Felipe  

Is there a shorter way to color the abstract,sections subsections and page headings of a document. I am using the code below in my preamble to accomplish some of it:

% and fix pdf colour problems
%\renewcommand{\MakeUppercase}[1]{\color{OliveGreen}\textsf{#1}} %\renewcommand{\abstractname}{\color{blue}Abstract}

Also,'\usepackage[usenames]{color}' is suppossed to load all the available colors in the package 'color' but for some reason it doesn't load them when running it trhough Sweave. It loads all the colors if I run it outside R though. Here's a dummy document:

Felipe D. Carrillo
Supervisory Fishery Biologist
Department of the Interior
US Fish & Wildlife Service
California, USA

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat 08 Nov 2008 - 04:25:39 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 08 Nov 2008 - 04:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive