[NTG-context] Bug with \startnarrow?

peter.hopcroft at icloud.com peter.hopcroft at icloud.com
Thu Feb 23 21:14:57 CET 2023


It's the documentation that has the bug. With \startnarrow, you need two sets of square brackets, 1 for the \setupnarrower data and 1 for the \startnarrower data. Like this:

\starttext
Some text before
\startnarrow[left=5cm,right=1cm,before={\blank[2*line]},after={\blank[halfline]}][left, right]
narrower text
\stopnarrow
some text after
\stoptext

> On 23/02/2023, at 11:14 PM, Denis Maier via ntg-context <ntg-context at ntg.nl> wrote:
> 
> Hi,
>  While doing some more tests with my example from yesterday (tables in \startnarrow), I’ve realized that the example from the wiki doesn’t seem to quite work as expected:
>  %%%%%%%%%%%%%%%%%%
> \starttext
> Some text before
> \startnarrow[left=2cm,right=1cm,before={\blank[2*line]},after={\blank[halfline]}]
> narrower text
> \stopnarrow
> some text after
> \stoptext
> %%%%%%%%%%%%%%%%%%
>  Already here, the extra margins on both sides seem to be equal. Changing the size of the left extra margin has no effect at all.
>  %%%%%%%%%%%%%%%%%%
> \starttext
> \startnarrow[left=10cm,right=2cm]
> \input ward
> \stopnarrow
>  but:
>  \setupnarrower[left=5cm, right=2cm]
> \startnarrower[left,right]
> \input ward
> \stopnarrower
> \stoptext
> %%%%%%%%%%%%%%%%%%
>  Is this a bug or intended behaviour ?
>  Best,
> Denis
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : https://contextgarden.net
> ___________________________________________________________________________________




More information about the ntg-context mailing list