[Distr-commits] r472 - branches/distr-2.2/pkg/SweaveListingUtils/inst/TeX branches/distr-2.2/pkg/SweaveListingUtils/inst/doc branches/distr-2.2/pkg/distr/man pkg/startupmsg/chm

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Jun 7 10:52:27 CEST 2009


Author: ruckdeschel
Date: 2009-06-07 10:52:27 +0200 (Sun, 07 Jun 2009)
New Revision: 472

Modified:
   branches/distr-2.2/pkg/SweaveListingUtils/inst/TeX/Rdlisting.sty
   branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/ExampleSweaveListingUtils.Rnw
   branches/distr-2.2/pkg/distr/man/plot-methods.Rd
   pkg/startupmsg/chm/startupmsg.chm
Log:
fixed a minor error in manual to plot-methods
and added a suggestion by Frank Harrell to the vignette of SweaveListingUtils

Modified: branches/distr-2.2/pkg/SweaveListingUtils/inst/TeX/Rdlisting.sty
===================================================================
--- branches/distr-2.2/pkg/SweaveListingUtils/inst/TeX/Rdlisting.sty	2009-05-25 18:56:56 UTC (rev 471)
+++ branches/distr-2.2/pkg/SweaveListingUtils/inst/TeX/Rdlisting.sty	2009-06-07 08:52:27 UTC (rev 472)
@@ -1,15 +1,15 @@
-\lstdefinelanguage{Rd}[common]{TeX}%
-  {moretexcs={acronym,alias,arguments,author,bold,cite,%
-          code,command,concept,cr,deqn,describe,%
-          description,details,dfn,docType,dots,%
-          dontrun,dontshow,donttest,dQuote,%
-          email,emph,enc,encoding,enumerate,env,eqn,%
-          examples,file,format,item,itemize,kbd,keyword,%
-          keyword,ldots,link,linkS4class,method,name,note,%
-          option,pkg,preformatted,R,references,S3method,%
-          S4method,samp,section,seealso,source,sp,special,%
-          sQuote,strong,synopsis,tab,tabular,testonly,%
-          title,url,usage,value,var},
-   sensitive=true,%
-   morecomment=[l]\%% 2008 Peter Ruckdeschel
-}[keywords,comments]%%
+\Lstdefinelanguage{Rd}[Common]{Tex}%
+  {Moretexcs={Acronym,Alias,Arguments,Author,Bold,Cite,%
+          Code,Command,Concept,Cr,Deqn,Describe,%
+          Description,Details,Dfn,Doctype,Dots,%
+          Dontrun,Dontshow,Donttest,Dquote,%
+          Email,Emph,Enc,Encoding,Enumerate,Env,Eqn,%
+          Examples,File,Format,Item,Itemize,Kbd,Keyword,%
+          Keyword,Ldots,Link,Links4Class,Method,Name,Note,%
+          Option,Pkg,Preformatted,R,References,S3Method,%
+          S4Method,Samp,Section,Seealso,Source,Sp,Special,%
+          Squote,Strong,Synopsis,Tab,Tabular,Testonly,%
+          Title,Url,Usage,Value,Var},
+   Sensitive=True,%
+   Morecomment=[L]\%% 2008 Peter Ruckdeschel
+}[Keywords,Comments]%%

Modified: branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/ExampleSweaveListingUtils.Rnw
===================================================================
--- branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/ExampleSweaveListingUtils.Rnw	2009-05-25 18:56:56 UTC (rev 471)
+++ branches/distr-2.2/pkg/SweaveListingUtils/inst/doc/ExampleSweaveListingUtils.Rnw	2009-06-07 08:52:27 UTC (rev 472)
@@ -151,7 +151,7 @@
 to a corresponding \file{.tex} file,  will expand to a rather long form
 (depending on which packages you have attached), but you should not worry
 about your document getting very long, as the inserted \TeX commands 
