Beamer illegal parameter number insertfootnotetext with expl3 seqLaTeX complaining about illegal parameter numberexpl3 code with tabularxIs there a way to pad zeros to the end of a rounded number with Expl3?In expl3, how to reset a seq variable when content is placed in footer or float?expl3 variables and functionsIllegal parameter number in definition of testCalculating number of symbols in the file with expl3Error: Illegal Parameter number in definition of iterate“Illegal parameter in test” in Beamer + TikZExpl3 seq with macros
What information exactly does an instruction cache store?
Anatomically Correct Carnivorous Tree
Alias for root of a polynomial
Do I need to say “o’clock”?
OSPF increase bandwidth with load-balancing
What information do scammers need to withdraw money from an account?
Source of the Wildfire?
Should I communicate in my applications that I'm unemployed out of choice rather than because nobody will have me?
Why does the headset man not get on the tractor?
Why does SSL Labs now consider CBC suites weak?
How does this Martian habitat 3D printer built for NASA work?
Re-testing of regression test bug fixes or re-run regression tests?
Is it wrong to omit object pronouns in these sentences?
How might a landlocked lake become a complete ecosystem?
Why did the metro bus stop at each railway crossing, despite no warning indicating a train was coming?
How to make a not so good looking person more appealing?
Is this possible when it comes to the relations of P, NP, NP-Hard and NP-Complete?
Filter a data-frame and add a new column according to the given condition
Extract the characters before last colon
Why do the lights go out when someone enters the dining room on this ship?
Why does lemon juice reduce the "fish" odor of sea food — specifically fish?
Can you pick an advanced rogue talent with the extra rogue talent feat?
complicated arrows in flowcharts
How to cope with regret and shame about not fully utilizing opportunities during PhD?
Beamer illegal parameter number insertfootnotetext with expl3 seq
LaTeX complaining about illegal parameter numberexpl3 code with tabularxIs there a way to pad zeros to the end of a rounded number with Expl3?In expl3, how to reset a seq variable when content is placed in footer or float?expl3 variables and functionsIllegal parameter number in definition of testCalculating number of symbols in the file with expl3Error: Illegal Parameter number in definition of iterate“Illegal parameter in test” in Beamer + TikZExpl3 seq with macros
I am trying to build my own beamer theme for which I personalized citations. Using the seq module of the package expl3, I have written a function that gathers all citations of a frame into a sequence which I use at the end of each frame to print all citations.
The issue is that I want to print all citations in a tcolorbox in a footnote, however using both the expl3 seq_map_inline:Nn function and the footnote does not work with beamer, I get the error
Illegal parameter number in definition of insertfootnotetext".
Everything works fine when using the article class.
Here is a MWE:
documentclassbeamer
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagetcolorbox
usepackagexparse
usepackageexpl3
usepackagebiblatex
% My citation
newcommandmycite[1] cite#1 ~ citeauthor#1 ~ citetitle#1 ~ (citeyear#1)
% List of citations
ExplSyntaxOn
seq_new:N l_frame_cite_list
NewDocumentCommandmyAddCitationmseq_put_right:Nn l_frame_cite_list #1
NewDocumentCommandgenerateCitationBox
seq_if_empty:NTF l_frame_cite_list
seq_remove_duplicates:N l_frame_cite_list
footnote
vspace-1em
begintcolorbox
seq_map_inline:Nn l_frame_cite_list
mycite##1\
vspace-1em
endtcolorbox
vspace-1em
seq_clear:N l_frame_cite_list
ExplSyntaxOff
newenvironmentmyframebeginframegenerateCitationBox endframe
begindocument
beginmyframe
myAddCitationA
myAddCitationB
Hello World
endmyframe
enddocument
Thank you in advance for your answers,
Simon.
beamer expl3
add a comment |
I am trying to build my own beamer theme for which I personalized citations. Using the seq module of the package expl3, I have written a function that gathers all citations of a frame into a sequence which I use at the end of each frame to print all citations.
The issue is that I want to print all citations in a tcolorbox in a footnote, however using both the expl3 seq_map_inline:Nn function and the footnote does not work with beamer, I get the error
Illegal parameter number in definition of insertfootnotetext".
Everything works fine when using the article class.
Here is a MWE:
documentclassbeamer
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagetcolorbox
usepackagexparse
usepackageexpl3
usepackagebiblatex
% My citation
newcommandmycite[1] cite#1 ~ citeauthor#1 ~ citetitle#1 ~ (citeyear#1)
% List of citations
ExplSyntaxOn
seq_new:N l_frame_cite_list
NewDocumentCommandmyAddCitationmseq_put_right:Nn l_frame_cite_list #1
NewDocumentCommandgenerateCitationBox
seq_if_empty:NTF l_frame_cite_list
seq_remove_duplicates:N l_frame_cite_list
footnote
vspace-1em
begintcolorbox
seq_map_inline:Nn l_frame_cite_list
mycite##1\
vspace-1em
endtcolorbox
vspace-1em
seq_clear:N l_frame_cite_list
ExplSyntaxOff
newenvironmentmyframebeginframegenerateCitationBox endframe
begindocument
beginmyframe
myAddCitationA
myAddCitationB
Hello World
endmyframe
enddocument
Thank you in advance for your answers,
Simon.
beamer expl3
2
You need more hashes formycite##1. Try withmycite####1or more.
– Henri Menke
May 3 at 9:26
Thanks for the answer, I have used @egreg's answer that works fine, what is the signification of muliple # ? I though two were used to distinguish with the argument of the command, what about ####1 ?
– Siolan
May 3 at 11:56
add a comment |
I am trying to build my own beamer theme for which I personalized citations. Using the seq module of the package expl3, I have written a function that gathers all citations of a frame into a sequence which I use at the end of each frame to print all citations.
The issue is that I want to print all citations in a tcolorbox in a footnote, however using both the expl3 seq_map_inline:Nn function and the footnote does not work with beamer, I get the error
Illegal parameter number in definition of insertfootnotetext".
Everything works fine when using the article class.
Here is a MWE:
documentclassbeamer
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagetcolorbox
usepackagexparse
usepackageexpl3
usepackagebiblatex
% My citation
newcommandmycite[1] cite#1 ~ citeauthor#1 ~ citetitle#1 ~ (citeyear#1)
% List of citations
ExplSyntaxOn
seq_new:N l_frame_cite_list
NewDocumentCommandmyAddCitationmseq_put_right:Nn l_frame_cite_list #1
NewDocumentCommandgenerateCitationBox
seq_if_empty:NTF l_frame_cite_list
seq_remove_duplicates:N l_frame_cite_list
footnote
vspace-1em
begintcolorbox
seq_map_inline:Nn l_frame_cite_list
mycite##1\
vspace-1em
endtcolorbox
vspace-1em
seq_clear:N l_frame_cite_list
ExplSyntaxOff
newenvironmentmyframebeginframegenerateCitationBox endframe
begindocument
beginmyframe
myAddCitationA
myAddCitationB
Hello World
endmyframe
enddocument
Thank you in advance for your answers,
Simon.
beamer expl3
I am trying to build my own beamer theme for which I personalized citations. Using the seq module of the package expl3, I have written a function that gathers all citations of a frame into a sequence which I use at the end of each frame to print all citations.
The issue is that I want to print all citations in a tcolorbox in a footnote, however using both the expl3 seq_map_inline:Nn function and the footnote does not work with beamer, I get the error
Illegal parameter number in definition of insertfootnotetext".
Everything works fine when using the article class.
Here is a MWE:
documentclassbeamer
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagetcolorbox
usepackagexparse
usepackageexpl3
usepackagebiblatex
% My citation
newcommandmycite[1] cite#1 ~ citeauthor#1 ~ citetitle#1 ~ (citeyear#1)
% List of citations
ExplSyntaxOn
seq_new:N l_frame_cite_list
NewDocumentCommandmyAddCitationmseq_put_right:Nn l_frame_cite_list #1
NewDocumentCommandgenerateCitationBox
seq_if_empty:NTF l_frame_cite_list
seq_remove_duplicates:N l_frame_cite_list
footnote
vspace-1em
begintcolorbox
seq_map_inline:Nn l_frame_cite_list
mycite##1\
vspace-1em
endtcolorbox
vspace-1em
seq_clear:N l_frame_cite_list
ExplSyntaxOff
newenvironmentmyframebeginframegenerateCitationBox endframe
begindocument
beginmyframe
myAddCitationA
myAddCitationB
Hello World
endmyframe
enddocument
Thank you in advance for your answers,
Simon.
beamer expl3
beamer expl3
edited May 3 at 9:45
Stefan Pinnow
20.6k83578
20.6k83578
asked May 3 at 9:19
SiolanSiolan
182
182
2
You need more hashes formycite##1. Try withmycite####1or more.
– Henri Menke
May 3 at 9:26
Thanks for the answer, I have used @egreg's answer that works fine, what is the signification of muliple # ? I though two were used to distinguish with the argument of the command, what about ####1 ?
– Siolan
May 3 at 11:56
add a comment |
2
You need more hashes formycite##1. Try withmycite####1or more.
– Henri Menke
May 3 at 9:26
Thanks for the answer, I have used @egreg's answer that works fine, what is the signification of muliple # ? I though two were used to distinguish with the argument of the command, what about ####1 ?
– Siolan
May 3 at 11:56
2
2
You need more hashes for
mycite##1. Try with mycite####1 or more.– Henri Menke
May 3 at 9:26
You need more hashes for
mycite##1. Try with mycite####1 or more.– Henri Menke
May 3 at 9:26
Thanks for the answer, I have used @egreg's answer that works fine, what is the signification of muliple # ? I though two were used to distinguish with the argument of the command, what about ####1 ?
– Siolan
May 3 at 11:56
Thanks for the answer, I have used @egreg's answer that works fine, what is the signification of muliple # ? I though two were used to distinguish with the argument of the command, what about ####1 ?
– Siolan
May 3 at 11:56
add a comment |
1 Answer
1
active
oldest
votes
This has to do with how beamer collects the text of a frame as the argument to a macro. You might use [fragile], but it's simpler using seq_map_function:NN instead, so the parameter is not explicitly passed in the code.
beginfilecontents*jobname.bib
@articleA,
author=A. Uthor,
title=A title,
journal=A Journal,
year=2018,
@articleB,
author=W. Riter,
title=B title,
journal=B Journal,
year=2019,
endfilecontents*
documentclassbeamer
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagetcolorbox
usepackagexparse
usepackageexpl3
usepackagebiblatex
addbibresourcejobname.bib
% My citation
newcommandmycite[1]cite#1 citeauthor#1 citetitle#1 (citeyear#1)
ExplSyntaxOn
% List of citations
seq_new:N l_frame_cite_list_seq
NewDocumentCommandmyAddCitationm
seq_put_right:Nn l_frame_cite_list_seq #1
NewDocumentCommandgenerateCitationBox
seq_if_empty:NF l_frame_cite_list_seq
seq_remove_duplicates:N l_frame_cite_list_seq
footnote
% vspace-1em
begintcolorbox
seq_map_function:NN l_frame_cite_list_seq __frame_mycite:n
vspace-1em
endtcolorbox
% vspace-1em
seq_clear:N l_frame_cite_list
cs_new_protected:Nn __frame_mycite:n mycite#1\
ExplSyntaxOff
newenvironmentmyframebeginframegenerateCitationBox endframe
begindocument
beginmyframe
myAddCitationA
myAddCitationB
Hello World
endmyframe
enddocument

