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













3















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.










share|improve this question



















  • 2





    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















3















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.










share|improve this question



















  • 2





    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













3












3








3








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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












  • 2





    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







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










1 Answer
1






active

oldest

votes


















3














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


enter image description here






share|improve this answer























  • That works perfectly, thank you :)

    – Siolan
    May 3 at 11:53











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
);



);













draft saved

draft discarded


















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









3














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


enter image description here






share|improve this answer























  • That works perfectly, thank you :)

    – Siolan
    May 3 at 11:53















3














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


enter image description here






share|improve this answer























  • That works perfectly, thank you :)

    – Siolan
    May 3 at 11:53













3












3








3







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


enter image description here






share|improve this answer













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


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered May 3 at 9:34









egregegreg

741k8919403273




741k8919403273












  • 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





That works perfectly, thank you :)

– Siolan
May 3 at 11:53

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos