Optional
argumentOptional
escapeSome special macros like ^
and _
don't use
an escape token. When matching against these macros,
care must be taken to match the macro contents and the macro's
escape token.
Optional
renderOptional
breakWhether there should be line breaks after the macro
(e.g., like the \\
command.)
Optional
breakWhether there should be line breaks before and after the macro
(e.g., like the \section{...}
command.)
Optional
breakWhether there should be line breaks before the macro.
Optional
hangingWhether the arguments should be rendered with a hanging indent when the wrap (like the arguments to \item in an enumerate environment.)
Optional
inWhether the contents of the macro should be assumed to be in math mode.
Optional
inWhether the macro's contents wraps along with the current paragraph or displays as it's own block.
Optional
namedA list of names to be given to each argument when processing. This list should
be the same length as the number of arguments. null
can appear any number of times
for "un-named" arguments.
This allows a consistent reference to macro arguments even if the macro signatures are redefined between packages.
Optional
pgfkeysWhether the arguments should be processed as pgfkeys-type arguments.
Optional
tikzWhether the macro represents a tikz path command (e.g. \draw (0,0) -- (1,1);
).
Optional
signature?: stringThe macro signature as an xparse argument specification string.
Generated using TypeDoc
Custom argument parser. If present, function overrides the default argument parsing of
signature
. An array of nodes is passed as well as the position of the first node after the macro. This function is expected to mutate the input array, removing any nodes that are part of the macro's argument.This function will only be called on a macro if it has no existing
args
.Note: for stability when printing/accessing a node's arguments, this function should always return an argument array of the same length, regardless of whether optional arguments are present. For example, if this function parses a node with signature
o m
, it should ways return a length-two array of arguments. A "blank" argument (one that does not show up during printing) can be created withargs([], { openMark: "", closeMark: "" })
, using theunified-latex-builder
package.