That works perfectly, thank you :)
– Siolan
May 3 at 11:53
add a comment |
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%2f488908%2fbeamer-illegal-parameter-number-insertfootnotetext-with-expl3-seq%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This has to do with how beamer collects the text of a frame as the argument to a macro. You might use [fragile], but it's simpler using seq_map_function:NN instead, so the parameter is not explicitly passed in the code.
beginfilecontents*jobname.bib
@articleA,
author=A. Uthor,
title=A title,
journal=A Journal,
year=2018,
@articleB,
author=W. Riter,
title=B title,
journal=B Journal,
year=2019,
endfilecontents*
documentclassbeamer
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagetcolorbox
usepackagexparse
usepackageexpl3
usepackagebiblatex
addbibresourcejobname.bib
% My citation
newcommandmycite[1]cite#1 citeauthor#1 citetitle#1 (citeyear#1)
ExplSyntaxOn
% List of citations
seq_new:N l_frame_cite_list_seq
NewDocumentCommandmyAddCitationm
seq_put_right:Nn l_frame_cite_list_seq #1
NewDocumentCommandgenerateCitationBox
seq_if_empty:NF l_frame_cite_list_seq
seq_remove_duplicates:N l_frame_cite_list_seq
footnote
% vspace-1em
begintcolorbox
seq_map_function:NN l_frame_cite_list_seq __frame_mycite:n
vspace-1em
endtcolorbox
% vspace-1em
seq_clear:N l_frame_cite_list
cs_new_protected:Nn __frame_mycite:n mycite#1\
ExplSyntaxOff
newenvironmentmyframebeginframegenerateCitationBox endframe
begindocument
beginmyframe
myAddCitationA
myAddCitationB
Hello World
endmyframe
enddocument

