![](https://secure.gravatar.com/avatar/575d6aa71e3af974e1f09775e03945df.jpg?s=120&d=mm&r=g)
Hi, getting unexpected o/p with the following (both locally and on http://live.contextgarden.net/: It took me a while to come across the second incantation to get my desired o/p but I would be obliged if anyone would care to comment on why the first does not work as (I) expected. I would expect both addresses to be indented the same amount but only the first line of the first address appears indented as expected: \starttext % define skip before paragraphs (default is no skip) \setupwhitespace[3.5mm] %\setupwhitespace[big] \hskip 2cm 9/99 Addr Line 1 Street\hfil\break \hskip 2cm Addr Line 2\hfil\break \hskip 2cm City\hfil\break \startnarrower[2*left] \startalignment[right] 2/99 addr line 1\hfil\break addr line 2\hfil\break addr line 3 \stopalignment \stopnarrower \stoptext
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 18-2-2011 12:18, Richard Lennox wrote:
Hi,
getting unexpected o/p with the following (both locally and on http://live.contextgarden.net/:
It took me a while to come across the second incantation to get my desired o/p but I would be obliged if anyone would care to comment on why the first does not work as (I) expected.
I would expect both addresses to be indented the same amount but only the first line of the first address appears indented as expected:
\starttext
% define skip before paragraphs (default is no skip) \setupwhitespace[3.5mm] %\setupwhitespace[big]
\hskip 2cm 9/99 Addr Line 1 Street\hfil\break \hskip 2cm Addr Line 2\hfil\break \hskip 2cm City\hfil\break
\startnarrower[2*left] \startalignment[right] 2/99 addr line 1\hfil\break addr line 2\hfil\break addr line 3 \stopalignment \stopnarrower
\stoptext
use \crlf ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/575d6aa71e3af974e1f09775e03945df.jpg?s=120&d=mm&r=g)
Hi Hans,
I was trying to keep it simple. I omitted to mention that I also tried \crlf as well, with the same result as \hfill\break (i.e. indentation not as expected).
--- On Fri, 18/2/11, Hans Hagen
From: Hans Hagen
Subject: Re: [NTG-context] Unexpected indentation To: "mailing list for ConTeXt users" Cc: "Richard Lennox" Date: Friday, 18 February, 2011, 4:35 On 18-2-2011 12:18, Richard Lennox wrote: Hi,
getting unexpected o/p with the following (both locally and on http://live.contextgarden.net/:
It took me a while to come across the second incantation to get my desired o/p but I would be obliged if anyone would care to comment on why the first does not work as (I) expected.
I would expect both addresses to be indented the same amount but only the first line of the first address appears indented as expected:
\starttext
% define skip before paragraphs (default is no skip) \setupwhitespace[3.5mm] %\setupwhitespace[big]
\hskip 2cm 9/99 Addr Line 1 Street\hfil\break \hskip 2cm Addr Line 2\hfil\break \hskip 2cm City\hfil\break
\startnarrower[2*left] \startalignment[right] 2/99 addr line 1\hfil\break addr line 2\hfil\break addr line 3 \stopalignment \stopnarrower
\stoptext
use \crlf
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/575d6aa71e3af974e1f09775e03945df.jpg?s=120&d=mm&r=g)
I am trying to understand how context is working. Would anyone like to comment on why the following does not work as expected? "hfil\break" and "\crlf" do not indent after the first line (but "\startnarrower" works): \starttext \setupwhitespace[3.5mm] \hskip 2cm 9/99 Addr Line 1 Street\hfil\break \hskip 2cm Addr Line 2\hfil\break \hskip 2cm City\hfil\break \hskip 2cm 9/99 Addr Line 1 Street\crlf \hskip 2cm Addr Line 2\crlf \hskip 2cm City\crlf \startnarrower[2*left] \startalignment[right] 2/99 addr line 1\hfil\break addr line 2\hfil\break addr City \stopalignment \stopnarrower \stoptext [snip]
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 21.02.2011 um 11:07 schrieb Richard Lennox:
I am trying to understand how context is working.
Would anyone like to comment on why the following does not work as expected? "hfil\break" and "\crlf" do not indent after the first line (but "\startnarrower" works):
The narrower environment use \leftskip and \rightskip which affects all lines.
\hskip 2cm 9/99 Addr Line 1 Street\hfil\break \hskip 2cm Addr Line 2\hfil\break \hskip 2cm City\hfil\break
\definehspace[address][2cm] \starttext \startpacked \hspace[address]...\par \hspace[address]...\par \stoppacked \stoptext Wolfgang
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 18.02.2011 um 12:18 schrieb Richard Lennox:
Hi,
getting unexpected o/p with the following (both locally and on http://live.contextgarden.net/:
It took me a while to come across the second incantation to get my desired o/p but I would be obliged if anyone would care to comment on why the first does not work as (I) expected.
I would expect both addresses to be indented the same amount but only the first line of the first address appears indented as expected:
\startnarrower[2*left] \startalignment[right] 2/99 addr line 1\hfil\break addr line 2\hfil\break addr line 3 \stopalignment \stopnarrower
\startnarrower[2*left] \startlines 2/99 addr line 1 addr line 2 addr line 3 \stoplines \stopnarrower Wolfgang
participants (3)
-
Hans Hagen
-
Richard Lennox
-
Wolfgang Schuster