v Reads an argument “verbatim”, between the following character and its next oc- currence, in a way similar to the argument of the LATEX 2ε command \verb. Thus a v-type argument is read between two matching tokens, which cannot be any of %, \, #, {, } or ␣. The verbatim argument can also be enclosed between braces, { and }. A command with a verbatim argument will not work when it appears within an argument of another function.
Could someone kindly provide an example for each showing their relevance?e An optional set of embellishments, each of which requires a value. If a key is not present, -NoValue- is returned. The returned data is a token list comprising one braced entry per key, ordered as for the key list in the argument specification. Given as e{⟨tokens⟩}. All ⟨tokens⟩ must be distinct. This is an experimental type.
E As for e but returns one or more ⟨defaults⟩ if values are not given: E{⟨tokens⟩}{⟨defaults⟩}. See Section 0.6 for more details.
Also have an issue with R's default value:
Specifically, I would have thought blah{Daniels} would work in the code below. What am I getting wrong?r Reads a “required” delimited argument, where the delimiters are given as ⟨token1 ⟩ and ⟨token2 ⟩: r⟨token1 ⟩⟨token2 ⟩. If the opening ⟨token⟩ is missing, the default marker -NoValue- will be inserted after a suitable error.
R As for r, this is a “required” delimited argument but has a user-definable recovery ⟨default⟩, given as R⟨token1⟩⟨token2⟩{⟨default⟩}.
Code: Select all
\documentclass[fontsize=12pt]{minimal}
\usepackage{xparse}
\NewDocumentCommand{\foo}{r<>m}{#1~#2}
\NewDocumentCommand{\baz}{r<]m}{#1~#2}
\NewDocumentCommand{\blah}{R<>{Jack} m}{#1~#2}
\begin{document}
\foo<Jack>{Daniels}
%\foo[Jack]{Daniels} % Failed to find arg starting with <
\baz<Jack]{Daniels}
\blah<Jack>{Daniels}
%Bug?
\blah{Daniels} % Failed to find arg starting with <
\end{document}