A fragile LaTeX command is (link)
a command that expands into illegal TeX code during the save process.
Does ConTeXt "suffer" from fragile commands, or are all commands there robust?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityNo. Almost all user-level commands in ConTeXt are "robust".
\directlua
is always fully expandable.
Jun 17, 2017 at 0:41
\unexpanded\def
to create unexpandable macros (and may be higher level ways to define things use this). About LaTeX, all the up to date instalation provide eTeX which has that built in the internals (\protected\def
is the original name, redefined in ConTeXt), so the concept of fragile commands will eventually die. Of course it's possible that one makes a mistake and defines something wrong, but the system already has a way to cope and solve the issues of “fragile” commands.\foo
defined with\def\foo{\def\baz{}}
will create an error if used inside\edef\x{\foo}
but the “answer” to that error is that you defined the command wrong, you have no “\protect
” command.\footnote
inside asection{Title\footnote{Note}}
command as the footnote would appear in both the ToC and the body.memoir
does provide a `\section[toc-title][header-title]{body-title} where you (robustly) footnote the body-title without getting footnotes in other undesirable places