[Dplr-commits] r1010 - in pkg/dplR: . vignettes
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Mar 1 15:10:38 CET 2016
Author: mvkorpel
Date: 2016-03-01 15:10:37 +0100 (Tue, 01 Mar 2016)
New Revision: 1010
Modified:
pkg/dplR/DESCRIPTION
pkg/dplR/vignettes/dplR.sty
Log:
Make the \code macro work when language "nohyphenation" is undefined
(recent errors on CRAN Windows machines).
Modified: pkg/dplR/DESCRIPTION
===================================================================
--- pkg/dplR/DESCRIPTION 2016-01-22 17:41:36 UTC (rev 1009)
+++ pkg/dplR/DESCRIPTION 2016-03-01 14:10:37 UTC (rev 1010)
@@ -3,7 +3,7 @@
Type: Package
Title: Dendrochronology Program Library in R
Version: 1.6.4
-Date: 2016-01-22
+Date: 2016-03-01
Authors at R: c(person("Andy", "Bunn", role = c("aut", "cph",
"cre", "trl"), email = "andy.bunn at wwu.edu"), person("Mikko",
"Korpela", role = c("aut", "trl")), person("Franco", "Biondi",
Modified: pkg/dplR/vignettes/dplR.sty
===================================================================
--- pkg/dplR/vignettes/dplR.sty 2016-01-22 17:41:36 UTC (rev 1009)
+++ pkg/dplR/vignettes/dplR.sty 2016-03-01 14:10:37 UTC (rev 1010)
@@ -1,7 +1,7 @@
% This file is part of dplR: Dendrochronology Program Library in R.
% Written by Andy Bunn and Mikko Korpela.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{dplR}[2014/11/20 Package for dplR vignettes]
+\ProvidesPackage{dplR}[2016/03/01 Package for dplR vignettes]
\RequirePackage{amsmath}
\RequirePackage{amssymb}
@@ -25,6 +25,13 @@
\newcommand*{\code}[1]{Dummy}
% \hyphenrules requires the babel package (>= 3.7e, 2000/01/28)
% \hyphenrules is fragile, needs protection
-\DeclareRobustCommand*{\code}[1]{\texttt{\hyphenrules{nohyphenation}#1}}
+%
+% Parts of solution copied from an answer by Enrico Gregorio (egreg)
+% at http://tex.stackexchange.com/a/91318
+\makeatletter
+\@ifundefined{l at nohyphenation}
+{\DeclareRobustCommand*{\code}[1]{\texttt{\language=\@cclv#1}}}
+{\DeclareRobustCommand*{\code}[1]{\texttt{\hyphenrules{nohyphenation}#1}}}
+\makeatother
\endinput
More information about the Dplr-commits
mailing list