ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* indenting in enumerations in mkiv
@ 2014-07-01 13:22 Sytse
  2014-07-02 11:48 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Sytse @ 2014-07-01 13:22 UTC (permalink / raw)
  To: ntg-context


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

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

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

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

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

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

* Re: indenting in enumerations in mkiv
  2014-07-01 13:22 indenting in enumerations in mkiv Sytse
@ 2014-07-02 11:48 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2014-07-02 11:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen


Am 01.07.2014 um 15:22 schrieb Sytse <Sytse.Knypstra@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
___________________________________________________________________________________


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

end of thread, other threads:[~2014-07-02 11:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-01 13:22 indenting in enumerations in mkiv Sytse
2014-07-02 11:48 ` Wolfgang Schuster

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