Henning Hraban Ramm <mailto:te...@fiee.net>
24. Januar 2018 um 08:51

Thank you, now I have:

\define[1]\ChapterTocEntry{%
\doifnotempty{\structurelistuservariable{author}}{\structureuservariable{author}\crlf }%
#1%
\doifnotempty{\structurelistuservariable{subtitle}}{\crlf\structureuservariable{subtitle}}}

But author/subtitle still don’t show up in the ToC.
Use the \doiftext check or replace \structurelistuservariable (which is never empty because it is tagged) with \rawstructurelistuservariable (which isn’t tagged and contains only the content
of the variable).


\define[3]\SectionListCommand
  {\doiftextelse{\structurelistuservariable{test}}{YES}{NO}%
   \endgraf}

% \define[3]\SectionListCommand
%   {\doifsomethingelse{\rawstructurelistuservariable{test}}{YES}{NO}%
%    \endgraf}

\setuplist[section][alternative=command,command=\SectionListCommand]

\starttext

\placelist[section]

\startsection[title=X][test=A] \stopsection

\startsection[title=Y] \stopsection

\startsection[title=Z][test=B] \stopsection

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

Reply via email to