Skip to content

documentation and \sloppy (PR#976)

2 messages · Paulo Justiniano Ribeiro Jr, Brian Ripley

#
Hi
When preparing documentation using Rd2dvi sometimes we get "overflow" on
some lines. The consequence is that in the documentation there are some
lines where words are not hyphenated or moved. The final document has some
lines with more columns than the rest of the text. 
This happens when we use \code{} (which probably calls the \tt in latex).

I've been checking the documentation (.pdf files) of a few packages  and
this seens to occours all over.

One possible way to correct this is  by introducing the command
\sloppy
on the header of the automatically generated .tex files. It seens to work
fine in some tests I've run.

I'm wondering whether the "\sloppy" can be incorporated to the Rd2dvi
command. 

Cheers
P.J.


Paulo Justiniano Ribeiro Jr
Dept Maths & Stats  -  Fylde College
Lancaster University
Lancaster LA1 4YF   -  U.K.

e-mail: Paulo.Ribeiro@est.ufpr.br
http://www.maths.lancs.ac.uk/~ribeiro


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Sun, 10 Jun 2001 p.ribeiro@lancaster.ac.uk wrote:

            
Yes it can, using the Rd.cfg mechanism.  If there is a file Rd.cfg in your
TEXINPUTS path, it gets read at the bottom of Rd.sty.  This should allow
you to change the TeX penalties (which is what \sloppy does AFAIR).

I think Rd2dvi is intended only to be a simple mechanism to produce
a reasonable printed manual, but the Rd.cfg mechanism allows some
customization.  My view is that a few overlaps into the right margin is
less distracting that the `loose' typesetting that \sloppy encourages.

Brian