Re: [NTG-context] itemize margins,

2021-06-01 Thread denis.maier
Von: ntg-context  Im Auftrag von Wolfgang Schuster
Gesendet: Dienstag, 1. Juni 2021 11:05
An: mailing list for ConTeXt users 
Betreff: Re: [NTG-context] itemize margins,

denis.ma...@ub.unibe.ch<mailto:denis.ma...@ub.unibe.ch> schrieb am 01.06.2021 
um 10:46:

Hi,

in the following example the second line of the quote is not lined up with the 
first line.

=
\starttext

\startitemize[n]
[
%right=),
%stopper=,
%width=2em,
%alternative=fit,
%alternative=left,
%alternative=intext,
%distance=1em,
%leftmargin=1em,
%itemalign=flushleft,
]

\startitem
\setupindenting[no]
\input knuth
\stopitem
\stoptext
==

I've played with different options, but I couldn't get the indents and margins 
right. What am I missing ? Any hints ?

You are adding a extra space in the first line at the end of the 
\setupindenting line.
Ah, of course. Thanks!


To get rid of the space add % after the setup (i.e. \setupindenting[no]%) or 
even better use the indenting key with \startitemize or \setupitemize (i.e. 
\startitemize[indneting=no]).


\startitemize[indenting=no] works perfectly.

Denis

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemize margins,

2021-06-01 Thread Wolfgang Schuster

denis.ma...@ub.unibe.ch schrieb am 01.06.2021 um 10:46:


Hi,

in the following example the second line of the quote is not lined up 
with the first line.


=

\starttext

\startitemize[n]

[

%right=),

%stopper=,

%width=2em,

%alternative=fit,

%alternative=left,

%alternative=intext,

%distance=1em,

%leftmargin=1em,

%itemalign=flushleft,

]

\startitem

\setupindenting[no]

\input knuth

\stopitem

\stoptext

==

I’ve played with different options, but I couldn’t get the indents and 
margins right. What am I missing ? Any hints ?




You are adding a extra space in the first line at the end of the 
\setupindenting line.


To get rid of the space add % after the setup (i.e. 
\setupindenting[no]%) or even better use the indenting key with 
\startitemize or \setupitemize (i.e. \startitemize[indneting=no]).


Wolfgang

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] itemize margins,

2021-06-01 Thread denis.maier
Hi,

in the following example the second line of the quote is not lined up with the 
first line.

=
\starttext

\startitemize[n]
[
%right=),
%stopper=,
%width=2em,
%alternative=fit,
%alternative=left,
%alternative=intext,
%distance=1em,
%leftmargin=1em,
%itemalign=flushleft,
]

\startitem
\setupindenting[no]
\input knuth
\stopitem
\stoptext
==

I've played with different options, but I couldn't get the indents and margins 
right. What am I missing ? Any hints ?

Thanks for you help,
Denis
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize, margins and nowhite

2010-06-14 Thread Taco Hoekwater

Vyatcheslav Yatskovsky wrote:

Hello,

Strange, but if I specify margins for itemize, then nowhite losts its 
effect, and I need to specify it again in every itemize group.


\setupitemize[1,leftmargin=1cm, rightmargin=1cm, nowhite]


Don't mix keywords and key-value pairs.

  \setupitemize[1,nowhite]
  \setupitemize[leftmargin=1cm, rightmargin=1cm]

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize, margins and nowhite

2010-06-14 Thread Alan BRASLAU
On Monday 14 June 2010 08:32:08 Taco Hoekwater wrote:
 Vyatcheslav Yatskovsky wrote:
  Hello,
  
  Strange, but if I specify margins for itemize, then nowhite losts its
  effect, and I need to specify it again in every itemize group.
  
  \setupitemize[1,leftmargin=1cm, rightmargin=1cm, nowhite]
 
 Don't mix keywords and key-value pairs.
 
\setupitemize[1,nowhite]
\setupitemize[leftmargin=1cm, rightmargin=1cm]
 

This needs to be stressed in the documentation.
Is this a parsing restriction, or is this a syntax design goal?

This also means that it is an error to attempt:
\startitemize[1,nowhite,leftmargin=1cm,rightmargin=1cm]
\item ...
\stopitemize

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize, margins and nowhite

2010-06-14 Thread Taco Hoekwater

Alan BRASLAU wrote:

On Monday 14 June 2010 08:32:08 Taco Hoekwater wrote:

Vyatcheslav Yatskovsky wrote:

Hello,

Strange, but if I specify margins for itemize, then nowhite losts its
effect, and I need to specify it again in every itemize group.

\setupitemize[1,leftmargin=1cm, rightmargin=1cm, nowhite]

Don't mix keywords and key-value pairs.

   \setupitemize[1,nowhite]
   \setupitemize[leftmargin=1cm, rightmargin=1cm]



This needs to be stressed in the documentation.
Is this a parsing restriction, or is this a syntax design goal?


It is a parsing restriction, but keeping the processing speed up is
important enough that it could also be classified as an unavoidable
side-effect of a design goal.

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Itemize, margins and nowhite

2010-06-13 Thread Vyatcheslav Yatskovsky

Hello,

Strange, but if I specify margins for itemize, then nowhite losts its 
effect, and I need to specify it again in every itemize group.


\setupitemize[1,leftmargin=1cm, rightmargin=1cm, nowhite]
\startitemize[nowhite] %duplicate, but does not work without it
\item a
\item b
\stopitemize

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___