Changes

Jump to navigation Jump to search
m
Added link for multi-optional-arg macros in LaTeX.
!}
Note that this makes both arguments optional -- something that is much more difficult to do in LaTeX([http://www.tex.ac.uk/cgi-bin/texfaq2html?label=twooptarg but see here for how]). This also means that we should reverse the order of arguments, since if the user specifies only one argument it will be treated as the first argument.
If you don't want any optional arguments, but still want your arguments enclosed in <tt>[]</tt> with appropriate handling for spaces (or line breaks) between the square brackets, use <tt>\dodoublearguments</tt> instead of <tt>\dodoubleempty</tt>. There are of course versions for other numbers of arguments, found by replacing <tt>double</tt> with <tt>single</tt> through <tt>seventuple</tt>; see <tt>syst-gen.tex</tt> for the exact names.

Navigation menu