Changes

Jump to navigation Jump to search
Make text more explanatory
[[cmd:getparameters|\getparameters]] and [[cmd:processaction|\processaction]].
Here is a 'quickstart', assuming you want to define <tt>\MyZigzag</tt>:. The code example is interrupted with explantory running text.
<texcode>
\unprotect % enable exclamations in macro names
\def\MyZigzag#1[#2]{% % This brace is closed below, after the \expandafter block
% the #1 makes sure we allow a space before the bracket
Now you have a set of new macros that all start with ZZ.
At least there are <tt>\ZZDir</tt>,<tt>\ZZLinewidth</tt>, <tt>\ZZColor</tt> and <tt>\ZZWidth</tt> (these have default values) but possibly others as well, depending on user input. Here's a usage In the next lines you make use of these variables, for exampleas follows:
<texcode>
\edef\mywidth{\ZZWidth}%
</texcode>
If you want some of the variables to use accept keyword values, then you also need to use [[cmd:processaction|\processaction]]. Say you want "Dir" on the ZZ variable in question to be mandatory and that it accepts 4 directional map the keywords, as well as a direct angle specificationonto actual values.
Say you want "Dir" to be mandatory and that it accepts 4 directional keywords, as well as a direct angle specification. I've used all mixed case keywords, because otherwise you might run into conflicts with the multilingual interface:
<texcode>

Navigation menu