RE : Re: RE : Re: Issue with latest LMTX version 2020-05-25

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


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