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
Line breaks in mathematical formulae in Rd files
3 messages · Daniel Elliott, Yihui Xie
Ok, this link to the feature request works: https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=13287
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
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