1 Comment
Sorry, but the solution above is NOT correct! And currently it's not allowed to insert line breaks, as the LaTeX style file "Rd.sty" defines the command "deqn" as:
newcommand{deqn}[2]{[#1]}
It means equations are put in the "displaymath" environment, so it's impossible to break a line under such conditions as LaTeX does not allow line breaks in the "displaymath" environment. The only solution, I think, is to use "eqnarray" instead, which allows multiple lines of math formulae. To suppress the numbering, you need to use "eqnarray*":
newcommand{deqn}[2]{begin{eqnarray*}#1end{eqnarray*}}
Originally posted on 2009-02-25 11:58:20
Guest *Alex Hayes* @ 2019-05-08 23:34:47 originally posted:
Any chance you've found a more pleasant solution in the last ten years or is this still the best solution you know about?
I don't think I have ever written another math expression in any of my Rd files in the past ten years :) So I don't know. If I were to document anything related to math, I'd prefer doing it in a vignette instead.
Originally posted on 2019-05-09 02:45:53
Sign in to join the discussion
Sign in with GitHub