Flow control |
Besides sequences of instructions, which can be achieved using the
The most important primitive
<
assign
|
appendix
|
<
macro
|
title
|
body
|
<
document
|
<\compound|
<if|<long-document>|chapter-appendix|section-appendix>
title
body
In this example,
<
assign
|
appendix
|
<
macro
|
title
|
body
|
<
document
|
<\if|
<long-document>
<chapter-appendix|title|body>
<section-appendix|title|body>
The
<
assign
|
hey
|
<
macro
|
first
|
second
|
<\if|
<equal|second|?>
Hey first, you look
lonely today...
Hey first and second, you form a nice couple!
However, TeXmacs is not clever enough to detect which arguments are
optional and which arguments are accessible (i.e. which
arguments can be edited by the user). Therefore, you will have to
manually give this information using the