xparse: Starred commands and IfBooleanTF The Next CEO of Stack Overflowxparse recursion and/or...
Why doesn't a table tennis ball float on the surface? How do we calculate buoyancy here?
Why didn't Theresa May consult with Parliament before negotiating a deal with the EU?
What's the point of interval inversion?
How to Reset Passwords on Multiple Websites Easily?
Opposite of a diet
WOW air has ceased operation, can I get my tickets refunded?
Why do professional authors make "consistency" mistakes? And how to avoid them?
How can I get through very long and very dry, but also very useful technical documents when learning a new tool?
Inappropriate reference requests from Journal reviewers
Fastest way to shutdown Ubuntu Mate 18.10
How do spells that require an ability check vs. the caster's spell save DC work?
Solution of this Diophantine Equation
Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis
Are there languages with no euphemisms?
Is it my responsibility to learn a new technology in my own time my employer wants to implement?
Rotate a column
How to write papers efficiently when English isn't my first language?
How easy is it to start Magic from scratch?
Customer Requests (Sometimes) Drive Me Bonkers!
Does the Brexit deal have to be agreed by both Houses?
Is HostGator storing my password in plaintext?
How can I quit an app using Terminal?
When airplanes disconnect from a tanker during air to air refueling, why do they bank so sharply to the right?
How do I get the green key off the shelf in the Dobby level of Lego Harry Potter 2?
xparse: Starred commands and IfBooleanTF
The Next CEO of Stack Overflowxparse recursion and/or special numeric specificationsWeird xparse issue involving splitlistReusing the current argument's number with xparseBehavior of xparse and “token”-type argumentTransforming a list with xparseDefining a command to define commands where the name uses the argument using xparseConverting xparse commands to htmlProblem with subscripts in custom xparse commands from foreign filesxparse SplitList parameter expansionPrevent xparse from stripping braces?
In some longer redefinition of existing code I am using a construct like
documentclass{book}
usepackage{xparse}
makeatletter
NewDocumentCommand{mymacro}{smO{}m}{
defblabla{#1}%
% several lines later in another macro I use
IfBooleanTF{blabla}{}{}
}
makeatother
begin{document}
mymacro*{}{}
end{document}
which works fine with texlive 2018 (xparse 2018-10-17) and lualatex.
However, when trying with texlive 2019 (xparse 2019-03-05)
I get the following error
! Undefined control sequence.
<argument> LaTeX3 error:
Invalid use IfBooleanTF {blabla }
l.15 mymacro*{}{}
What would be the correct way of doing something like this with the new xparse version?
xparse
add a comment |
In some longer redefinition of existing code I am using a construct like
documentclass{book}
usepackage{xparse}
makeatletter
NewDocumentCommand{mymacro}{smO{}m}{
defblabla{#1}%
% several lines later in another macro I use
IfBooleanTF{blabla}{}{}
}
makeatother
begin{document}
mymacro*{}{}
end{document}
which works fine with texlive 2018 (xparse 2018-10-17) and lualatex.
However, when trying with texlive 2019 (xparse 2019-03-05)
I get the following error
! Undefined control sequence.
<argument> LaTeX3 error:
Invalid use IfBooleanTF {blabla }
l.15 mymacro*{}{}
What would be the correct way of doing something like this with the new xparse version?
xparse
Why were you saving the argument in a macro in the first place?
– Joseph Wright♦
2 mins ago
@JosephWright I later redefine another macro where I useblabla. I did not know another way of doing something like this.
– bonanza
1 min ago
add a comment |
In some longer redefinition of existing code I am using a construct like
documentclass{book}
usepackage{xparse}
makeatletter
NewDocumentCommand{mymacro}{smO{}m}{
defblabla{#1}%
% several lines later in another macro I use
IfBooleanTF{blabla}{}{}
}
makeatother
begin{document}
mymacro*{}{}
end{document}
which works fine with texlive 2018 (xparse 2018-10-17) and lualatex.
However, when trying with texlive 2019 (xparse 2019-03-05)
I get the following error
! Undefined control sequence.
<argument> LaTeX3 error:
Invalid use IfBooleanTF {blabla }
l.15 mymacro*{}{}
What would be the correct way of doing something like this with the new xparse version?
xparse
In some longer redefinition of existing code I am using a construct like
documentclass{book}
usepackage{xparse}
makeatletter
NewDocumentCommand{mymacro}{smO{}m}{
defblabla{#1}%
% several lines later in another macro I use
IfBooleanTF{blabla}{}{}
}
makeatother
begin{document}
mymacro*{}{}
end{document}
which works fine with texlive 2018 (xparse 2018-10-17) and lualatex.
However, when trying with texlive 2019 (xparse 2019-03-05)
I get the following error
! Undefined control sequence.
<argument> LaTeX3 error:
Invalid use IfBooleanTF {blabla }
l.15 mymacro*{}{}
What would be the correct way of doing something like this with the new xparse version?
xparse
xparse
edited 5 mins ago
Bernard
174k776207
174k776207
asked 7 mins ago
bonanzabonanza
7421625
7421625
Why were you saving the argument in a macro in the first place?
– Joseph Wright♦
2 mins ago
@JosephWright I later redefine another macro where I useblabla. I did not know another way of doing something like this.
– bonanza
1 min ago
add a comment |
Why were you saving the argument in a macro in the first place?
– Joseph Wright♦
2 mins ago
@JosephWright I later redefine another macro where I useblabla. I did not know another way of doing something like this.
– bonanza
1 min ago
Why were you saving the argument in a macro in the first place?
– Joseph Wright♦
2 mins ago
Why were you saving the argument in a macro in the first place?
– Joseph Wright♦
2 mins ago
@JosephWright I later redefine another macro where I use
blabla. I did not know another way of doing something like this.– bonanza
1 min ago
@JosephWright I later redefine another macro where I use
blabla. I did not know another way of doing something like this.– bonanza
1 min ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482003%2fxparse-starred-commands-and-ifbooleantf%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482003%2fxparse-starred-commands-and-ifbooleantf%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Why were you saving the argument in a macro in the first place?
– Joseph Wright♦
2 mins ago
@JosephWright I later redefine another macro where I use
blabla. I did not know another way of doing something like this.– bonanza
1 min ago