From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Joseph <josephcanedo@gmail.com>
Subject: Re: RE : RE : Re: RE : Re: Issue with latest LMTX version 2020-05-25
Date: Thu, 11 Jun 2020 20:39:20 +0200 [thread overview]
Message-ID: <c4df1260-b77b-35b5-55ff-df12466312d3@gmail.com> (raw)
In-Reply-To: <0E08C532-F8B1-4492-B0AC-D1774CAEEC90@hxcore.ol>
Joseph schrieb am 11.06.2020 um 19:08:
> Thanks, sure I’ll document that. Just struggling to understand how to
> use it.
>
> I used \ifindentation as follows
>
> \def\ParIndent{\ifindentation\parindent\else 0pt\fi}
>
> But if I replace with
>
> \def\ParIndent{\doifelseindented{\parindent}{0pt}}
>
> It does not work.
You have to switch to horizontal mode to get the correct result.
\setupindenting[yes,medium]
\starttext
\doifelseindented{Yes}{No}
\dontleavehmode\doifelseindented{Yes}{No}
\the\ifzeropt\parindent
\zeropoint
\else
\parindent
\fi
\setupindenting[no]
\the\ifzeropt\parindent
\zeropoint
\else
\parindent
\fi
\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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2020-06-11 18:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-26 12:28 Joseph
2020-05-26 16:33 ` Hans Hagen
2020-06-11 17:08 ` RE : " Joseph
2020-06-11 18:39 ` Wolfgang Schuster [this message]
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=c4df1260-b77b-35b5-55ff-df12466312d3@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=josephcanedo@gmail.com \
--cc=ntg-context@ntg.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).