From xieyihui at gmail.com  Sat Apr 10 05:25:21 2010
From: xieyihui at gmail.com (Yihui Xie)
Date: Fri, 9 Apr 2010 22:25:21 -0500
Subject: [Rd] Line breaks in mathematical formulae in Rd files
In-Reply-To: <h2xf08455591004090705i5bb31864mf19cfd4192362898@mail.gmail.com>
References: <h2xf08455591004090705i5bb31864mf19cfd4192362898@mail.gmail.com>
Message-ID: <t2m89b6b8c91004092025l6eedb85dn8a389db51ee27c92@mail.gmail.com>

Hi Dan,

With R 2.10.1 and MikTeX 2.8, the method I proposed still works for
me. You don't need to escape \ there: \\ is the right line break.

For the time being, I guess you have to write more than one \deqn{}'s
if you have a multiple-line equation.

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-6609 Web: http://yihui.name
Department of Statistics, Iowa State University
3211 Snedecor Hall, Ames, IA



On Fri, Apr 9, 2010 at 9:05 AM, Daniel Elliott <danelliottster at gmail.com> wrote:
> Hello,
>
> I would like to implement the feature request described here:
> https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=13287. ?I think
> this is a very worthwhile feature.
>
> However, I need just a little push in the right direction. ?When I
> added either a new command or change the old one to use eqnarray as
> proposed, the "\\" newline characters were not properly passed to
> latex - even when I escaped them both with something like "\\\\".
>
> What is happening behind the scenes that I am not understanding that
> is disallowing me from making this small change so I can use "\\" with
> an equation array?
>
> Thank you, very much, for any assistance.
>
> - dan
>



[Rd] Line breaks in mathematical formulae in Rd files
Yihui Xie