1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html
><head><!--mn21.html from mn.tex (TeX4ht, 1999-03-31 04:46:00)-->
<title>mn21.html</title><link
rel="stylesheet" type="text/css" href="mn.css"></head><body
><a
href="mn2.html#mn21-1" name="mn21-1" >1</a>. <SPAN CLASS="cmtt-10">\NewConfigure{</SPAN><SPAN CLASS="cmti-10">name</SPAN><SPAN CLASS="cmtt-10">}[</SPAN><SPAN CLASS="cmti-10">i</SPAN><SPAN CLASS="cmtt-10">]{</SPAN><SPAN CLASS="cmti-10">body</SPAN><SPAN CLASS="cmtt-10">}</SPAN>
<!--4065--><p class="noindent">Hooks are just macro names seeded within the bodies of other macros. This command introduces a configuration
command for a group of hooks, whose cardinality is given by a digit <SPAN CLASS="cmti-10">i </SPAN>and whose name is provided by the first
parameter. The body determines the relationship between the hooks and the configurations provided for
them.
<HR><a
href="mn2.html#mn21-2" name="mn21-2" >2</a>. <SPAN CLASS="cmtt-10">\Configure{</SPAN><SPAN CLASS="cmti-10">name</SPAN><SPAN CLASS="cmtt-10">}{</SPAN><SPAN CLASS="cmti-10">parameter-1</SPAN><SPAN CLASS="cmtt-10">}...{</SPAN><SPAN CLASS="cmti-10">parameter-i</SPAN><SPAN CLASS="cmtt-10">}</SPAN>
<TABLE
><TR >
<TD CLASS="output"
><DIV CLASS="output"> * ho ha *
</DIV></TD><TD
><DIV CLASS="source">
<DIV CLASS="ShowCode"><PRE>
<SPAN CLASS="cmtt-10">\NewConfigure{try}[2]{%</SPAN>
<SPAN CLASS="cmtt-10">\def\hookI{#1}\def\hookII{#2}}</SPAN>
<SPAN CLASS="cmtt-10">\def\try#1{\hookI#1\hookII}</SPAN>
<SPAN CLASS="cmtt-10">\Configure{try}{* }{} \try{ho}</SPAN>
<SPAN CLASS="cmtt-10">\Configure{try}{}{ *} \try{ha}</SPAN>
</PRE></DIV>
</DIV></TD></TR></TABLE>
</body>
</html>
|