[R] \code{x[ind,,]} -- Including spaces does not work

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Jul 30 10:11:35 CEST 2001


On Mon, 30 Jul 2001, Prof Brian D Ripley wrote:

> On Mon, 30 Jul 2001, Prof Brian D Ripley wrote:
>
> > On Mon, 30 Jul 2001, Chris Wild wrote:
> >
> > > Putting a space between the commas makes no difference when I try it.
> >
> >
> > \code{x[ind, , ]}
> >
> > does work for me, and furthermore it is how R itself formats the code:
> >
> > > options(keep.source=F)
> > > foo <- function() { x[ind,,] }
> > > foo
> > function ()
> > {
> >     x[ind, , ]
> > }
> >
> > so it's not ugly, it is correct.  I do wish posters to R-help would
> > make use of spaces in the way R itself does.
> >
> > That's not to say that Rd.sty does not need to protect against this.
>
> It's a quirk of using ae.sty, and \code not being a proper verbatim
> environment.
>
> ,, is the notation for a quotation mark for a European language.  As that
> does not exist in typewriter font, it is mapped to a black square by the ae
> package.
>
> A TeX workaround is needed ....

auk% diff Rd.sty /ext/R/R-patched/share/texmf/
179c179
<     \Rd at code}}
---
>     \@noligs\Rd at code}}

fixes this.

>
>
> >
> >
> > > -- Chris Wild
> > >
> > > >Putting a space between the commas works.  I think it's ugly, though.
> > > >Does anyone have a better idea?
> > > >
> > > >Jason
> > > >--
> > > >Indigo Industrial Controls Ltd.
> > > >64-21-343-545
> > > >jasont at indigoindustrial.co.nz
> > >
> > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> > > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> > > Send "info", "help", or "[un]subscribe"
> > > (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> > > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> > >
> >
> > --
> > Brian D. Ripley,                  ripley at stats.ox.ac.uk
> > Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> > University of Oxford,             Tel:  +44 1865 272861 (self)
> > 1 South Parks Road,                     +44 1865 272860 (secr)
> > Oxford OX1 3TG, UK                Fax:  +44 1865 272595
> >
> > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> > Send "info", "help", or "[un]subscribe"
> > (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> >
>
> --
> Brian D. Ripley,                  ripley at stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> University of Oxford,             Tel:  +44 1865 272861 (self)
> 1 South Parks Road,                     +44 1865 272860 (secr)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list