That works perfectly, thank you :)
– Siolan
May 3 at 11:53
add a comment |
This has to do with how beamer collects the text of a frame as the argument to a macro. You might use [fragile], but it's simpler using seq_map_function:NN instead, so the parameter is not explicitly passed in the code.
beginfilecontents*jobname.bib
@articleA,
author=A. Uthor,
title=A title,
journal=A Journal,
year=2018,
@articleB,
author=W. Riter,
title=B title,
journal=B Journal,
year=2019,
endfilecontents*
documentclassbeamer
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagetcolorbox
usepackagexparse
usepackageexpl3
usepackagebiblatex
addbibresourcejobname.bib
% My citation
newcommandmycite[1]cite#1 citeauthor#1 citetitle#1 (citeyear#1)
ExplSyntaxOn
% List of citations
seq_new:N l_frame_cite_list_seq
NewDocumentCommandmyAddCitationm
seq_put_right:Nn l_frame_cite_list_seq #1
NewDocumentCommandgenerateCitationBox
seq_if_empty:NF l_frame_cite_list_seq
seq_remove_duplicates:N l_frame_cite_list_seq
footnote
% vspace-1em
begintcolorbox
seq_map_function:NN l_frame_cite_list_seq __frame_mycite:n
vspace-1em
endtcolorbox
% vspace-1em
seq_clear:N l_frame_cite_list
cs_new_protected:Nn __frame_mycite:n mycite#1\
ExplSyntaxOff
newenvironmentmyframebeginframegenerateCitationBox endframe
begindocument
beginmyframe
myAddCitationA
myAddCitationB
Hello World
endmyframe
enddocument

