Bug with \startnarrow?
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
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
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 ___________________________________________________________________________________
-----Ursprüngliche Nachricht----- Von: peter.hopcroft@icloud.com
Gesendet: Donnerstag, 23. Februar 2023 21:15 An: mailing list for ConTeXt users Cc: Maier, Denis Christian (UB) 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
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
________________________________________________________________ ______
_____________
participants (2)
-
denis.maier@unibe.ch
-
peter.hopcroft@icloud.com