On 24-10-2011 19:41, Mojca Miklavec wrote:
Hello,

The following code

\setuplabeltext[test=]
test is \doifemptyelse{\labeltext{test}}{empty}{not empty}

doesn't work as intended for the reasons that I approximately
understand (not exactly, but I understand that there might be a lot of
weird stuff returned when I ask for labeltext). However I have no idea
how to check if text is empty or not.

As an exception :) :) :), MKIV hints should be highly appreciated and
enough for this particular application.

an empty test is always somewhat special as there can be an unexpandable macro inside that eventually expands to nothing

you can try \doiftextelse instead

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | 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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to