That works perfectly, thank you :)
– Siolan
May 3 at 11:53
add a comment |
This has to do with how beamer collects the text of a frame as the argument to a macro. You might use [fragile], but it's simpler using seq_map_function:NN instead, so the parameter is not explicitly passed in the code.
beginfilecontents*jobname.bib
@articleA,
author=A. Uthor,
title=A title,
journal=A Journal,
year=2018,
@articleB,
author=W. Riter,
title=B title,
journal=B Journal,
year=2019,
endfilecontents*
documentclassbeamer
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagetcolorbox
usepackagexparse
usepackageexpl3
usepackagebiblatex
addbibresourcejobname.bib
% My citation
newcommandmycite[1]cite#1 citeauthor#1 citetitle#1 (citeyear#1)
ExplSyntaxOn
% List of citations
seq_new:N l_frame_cite_list_seq
NewDocumentCommandmyAddCitationm
seq_put_right:Nn l_frame_cite_list_seq #1
NewDocumentCommandgenerateCitationBox
seq_if_empty:NF l_frame_cite_list_seq
seq_remove_duplicates:N l_frame_cite_list_seq
footnote
% vspace-1em
begintcolorbox
seq_map_function:NN l_frame_cite_list_seq __frame_mycite:n
vspace-1em
endtcolorbox
% vspace-1em
seq_clear:N l_frame_cite_list
cs_new_protected:Nn __frame_mycite:n mycite#1\
ExplSyntaxOff
newenvironmentmyframebeginframegenerateCitationBox endframe
begindocument
beginmyframe
myAddCitationA
myAddCitationB
Hello World
endmyframe
enddocument

This has to do with how beamer collects the text of a frame as the argument to a macro. You might use [fragile], but it's simpler using seq_map_function:NN instead, so the parameter is not explicitly passed in the code.
beginfilecontents*jobname.bib
@articleA,
author=A. Uthor,
title=A title,
journal=A Journal,
year=2018,
@articleB,
author=W. Riter,
title=B title,
journal=B Journal,
year=2019,
endfilecontents*
documentclassbeamer
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagetcolorbox
usepackagexparse
usepackageexpl3
usepackagebiblatex
addbibresourcejobname.bib
% My citation
newcommandmycite[1]cite#1 citeauthor#1 citetitle#1 (citeyear#1)
ExplSyntaxOn
% List of citations
seq_new:N l_frame_cite_list_seq
NewDocumentCommandmyAddCitationm
seq_put_right:Nn l_frame_cite_list_seq #1
NewDocumentCommandgenerateCitationBox
seq_if_empty:NF l_frame_cite_list_seq
seq_remove_duplicates:N l_frame_cite_list_seq
footnote
% vspace-1em
begintcolorbox
seq_map_function:NN l_frame_cite_list_seq __frame_mycite:n
vspace-1em
endtcolorbox
% vspace-1em
seq_clear:N l_frame_cite_list
cs_new_protected:Nn __frame_mycite:n mycite#1\
ExplSyntaxOff
newenvironmentmyframebeginframegenerateCitationBox endframe
begindocument
beginmyframe
myAddCitationA
myAddCitationB
Hello World
endmyframe
enddocument

answered May 3 at 9:34
egregegreg
741k8919403273
741k8919403273
That works perfectly, thank you :)
– Siolan
May 3 at 11:53
add a comment |
That works perfectly, thank you :)
– Siolan
May 3 at 11:53
That works perfectly, thank you :)
– Siolan
May 3 at 11:53
That works perfectly, thank you :)
– Siolan
May 3 at 11:53
add a comment |
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%2f488908%2fbeamer-illegal-parameter-number-insertfootnotetext-with-expl3-seq%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
2
You need more hashes for
mycite##1. Try withmycite####1or more.– Henri Menke
May 3 at 9:26
Thanks for the answer, I have used @egreg's answer that works fine, what is the signification of muliple # ? I though two were used to distinguish with the argument of the command, what about ####1 ?
– Siolan
May 3 at 11:56