[R] indentation(?) in Rd file, section "details"

Ernesto Jardim ernesto at ipimar.pt
Thu May 27 18:38:33 CEST 2004


On Thu, 2004-05-27 at 17:18, Martin Maechler wrote:
> >>>>> "Ernesto" == Ernesto Jardim <ernesto at ipimar.pt>
> >>>>>     on Thu, 27 May 2004 15:55:51 +0100 writes:
> 
>     Ernesto> Hi, I want to describe an algoritm in the details
>     Ernesto> section of an Rd file and I'm having trouble to
>     Ernesto> ident the different text rows. Can someone tell me
>     Ernesto> how I can ident text in Rd files ?
> 
> Do you mean "indent(ation)" (2nd letter = 'n') ?
> If yes,
> you might consider using
>   \describe{ ........ } or \itemize{ .... }
> 
> You can find many examples in R's sources, or directly looking inside
> the (large) file
> 
>     system.file("man/base.Rd")
> 
> look for '\name{DateTimeClasses}' and its \details{..} section
> 
> ------
> 
> Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
> Seminar fuer Statistik, ETH-Zentrum  LEO C16	Leonhardstr. 27
> ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
> phone: x-41-1-632-3408		fax: ...-1228			<><

Hi,

I want to do something like

step1
loop1
	step2
	loop2
		step3
	next2
next1
step4
step5 


I thought I could use \hspace{1cm} ...

The environments only use 1 level of identation, I think. I may be able
to do it with a table but I'd like to know if there's a better way.

Regards

EJ




More information about the R-help mailing list