ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* raggedright
@ 1999-04-24  7:44 Hans Hagen
  1999-04-25  9:34 ` raggedright Taco Hoekwater
  0 siblings, 1 reply; 2+ messages in thread
From: Hans Hagen @ 1999-04-24  7:44 UTC (permalink / raw)


Hi, 

Currently the low level \raggedright macro is defined as: 

\def\raggedright%
  {\setraggedness\rightraggedness

\setraggedskips{0em}{\rightraggedness}{.3333em}{.5em}{0em}{\parindent}}

But some time ago Taco suggested the better alternative: 

\def\raggedright%
  {\setraggedness\rightraggedness

\setraggedskips{0em}{\rightraggedness}{.3333em}{.5em}{1fil}{\parindent}}

Unless one expects big problems context from now on will use this second
one. 

I'm not sure yet about adapting the other ones, but those seem ok. 

The raggedness' depends on the bodyfontsize: 

\def\leftraggedness   {2\bodyfontsize}
\def\rightraggedness  {2\bodyfontsize}
\def\middleraggedness {6\bodyfontsize}

And setting the raggedness involves some safeguards for unwanted side
effects. Changing the 2 into 4 gives a slightly different typeset
paragraph. 

Some day I will implement a mechanism for paragraph break and page break
strategies, but it's not that easy to find the balance between user
friendliness and low level tex programming. The current values are based
on years of testing and have been unchanged for quite some years. In
this respect the change in \raggedright is unique. For thos who want to
retain the older settings, adding the old definition to the local
cont-sys.tex file will do so. Unless Taco strongly objects, from now on
the new definition will apply, 

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: raggedright
  1999-04-24  7:44 raggedright Hans Hagen
@ 1999-04-25  9:34 ` Taco Hoekwater
  0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 1999-04-25  9:34 UTC (permalink / raw)
  Cc: NTG-CONTEXT

>>>>> "HH" == Hans Hagen <pragma@wxs.nl> writes:

 HH> I'm not sure yet about adapting the other ones, but those seem
 HH> ok.

I thought so too. (The definition of \raggedright gave full last
paragraph lines because \parfillskip == 0pt. The result was not bad
when the paragraph text is large, but very ugly for small paragraphs).

Taco


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-04-25  9:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-24  7:44 raggedright Hans Hagen
1999-04-25  9:34 ` raggedright Taco Hoekwater

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).