ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* confirmed bug with \setuplist[alternative=d, margin=2em]
@ 2012-03-08 22:28 Pablo Rodríguez
  0 siblings, 0 replies; only message in thread
From: Pablo Rodríguez @ 2012-03-08 22:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello Hans,

the following code shows a bug with latest beta (first item on content
list is indented, but the second isn't):

\setuplist[chapter][alternative=d,margin=2em]
\starttext
\completecontent
\part{Part}
\chapter{Chapter}
a
\part{Part}
\chapter{Chapter}
b
\stoptext

Wolfgang kindly suggested this fix (that works also with latest beta):

strc-lst.mkvi:

\def\strc_lists_place_indeed#tag#list#settings%
  {\begingroup
   \edef\currentlist{#tag}%
   \setupcurrentlist[#settings]%
   \the\everystructurelist
 % \doif{\listparameter\c!coupling}\v!on{\startlistreferences{#tag}}%
   \doplacestructurelist % maybe inline
     {#list}%
     {\listparameter\c!criterium}%
     {\listparameter\c!number}%
     {\listparameter\c!extras}%
     {\listparameter\c!order}%
 % \stoplistreferences
+  \par
   \endgroup
   \strc_lists_set_mode}

I wonder whether it could be included in latest beta.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] only message in thread

only message in thread, other threads:[~2012-03-08 22:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-08 22:28 confirmed bug with \setuplist[alternative=d, margin=2em] Pablo Rodríguez

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