[Vegan-commits] r2565 - pkg/vegan/inst/doc

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Jul 14 20:10:04 CEST 2013


Author: jarioksa
Date: 2013-07-14 20:10:04 +0200 (Sun, 14 Jul 2013)
New Revision: 2565

Modified:
   pkg/vegan/inst/doc/vegan.sty
Log:
vegan.sty works with amsart and article; smaller \code font

Modified: pkg/vegan/inst/doc/vegan.sty
===================================================================
--- pkg/vegan/inst/doc/vegan.sty	2013-07-14 12:01:51 UTC (rev 2564)
+++ pkg/vegan/inst/doc/vegan.sty	2013-07-14 18:10:04 UTC (rev 2565)
@@ -5,13 +5,15 @@
 \usepackage[utf8x]{inputenc}
 \usepackage[T1]{fontenc}
 \usepackage{sidecap}
-\setlength{\captionindent}{0pt} % sidecap needs this with amsart
+\@ifclassloaded{amsart}%
+{\setlength{\captionindent}{0pt}} % sidecap needs this with amsart
+{}
 \usepackage[english]{babel} % kluge to avoid visible ~ in Figure~1.
 \renewcommand{\floatpagefraction}{0.8}
 \usepackage{Sweave}
 \usepackage{hyperref}
 %% macros
-\newcommand{\code}[1]{\texttt{#1}}
+\newcommand{\code}[1]{\small\texttt{#1}}
 \newcommand{\pkg}[1]{\textbf{#1}}
 \newcommand{\proglang}[1]{\textsf{#1}}
 \newcommand{\R}{\proglang{R}}



More information about the Vegan-commits mailing list