ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: Aditya Mahajan via ntg-context <ntg-context@ntg.nl>
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: Re: [NTG-context] \setupitemize[indentnext=auto] broken?
Date: Mon, 17 Apr 2023 19:04:17 +0200	[thread overview]
Message-ID: <18432049-ceec-d0f7-0d32-0522bbf618b3@freedom.nl> (raw)
In-Reply-To: <s05q51n9-80sq-n2n7-q307-73342q74s247@hzvpu.rqh>

On 4/17/2023 7:06 AM, Aditya Mahajan via ntg-context wrote:
> On Sun, 16 Apr 2023, Aditya Mahajan via ntg-context wrote:
> 
>> On Sat, 15 Apr 2023, Jim via ntg-context wrote:
>>
>>> %------------------------------------------------------------------------
>>>
>>> \setupindenting[medium,yes]
>>> \setupitemize[indentnext=auto]
>>>
>>>    \startitemize
>>>      \item One
>>>    \stopitemize
>>>
>>>    This paragraph should be indented - due to the blank line after \type{\stopitemize}.
>>>
>>>    \startitemize
>>>      \item Two
>>>    \stopitemize
>>>    This paragraph should not be indented.
>>>
>>> %------------------------------------------------------------------------
>> Works in mkiv but appears to be a bug in lmtx. I haven't debugged what is going wrong.
> 
> `indentnext=auto` doesn't appear to work for any environment.
can you test with this patch

\permanent\protected\protected\def\spac_indentation_check_next_indentation
   {\global\enforced\let\dorechecknextindentation\relax
    \begingroup
    \autoparagraphmode\zerocount
 
\doifelsenextchar\par\endgroup{\endgroup\spac_indentation_variant_no}} % 
messy check as next is seldom \par




-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

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

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

  reply	other threads:[~2023-04-17 17:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-15 17:27 Jim via ntg-context
2023-04-15 17:49 ` [NTG-context] https://wiki.contextgarden.net/Enumerations problem Jim via ntg-context
2023-04-16 12:28 ` [NTG-context] \setupitemize[indentnext=auto] broken? Carlos via ntg-context
2023-04-16 16:24   ` Jim via ntg-context
2023-04-19 12:23     ` Carlos via ntg-context
2023-04-16 16:35 ` Aditya Mahajan via ntg-context
2023-04-16 17:23   ` Jim via ntg-context
2023-04-17  5:06   ` Aditya Mahajan via ntg-context
2023-04-17 17:04     ` Hans Hagen via ntg-context [this message]
2023-04-18 13:48       ` Aditya Mahajan via ntg-context
2023-04-18 14:56         ` Hans Hagen via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18432049-ceec-d0f7-0d32-0522bbf618b3@freedom.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@freedom.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).