Tagged Questions
5
votes
2answers
68 views
Expl variable assignments not behaving as I expect
I don't get what I'm doing wrong here. Neither of the commented lines work as the uncommented version does.
\begin{filecontents}{silly.tex}
This is just a test.
\end{filecontents}
...
4
votes
2answers
53 views
“hiding” \par from a tabular
I want to use a macro to write a line of a tabular. As part of this macro, there is an argument that isn't set in the tabular, but is saved for later use. This unused argument should be allowed to ...
5
votes
1answer
41 views
How to redefine \str_if_eq:xxTF for backward compatibility
I just updated all the packages for TeXLive 2012 today and it appears that \str_if_eq:xxTF has been deprecated.
How do I define a macro so that I can use the latest TeX Live but still be able to run ...
3
votes
1answer
69 views
Commands from xparse inside functions created by \cs_new:Npn?
Is it okay to put commands from xparse inside functions created by \cs_new:Npn instead of \NewDocumentCommand? Would that be a confusion of programming levels?
The example below works but I was ...
13
votes
1answer
388 views
How to transpose a table in expl3
I've been very impressed with xparse and expl3, and have written a wonderful document command using \ProcessList that takes a comma separated list and turns it into a (basically) 1 column table.
...
2
votes
1answer
73 views
xparse: \NoValue gone -> how to check multiple NoValues now?
I used to have a definition like the following to check if all optional arguments were missing:
\NewDocumentCommand \question {o o o m} {
\bool_if:nTF {
\str_if_eq_p:nn { \NoValue } { #1 ...
6
votes
3answers
251 views
\NewDocumentCommand with constructed csname
In the spirit of my previous questions Defining \xthinspace: Thin space only if not followed by certain characters and Ellipses & Correct Space Factor, I’m trying to define a generic \xspace-like ...
10
votes
2answers
191 views
How do I pass an expanded optional argument using expl3/xparse?
I have a command defined using xparse syntax:
\DeclareDocumentCommand \foo { O{} m } {}
Inside some other command (say, \bar), I want to call this command. The calling command (\bar) has to ...
