At 11:37 AM 2/6/2003 +0800, Guy Worthington wrote:

Henning Hraban Ramm wrote:

> In my example the line at the right is the right border of the
> \textwidth.

>                 |
> one line        |
> a very long line|
> another line    |
>                 |

Still alot of manual intervention but ... you could switch to two
column mode, calculate your longest line in your address and use that
as the width of your second column.

%-- tryAddress.tex --------------------------------------------
\starttext

\setbox\scratchbox\hbox{ADE Ridderstraat 27}% Longest line in address
\defineparagraphs[LongIndentation][n=2]
\setupparagraphs[LongIndentation][2][width=\wd\scratchbox]

\startLongIndentation
  \LongIndentation% Start second column
    \startlines
      PRAGMA
      ADE Ridderstraat 27
      8061 GH Hasselt NL
      +31 (0)38 477 53 69
    \stoplines
\stopLongIndentation

\showframe

\stoptext
let's end this suffering:

\startalignment[left]
\noindent\framed
[width=fit,align=right]
{PRAGMA\\ADE Ridderstraat 27\\
8061 GH Hasselt NL\\+31 (0)38 477 53 69}
\stopalignment

so, framed can give back a tight box; turn off the frame, set the offset to overlay and ...
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to