Having been exploring expl3 I have been updating some of my code to it, and I ran into a interesting issue that I was not predicting.
I get a strange error that I think is from trying to store multiple paragraphs into a sequence. I didnt find anything in the interface3 manual, does anyone know of an way around this?
I put my old method and new trail method for variable storage below for those who are interested.
Here is my old code.
\newcommand{\@supernote}{}
\newcommand{\supernote}[1]{\renewcommand\@supernote{#1}}
And here is my new code.
\seq_new:N \itemsupernote
\NewDocumentCommand{\supernote}{sm} {
\seq_put_right:Nn \itemsupernote {#2}
}
Calling the function works the same way for both
\supernote{Here is my example
and here is the other half}
Here is my error for the new method in case it helps.
runaway argument? {here is my example Paragraph ended before \supernote was omplete.
<to be read again> \par l.109
s
-type argument for here?so
to certain macros that might need\foo*
or even\foo[..]
just to make it easy in the future.xparse
is that the interface isn't tied to the internals, so adding them later should be trivial anyway.\NewDocumentCommand \foo { s o m } { \bob_foo:n { #3 } }
just so I don't have to change#1
to#3
in the future. Pure laziness, at least on my side.