[NTG-context] itemize / text indent

2009-11-15 Thread Wolfgang Schuster


1.tex
Description: Binary data

Hi,

there had been a question on the list from Vyatcheslav Yatskovsky how to get 
indented text
inside of itemize and after i spent a few hours on this problem the answer is 
it's not possible.

His example (simplified from me) was:

\setupindenting[yes,big]

\starttext

text text text text text text text text text text text text text text text text 
text text text text text text text text

\startitemize[text][indenting={yes,first,big}]

\item text text text text text text text text text text text text text text 
text text text text text text text text text text

\item text text text text text text text text text text text text text text 
text text text text text text text text text text

\item text text text text text text text text text text text text text text 
text text text text text text text text text text

\stopitemize

text text text text text text text text text text text text text text text text 
text text text text text text text text

\stoptext

and as you can see the second and all following items are indented but this has 
nothing to do with
indenting and is a side effect of the 'text' option which is meant for inline 
items where no blank
line is expected between the '\item'’s because the should be all in the same 
paragraph as in:

\setupindenting[yes,big]

\starttext

text text text text text text text text text text text text text text text text 
text text text text text text text text
\startitemize[text]
\item text text text text text text text text text text text text text text 
text text text text text text text text text text
\item text text text text text text text text text text text text text text 
text text text text text text text text text text
\item text text text text text text text text text text text text text text 
text text text text text text text text text text
\stopitemize
text text text text text text text text text text text text text text text text 
text text text text text text text text

\stoptext

Even tough the 'text' option is wrong here (because 'joinedup' gives the same 
output but without indentation) we should
take care of this and insert the distance between the items only in horizontal 
mode.

To do so change in the definition for \complexdoitemgroupitem the following 
line:

   \else
 \ifconditional\textlistitem % was bugged: \inlinelistitem
   
\removeunwantedspaces\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax
 % new per 2006/10/20
 \else
   \iteminbetweencommand
 \fi
   \fi

to

   \else
 \ifconditional\textlistitem % was bugged: \inlinelistitem
   \ifhmode
 
\removeunwantedspaces\hskip\emwidth\!!plus\interwordstretch\!!minus\interwordshrink\relax
 % new per 2006/10/20
   \fi
 \else
   \iteminbetweencommand
 \fi
   \fi

and while we already change this make the space between the items changeable, 
e.g. with (old feature request in the list archive)

   \else
 \ifconditional\textlistitem % was bugged: \inlinelistitem
   \ifhmode
 \processaction
   [\getitemparameter\currentitemlevel\c!space]
   [   \v!none=\let\textitemdistance\zeropoint,

\s!unknown=\assignvalue\commalistelement\textitemdistance{.5\interwordspace\!!plus.5\emwidth}{\interwordspace\!!plus\emwidth}{\emwidth\!!plus\interwordstretch\!!minus\interwordshrink}]%
 \removeunwantedspaces\hskip\textitemdistance\relax
   \fi % new per 2006/10/20
 \else
   \iteminbetweencommand
 \fi
   \fi


The next point is to enable the indenting parameter which isn't functioning at 
all because at the start of each
item command (\dolistitem) a \noindent command prevents it from working. One 
way to fix is to replace \noitem
with \checkindentation\ifindentation\indent\else\noindent\fi and 
\indentationfalse to startitemgroup.

When these changes are done one could indent the text in itemize with:

\setupindenting[yes,big]

\starttext

text text text text text text text text text text text text text text text text 
text text text text text text text text

\startitemize[joinedup,intext][indenting={yes,first,big}]

\item text text text text text text text text text text text text text text 
text text text text text text text text text text

\item text text text text text text text text text text text text text text 
text text text text text text text text text text

\stopitemize

text text text text text text text text text text text text text text text text 
text text text text text text text text

\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net

Re: [NTG-context] itemize / text indent

2009-11-15 Thread Vyatcheslav Yatskovsky

Hello Wolfgang

there had been a question on the list from Vyatcheslav Yatskovsky how to get 
indented text
inside of itemize

Thank you very much! It works like charm now.

1) Will this fix be applied to core files?

2) How can I control the distance between the mark and item text? The 
space seems too big.


Thankfully,
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
___


Re: [NTG-context] itemize / text indent

2009-11-15 Thread Wolfgang Schuster

Am 15.11.2009 um 15:27 schrieb Vyatcheslav Yatskovsky:

 2) How can I control the distance between the mark and item text? The space 
 seems too big.

Use the 'width' and 'distance' keys.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemize / text indent

2009-11-15 Thread Vyatcheslav Yatskovsky

On 15.11.2009 17:08, ntg-context-requ...@ntg.nl wrote:

2) How can I control the distance between the mark and item text? The space 
seems too big.
 

Use the 'width' and 'distance' keys.

Wolfgang


   

Thank you! Actually, n*serried works excellent, as in my final setup:

\setupitemize[each][1,joinedup,intext,1*serried][indenting={yes,first,big}]


Regards,
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
___