-(or more precisely {\tt listings}-package commands only declare
+(or more precisely {\tt listings}-package commands) only declare
 the list(s) of registered keywords (for later markup).\\
 In our case this should expand to something like\newline
 %
@@ -277,6 +277,12 @@
 you may force \TeX to typeset (parts of) your comments in \TeX style,
 which is handy for mathematical formula.
 
+In an e-mail, Frank Harrell was suggesting to use named colors as usual
+in {\sf R}. As in \TeX we are just using the command \lstinline[language=tex]{\color}
+which expects a comma-separated list of the three rgb coordinates (scaled to be
+in $[0,1]$, a good way to do use {\sf R} colornames is, as Frank suggested,
+to use \code{col2rgb(...)/255} to transform them to \TeX-digestible format.
+
 \paragraph{Changing the markup settings without changing defaults at startup: }
 %
 Alternatively, you may change global markup without modifying 

Modified: branches/distr-2.2/pkg/distr/man/plot-methods.Rd
===================================================================
--- branches/distr-2.2/pkg/distr/man/plot-methods.Rd	2009-05-25 18:56:56 UTC (rev 471)
+++ branches/distr-2.2/pkg/distr/man/plot-methods.Rd	2009-06-07 08:52:27 UTC (rev 472)
@@ -86,34 +86,34 @@
   \item{tmar}{top margin -- useful for non-standard main title sizes}
   \item{bmar}{bottom margin -- useful for non-standard sub title sizes}
   \item{verticals}{logical: if \code{TRUE}, draw vertical lines at steps;
-                   as in \code{\link[stats]{plot.stepfun}}} 
+                   as in \code{\link[graphics]{plot.stepfun}}} 
   \item{do.points}{logical: if \code{TRUE}, draw  also draw points at the 
          (\code{xlim} restricted) knot locations; as 
-         in \code{\link[stats]{plot.stepfun}}} 
+         in \code{\link[graphics]{plot.stepfun}}} 
   \item{cex.points}{numeric; character expansion factor; as in 
-                    \code{\link[stats]{plot.stepfun}}}              
+                    \code{\link[graphics]{plot.stepfun}}}              
   \item{col.points}{character or integer code; color of points; as in 
-                    \code{\link[stats]{plot.stepfun}}}              
+                    \code{\link[graphics]{plot.stepfun}}}              
   \item{col.hor}{character or integer code; color of horizontal lines; as in 
-                    \code{\link[stats]{plot.stepfun}}}              
+                    \code{\link[graphics]{plot.stepfun}}}              
   \item{col.vert}{character or integer code; color of vertical lines; as in 
-                    \code{\link[stats]{plot.stepfun}}}              
+                    \code{\link[graphics]{plot.stepfun}}}              
   \item{cex.main}{magnification to be used for main titles relative
           to the current setting of \code{cex}; as in 
-          \code{\link[stats]{par}}}
+          \code{\link[graphics]{par}}}
   \item{cex.inner}{magnification to be used for inner titles relative
           to the current setting of \code{cex}; as in 
-          \code{\link[stats]{par}}}
+          \code{\link[graphics]{par}}}
   \item{cex.sub}{magnification to be used for sub titles relative
           to the current setting of \code{cex}; as in 
-          \code{\link[stats]{par}}}
+          \code{\link[graphics]{par}}}
   \item{col.main}{character or integer code; color for the main title}              
   \item{col.inner}{character or integer code; color for the inner title}              
   \item{col.sub}{character or integer code; color for the sub title}              
   \item{pch.u}{character or integer code; plotting characters or symbols for
-               unattained value; see \code{\link[stats]{points}}}              
+               unattained value; see \code{\link[graphics]{points}}}              
   \item{pch.a}{character or integer code; plotting characters or symbols for
-               attained value; see \code{\link[stats]{points}}}              
+               attained value; see \code{\link[graphics]{points}}}              
   \item{mfColRow}{shall default partition in panels be used --- defaults to \code{TRUE}}
   \item{to.draw.arg}{Either \code{NULL} (default; everything
   is plotted) or a vector of either integers 
@@ -128,9 +128,9 @@
   three panels for the absolutely continuous and the discrete part, respectively; 
   }
   \item{\dots}{addtional arguments for \code{plot} --- see 
-               \code{\link[stats]{plot}}, 
-               \code{\link[stats]{plot.default}}, 
-               \code{\link[stats]{plot.stepfun}} }
+               \code{\link[graphics]{plot}}, 
+               \code{\link[graphics]{plot.default}}, 
+               \code{\link[graphics]{plot.stepfun}} }
 }
 \details{
 \describe{
@@ -250,8 +250,8 @@
 plot(as(P,"UnivarLebDecDistribution"),mfColRow = FALSE,to.draw.arg=c("d.d"))
 
 }
-\seealso{\code{\link[stats]{plot}},\code{\link[stats]{plot.default}}, 
-         \code{\link[stats]{plot.stepfun}},  \code{\link[stats]{par}}}
+\seealso{\code{\link[graphics]{plot}},\code{\link[graphics]{plot.default}}, 
+         \code{\link[graphics]{plot.stepfun}},  \code{\link[graphics]{par}}}
 \keyword{methods}
 \keyword{hplot}
 \keyword{distribution}

Modified: pkg/startupmsg/chm/startupmsg.chm
===================================================================
(Binary files differ)



More information about the Distr-commits mailing list