Re: [Rd] problem with \eqn (PR#8322)

From: Ross Boylan <ross_at_biostat.ucsf.edu>
Date: Tue 22 Nov 2005 - 19:08:15 GMT

On Mon, 2005-11-21 at 10:27 +0000, Hin-Tak Leung wrote:
> Kurt Hornik wrote:
> <snipped>
> > Definitely a problem in Rdconv.
> >
> > E.g.,
> >
> > $ cat foo.Rd
> > \description{
> > \eqn{{A}}{B}
> > }
> > hornik@mithrandir:~/tmp$ R-d CMD Rdconv -t latex foo.Rd | grep eqn
> > \eqn{{A}}{A}{{B}
> >
> > shows what is going on.
>
> There is a "work-around" - putting extra spaces between the two braces:
>
> $ cat foo.Rd
> \description{
> \eqn{ {A} }{B}
> }
>
> $R CMD Rdconv -t latex foo.Rd
> \HeaderA{}{}{}
> \begin{Description}\relax
> \eqn{ {A} }{B}
> \end{Description}
>
>
> HT
Terrific! I can confirm that works for me and, in a way, a work-around is better than a fix. With the work-around, I can distribute the package without needing to require that people get some not-yet-release version of R that fixes the problem. I do hope the problem gets fixed though :)

By the way, I couldn't see how the perl code excerpted earlier paid any attention to {}. But perl is not my native tongue.

Ross



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Nov 23 21:35:45 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:34 GMT