RE : Re: RE : Re: Issue with latest LMTX version 2020-05-25
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
I want to check if current paragraph is being indented. I'll add \doifelseindented to lmtx ... which you will then document on
On 5/26/2020 2:28 PM, Joseph wrote: the wiki. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/c10a9794cde725cb719c118dcc00e966.jpg?s=120&d=mm&r=g)
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
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
participants (3)
-
Hans Hagen
-
Joseph
-
Wolfgang Schuster