[NTG-context] indenting in enumerations in mkiv

2014-07-02 Thread Sytse
Within the enumeration environment I want the first paragraph not to be 
indented, whereas the second and following paragraphs should start with 
an indent.


The example below works fine in mkii, but I would like to use mkiv in 
which the first line is also indented.


Sytse
--
\defineenumeration[example][text=Example,indenting={yes,medium,next}]
\starttext
contextversion: 2013.05.28 00:36 


command: context proef.tex

\startexample 
This first line is indented, but shouldn't. Runs ok under mkii.


This second line should be indented and is ok under both mkii and mkiv.
\stopexample

\stoptext
--
___
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] indenting in enumerations in mkiv

2014-07-02 Thread Wolfgang Schuster

Am 01.07.2014 um 15:22 schrieb Sytse sytse.knyps...@home.nl:

 Within the enumeration environment I want the first paragraph not to be 
 indented, whereas the second and following paragraphs should start with an 
 indent.
 
 The example below works fine in mkii, but I would like to use mkiv in which 
 the first line is also indented.
 
 Sytse
 --
 \defineenumeration[example][text=Example,indenting={yes,medium,next}]
 \starttext
 contextversion: 2013.05.28 00:36 
 
 command: context proef.tex
 
 \startexample 
 This first line is indented, but shouldn't. Runs ok under mkii.
 
 This second line should be indented and is ok under both mkii and mkiv.
 \stopexample
 
 \stoptext

This is a bug in the enumeration code where the indent setup is used before the 
title/head is placed
which is then handled as first paragraph.

To fix this the \indenting command has to be moved after the \directsetup line 
in strc-con.mkvi:

\unexpanded\setvalue{\??constructionstarthandler\v!construction}% this will be 
redone (reorganized) .. too much boxing
  {\dostarttagged\t!construction\currentconstruction
   ...
   \edef\p_strc_constructions_indenting{\constructionparameter\c!indenting}%
   \ifx\p_strc_constructions_indenting\empty \else
 \indenting[\p_strc_constructions_indenting]% \use...
   \fi
   ...
   \directsetup\p_strc_constructions_renderingsetup\relax
   %
   \dostoptagged % tag
   \dostarttagged\t!constructioncontent\empty
   \ignorespaces} % args not needed

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
___