ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bug with \startnarrow?
@ 2023-02-23 10:14 Denis Maier via ntg-context
  2023-02-23 20:14 ` peter.hopcroft--- via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Denis Maier via ntg-context @ 2023-02-23 10:14 UTC (permalink / raw)
  To: ntg-context; +Cc: denis.maier


[-- Attachment #1.1: Type: text/plain, Size: 807 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 3652 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________

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

* Re: Bug with \startnarrow?
  2023-02-23 10:14 Bug with \startnarrow? Denis Maier via ntg-context
@ 2023-02-23 20:14 ` peter.hopcroft--- via ntg-context
  2023-03-03 23:34   ` Denis Maier via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: peter.hopcroft--- via ntg-context @ 2023-02-23 20:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: peter.hopcroft

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@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@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
> ___________________________________________________________________________________


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________

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

* Re: Bug with \startnarrow?
  2023-02-23 20:14 ` peter.hopcroft--- via ntg-context
@ 2023-03-03 23:34   ` Denis Maier via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Denis Maier via ntg-context @ 2023-03-03 23:34 UTC (permalink / raw)
  To: peter.hopcroft, ntg-context; +Cc: denis.maier

> -----Ursprüngliche Nachricht-----
> Von: peter.hopcroft@icloud.com <peter.hopcroft@icloud.com>
> Gesendet: Donnerstag, 23. Februar 2023 21:15
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Cc: Maier, Denis Christian (UB) <denis.maier@unibe.ch>
> Betreff: Re: [NTG-context] Bug with \startnarrow?
> 
> 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[halfli
> ne]}][left, right] narrower text \stopnarrow some text after \stoptext

Thanks, good to know. I'll update the documentation.

Best,
Denis
> 
> > On 23/02/2023, at 11:14 PM, Denis Maier via ntg-context <ntg-
> context@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@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
> >
> ________________________________________________________________
> ______
> > _____________
> 

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________

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

end of thread, other threads:[~2023-03-03 23:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-23 10:14 Bug with \startnarrow? Denis Maier via ntg-context
2023-02-23 20:14 ` peter.hopcroft--- via ntg-context
2023-03-03 23:34   ` Denis Maier via ntg-context

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).