Dear R-helpers, I have an Rd file with a section: \details{ The model is:\cr \eqn{y | \lambda ~ Binomial(n, \lambda)},\cr [snip] } I would like the equation line to be indented, with a \tab character for example. How can I do that ? Moreover, the panel of greek letters available in HTML files generated from Rd files looks very limited (e.g., \eqn{\phi} produces phi, not the corresponding greek letter). Is there a way to overcome this in HTML files ? Thanks and best regards, Renaud System details: Win XP R version: _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor 0.1 year 2004 month 11 day 15 language R -- Dr Renaud Lancelot, v?t?rinaire C/0 Ambassade de France - SCAC BP 834 Antananarivo 101 - Madagascar e-mail: renaud.lancelot at cirad.fr tel.: +261 32 40 165 53 (cell) +261 20 22 665 36 ext. 225 (work) +261 20 22 494 37 (home)
On Mon, 28 Feb 2005, Renaud Lancelot wrote:> Dear R-helpers, > > I have an Rd file with a section: > > \details{ > The model is:\cr > \eqn{y | \lambda ~ Binomial(n, \lambda)},\cr > [snip] > } > > I would like the equation line to be indented, with a \tab character for > example. How can I do that ?Well, use markup that allows \tab: if you want a table, use \tabular. But if you find yourself doing this, you are not in the spirit of layout languages, and Rd is a layout language.> Moreover, the panel of greek letters available in HTML files generated from > Rd files looks very limited (e.g., \eqn{\phi} produces phi, not the > corresponding greek letter). Is there a way to overcome this in HTML files ?What HTML 4.0 _guarantees_ a browser can show is very limited, and does not include phi (at least according to my HTML 4.0 book). So, not in strict HTML. -- 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 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Prof Brian Ripley a ?crit :> On Mon, 28 Feb 2005, Renaud Lancelot wrote: > >> Dear R-helpers, >> >> I have an Rd file with a section: >> >> \details{ >> The model is:\cr >> \eqn{y | \lambda ~ Binomial(n, \lambda)},\cr >> [snip] >> } >> >> I would like the equation line to be indented, with a \tab character >> for example. How can I do that ? > > > Well, use markup that allows \tab: if you want a table, use \tabular. > But if you find yourself doing this, you are not in the spirit of layout > languages, and Rd is a layout language. > >> Moreover, the panel of greek letters available in HTML files generated >> from Rd files looks very limited (e.g., \eqn{\phi} produces phi, not >> the corresponding greek letter). Is there a way to overcome this in >> HTML files ? > > > What HTML 4.0 _guarantees_ a browser can show is very limited, and does > not include phi (at least according to my HTML 4.0 book). So, not in > strict HTML.Thanks for your reply. I got a nice result (in text and HTML) with: \details{ The model is:\cr \tabular{lll}{ \tab ? \tab \eqn{y | \lambda ~ Binomial(n, \lambda)}, with \eqn{\lambda ~ Beta(S1, S2)},\cr [snip] } [snip] } What would be a solution "in the spirit of layout languages" ? Best, Renaud -- Dr Renaud Lancelot, v?t?rinaire C/0 Ambassade de France - SCAC BP 834 Antananarivo 101 - Madagascar e-mail: renaud.lancelot at cirad.fr tel.: +261 32 40 165 53 (cell) +261 20 22 665 36 ext. 225 (work) +261 20 22 494 37 (home)