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 : [email protected] / 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
___________________________________________________________________________________

Reply via email to