add a label to a AtBeginSection slide
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I would like to put a ref
to one of the slides created with AtBeginSection
, is that possible?
In more detail, I abuse
setbeamertemplatebackground canvas%
hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]./symmetry_breaking.pdf
subsection[shorttitle]long title with texorpdfstring$x^2$x2 labelsym
beamertemplateshadingbackgroundblue!01!whitewhite
to manipulate the background image on one AtBeginSubsection slide. And as you see I try to put a label there, such that on the very last slide I can ask "Who spotted the mistake on slide refsym?"
Can I put labels on these auto generated slides?
(Alternatively, I'm also open to a workaround putting the label on the next slide and then do arithmetics to figure out the slide number before.)
EDIT: at the moment my file looks (cut down to a MWE) like this:
documentclassbeamer
usepackagegraphicx
AtBeginSubsection
beginframe<beamer>
tableofcontents[currentsection,currentsubsection]
endframe
begindocument
sectionrecap
subsectionwhat do we want
beginframewhat do we want
beginitemize
item we want it all
enditemize
endframe
setbeamertemplatebackground canvas%
~hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]./symmetry_breaking.png
subsection[problem when you can zip]problem when you can zip labelsym
beamertemplateshadingbackgroundblue!01!whitewhite
beginframe
frametitlezipping solves everything
Lorem ipsum
endframe
subsection1234
beginframe
frametitleconclusion
beginitemize
item headache ahead
item<2-> Bonus points for those who spotted the mistake on slide~refsym
enditemize
endframe
enddocument
and it includes this image (suffered in the conversion, but for what it's worth here, can be any image).
And I build with
rm -f pseyfert.aux pseyfert.toc pseyfert.snm
xelatex pseyfert.tex
xelatex pseyfert.tex
xelatex pseyfert.tex
The last slide looks like this and should say "Bonus points for those who spotted the mistake on slide 3"
beamer ref
add a comment |Â
up vote
1
down vote
favorite
I would like to put a ref
to one of the slides created with AtBeginSection
, is that possible?
In more detail, I abuse
setbeamertemplatebackground canvas%
hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]./symmetry_breaking.pdf
subsection[shorttitle]long title with texorpdfstring$x^2$x2 labelsym
beamertemplateshadingbackgroundblue!01!whitewhite
to manipulate the background image on one AtBeginSubsection slide. And as you see I try to put a label there, such that on the very last slide I can ask "Who spotted the mistake on slide refsym?"
Can I put labels on these auto generated slides?
(Alternatively, I'm also open to a workaround putting the label on the next slide and then do arithmetics to figure out the slide number before.)
EDIT: at the moment my file looks (cut down to a MWE) like this:
documentclassbeamer
usepackagegraphicx
AtBeginSubsection
beginframe<beamer>
tableofcontents[currentsection,currentsubsection]
endframe
begindocument
sectionrecap
subsectionwhat do we want
beginframewhat do we want
beginitemize
item we want it all
enditemize
endframe
setbeamertemplatebackground canvas%
~hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]./symmetry_breaking.png
subsection[problem when you can zip]problem when you can zip labelsym
beamertemplateshadingbackgroundblue!01!whitewhite
beginframe
frametitlezipping solves everything
Lorem ipsum
endframe
subsection1234
beginframe
frametitleconclusion
beginitemize
item headache ahead
item<2-> Bonus points for those who spotted the mistake on slide~refsym
enditemize
endframe
enddocument
and it includes this image (suffered in the conversion, but for what it's worth here, can be any image).
And I build with
rm -f pseyfert.aux pseyfert.toc pseyfert.snm
xelatex pseyfert.tex
xelatex pseyfert.tex
xelatex pseyfert.tex
The last slide looks like this and should say "Bonus points for those who spotted the mistake on slide 3"
beamer ref
Unrelated to the problem, but you don't needusepackagegraphicx
with beamer.
â samcarter
23 mins ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I would like to put a ref
to one of the slides created with AtBeginSection
, is that possible?
In more detail, I abuse
setbeamertemplatebackground canvas%
hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]./symmetry_breaking.pdf
subsection[shorttitle]long title with texorpdfstring$x^2$x2 labelsym
beamertemplateshadingbackgroundblue!01!whitewhite
to manipulate the background image on one AtBeginSubsection slide. And as you see I try to put a label there, such that on the very last slide I can ask "Who spotted the mistake on slide refsym?"
Can I put labels on these auto generated slides?
(Alternatively, I'm also open to a workaround putting the label on the next slide and then do arithmetics to figure out the slide number before.)
EDIT: at the moment my file looks (cut down to a MWE) like this:
documentclassbeamer
usepackagegraphicx
AtBeginSubsection
beginframe<beamer>
tableofcontents[currentsection,currentsubsection]
endframe
begindocument
sectionrecap
subsectionwhat do we want
beginframewhat do we want
beginitemize
item we want it all
enditemize
endframe
setbeamertemplatebackground canvas%
~hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]./symmetry_breaking.png
subsection[problem when you can zip]problem when you can zip labelsym
beamertemplateshadingbackgroundblue!01!whitewhite
beginframe
frametitlezipping solves everything
Lorem ipsum
endframe
subsection1234
beginframe
frametitleconclusion
beginitemize
item headache ahead
item<2-> Bonus points for those who spotted the mistake on slide~refsym
enditemize
endframe
enddocument
and it includes this image (suffered in the conversion, but for what it's worth here, can be any image).
And I build with
rm -f pseyfert.aux pseyfert.toc pseyfert.snm
xelatex pseyfert.tex
xelatex pseyfert.tex
xelatex pseyfert.tex
The last slide looks like this and should say "Bonus points for those who spotted the mistake on slide 3"
beamer ref
I would like to put a ref
to one of the slides created with AtBeginSection
, is that possible?
In more detail, I abuse
setbeamertemplatebackground canvas%
hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]./symmetry_breaking.pdf
subsection[shorttitle]long title with texorpdfstring$x^2$x2 labelsym
beamertemplateshadingbackgroundblue!01!whitewhite
to manipulate the background image on one AtBeginSubsection slide. And as you see I try to put a label there, such that on the very last slide I can ask "Who spotted the mistake on slide refsym?"
Can I put labels on these auto generated slides?
(Alternatively, I'm also open to a workaround putting the label on the next slide and then do arithmetics to figure out the slide number before.)
EDIT: at the moment my file looks (cut down to a MWE) like this:
documentclassbeamer
usepackagegraphicx
AtBeginSubsection
beginframe<beamer>
tableofcontents[currentsection,currentsubsection]
endframe
begindocument
sectionrecap
subsectionwhat do we want
beginframewhat do we want
beginitemize
item we want it all
enditemize
endframe
setbeamertemplatebackground canvas%
~hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]./symmetry_breaking.png
subsection[problem when you can zip]problem when you can zip labelsym
beamertemplateshadingbackgroundblue!01!whitewhite
beginframe
frametitlezipping solves everything
Lorem ipsum
endframe
subsection1234
beginframe
frametitleconclusion
beginitemize
item headache ahead
item<2-> Bonus points for those who spotted the mistake on slide~refsym
enditemize
endframe
enddocument
and it includes this image (suffered in the conversion, but for what it's worth here, can be any image).
And I build with
rm -f pseyfert.aux pseyfert.toc pseyfert.snm
xelatex pseyfert.tex
xelatex pseyfert.tex
xelatex pseyfert.tex
The last slide looks like this and should say "Bonus points for those who spotted the mistake on slide 3"
beamer ref
beamer ref
edited 3 hours ago
asked 3 hours ago
pseyfert
15819
15819
Unrelated to the problem, but you don't needusepackagegraphicx
with beamer.
â samcarter
23 mins ago
add a comment |Â
Unrelated to the problem, but you don't needusepackagegraphicx
with beamer.
â samcarter
23 mins ago
Unrelated to the problem, but you don't need
usepackagegraphicx
with beamer.â samcarter
23 mins ago
Unrelated to the problem, but you don't need
usepackagegraphicx
with beamer.â samcarter
23 mins ago
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
This is an ad hoc proposal. As Skillmon pointed out, there was an unnecessary expandafter
.
documentclassbeamer
usepackagegraphicx
AtBeginSubsection
beginframe<beamer>
ifxmylabelempty
else
labelmylabel
fi
tableofcontents[currentsection,currentsubsection]
endframe
xdefmylabelempty
begindocument
sectionrecap
subsectionwhat do we want
beginframewhat do we want
beginitemize
item we want it all
enditemize
endframe
xdefmylabelsym
setbeamertemplatebackground canvas%
~hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]./symmetry_breaking.png
subsection[problem when you can zip]problem when you can zip
xdefmylabelempty
beamertemplateshadingbackgroundblue!01!whitewhite
beginframe
frametitlezipping solves everything
Lorem ipsum
endframe
subsection1234
beginframe
frametitleconclusion
beginitemize
item headache ahead
item<2-> Bonus points for those who spotted the mistake on
slide~refsym
enditemize
endframe
enddocument
add a comment |Â
up vote
2
down vote
Add a command with which you can choose to label the next subsection added with AtBeginSubsection
to your code:
documentclassbeamer
usepackagegraphicx
newififLabelSubSec
newcommandLabelSubSec[1]
%
globalLabelSubSectrue
gdefSubSecLabel#1%
AtBeginSubsection
%
beginframe<beamer>
ifLabelSubSec
globalLabelSubSecfalse
labelSubSecLabel%
fi
tableofcontents[currentsection,currentsubsection]
endframe%
setcountersecnumdepth2
begindocument
sectionrecap
subsectionwhat do we want
beginframewhat do we want
beginitemize
item we want it all
enditemize
endframe
setbeamertemplatebackground canvas%
~hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]example-image-duck
LabelSubSecsym
subsection[problem when you can zip]problem when you can zip
beamertemplateshadingbackgroundblue!01!whitewhite
beginframe
frametitlezipping solves everything
Lorem ipsum
endframe
subsection1234
beginframe
frametitleconclusion
beginitemize
item headache ahead
item<2-> Bonus points for those who spotted the mistake on slide~refsym
enditemize
endframe
enddocument
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
This is an ad hoc proposal. As Skillmon pointed out, there was an unnecessary expandafter
.
documentclassbeamer
usepackagegraphicx
AtBeginSubsection
beginframe<beamer>
ifxmylabelempty
else
labelmylabel
fi
tableofcontents[currentsection,currentsubsection]
endframe
xdefmylabelempty
begindocument
sectionrecap
subsectionwhat do we want
beginframewhat do we want
beginitemize
item we want it all
enditemize
endframe
xdefmylabelsym
setbeamertemplatebackground canvas%
~hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]./symmetry_breaking.png
subsection[problem when you can zip]problem when you can zip
xdefmylabelempty
beamertemplateshadingbackgroundblue!01!whitewhite
beginframe
frametitlezipping solves everything
Lorem ipsum
endframe
subsection1234
beginframe
frametitleconclusion
beginitemize
item headache ahead
item<2-> Bonus points for those who spotted the mistake on
slide~refsym
enditemize
endframe
enddocument
add a comment |Â
up vote
2
down vote
This is an ad hoc proposal. As Skillmon pointed out, there was an unnecessary expandafter
.
documentclassbeamer
usepackagegraphicx
AtBeginSubsection
beginframe<beamer>
ifxmylabelempty
else
labelmylabel
fi
tableofcontents[currentsection,currentsubsection]
endframe
xdefmylabelempty
begindocument
sectionrecap
subsectionwhat do we want
beginframewhat do we want
beginitemize
item we want it all
enditemize
endframe
xdefmylabelsym
setbeamertemplatebackground canvas%
~hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]./symmetry_breaking.png
subsection[problem when you can zip]problem when you can zip
xdefmylabelempty
beamertemplateshadingbackgroundblue!01!whitewhite
beginframe
frametitlezipping solves everything
Lorem ipsum
endframe
subsection1234
beginframe
frametitleconclusion
beginitemize
item headache ahead
item<2-> Bonus points for those who spotted the mistake on
slide~refsym
enditemize
endframe
enddocument
add a comment |Â
up vote
2
down vote
up vote
2
down vote
This is an ad hoc proposal. As Skillmon pointed out, there was an unnecessary expandafter
.
documentclassbeamer
usepackagegraphicx
AtBeginSubsection
beginframe<beamer>
ifxmylabelempty
else
labelmylabel
fi
tableofcontents[currentsection,currentsubsection]
endframe
xdefmylabelempty
begindocument
sectionrecap
subsectionwhat do we want
beginframewhat do we want
beginitemize
item we want it all
enditemize
endframe
xdefmylabelsym
setbeamertemplatebackground canvas%
~hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]./symmetry_breaking.png
subsection[problem when you can zip]problem when you can zip
xdefmylabelempty
beamertemplateshadingbackgroundblue!01!whitewhite
beginframe
frametitlezipping solves everything
Lorem ipsum
endframe
subsection1234
beginframe
frametitleconclusion
beginitemize
item headache ahead
item<2-> Bonus points for those who spotted the mistake on
slide~refsym
enditemize
endframe
enddocument
This is an ad hoc proposal. As Skillmon pointed out, there was an unnecessary expandafter
.
documentclassbeamer
usepackagegraphicx
AtBeginSubsection
beginframe<beamer>
ifxmylabelempty
else
labelmylabel
fi
tableofcontents[currentsection,currentsubsection]
endframe
xdefmylabelempty
begindocument
sectionrecap
subsectionwhat do we want
beginframewhat do we want
beginitemize
item we want it all
enditemize
endframe
xdefmylabelsym
setbeamertemplatebackground canvas%
~hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]./symmetry_breaking.png
subsection[problem when you can zip]problem when you can zip
xdefmylabelempty
beamertemplateshadingbackgroundblue!01!whitewhite
beginframe
frametitlezipping solves everything
Lorem ipsum
endframe
subsection1234
beginframe
frametitleconclusion
beginitemize
item headache ahead
item<2-> Bonus points for those who spotted the mistake on
slide~refsym
enditemize
endframe
enddocument
edited 2 hours ago
answered 2 hours ago
marmot
59.3k463128
59.3k463128
add a comment |Â
add a comment |Â
up vote
2
down vote
Add a command with which you can choose to label the next subsection added with AtBeginSubsection
to your code:
documentclassbeamer
usepackagegraphicx
newififLabelSubSec
newcommandLabelSubSec[1]
%
globalLabelSubSectrue
gdefSubSecLabel#1%
AtBeginSubsection
%
beginframe<beamer>
ifLabelSubSec
globalLabelSubSecfalse
labelSubSecLabel%
fi
tableofcontents[currentsection,currentsubsection]
endframe%
setcountersecnumdepth2
begindocument
sectionrecap
subsectionwhat do we want
beginframewhat do we want
beginitemize
item we want it all
enditemize
endframe
setbeamertemplatebackground canvas%
~hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]example-image-duck
LabelSubSecsym
subsection[problem when you can zip]problem when you can zip
beamertemplateshadingbackgroundblue!01!whitewhite
beginframe
frametitlezipping solves everything
Lorem ipsum
endframe
subsection1234
beginframe
frametitleconclusion
beginitemize
item headache ahead
item<2-> Bonus points for those who spotted the mistake on slide~refsym
enditemize
endframe
enddocument
add a comment |Â
up vote
2
down vote
Add a command with which you can choose to label the next subsection added with AtBeginSubsection
to your code:
documentclassbeamer
usepackagegraphicx
newififLabelSubSec
newcommandLabelSubSec[1]
%
globalLabelSubSectrue
gdefSubSecLabel#1%
AtBeginSubsection
%
beginframe<beamer>
ifLabelSubSec
globalLabelSubSecfalse
labelSubSecLabel%
fi
tableofcontents[currentsection,currentsubsection]
endframe%
setcountersecnumdepth2
begindocument
sectionrecap
subsectionwhat do we want
beginframewhat do we want
beginitemize
item we want it all
enditemize
endframe
setbeamertemplatebackground canvas%
~hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]example-image-duck
LabelSubSecsym
subsection[problem when you can zip]problem when you can zip
beamertemplateshadingbackgroundblue!01!whitewhite
beginframe
frametitlezipping solves everything
Lorem ipsum
endframe
subsection1234
beginframe
frametitleconclusion
beginitemize
item headache ahead
item<2-> Bonus points for those who spotted the mistake on slide~refsym
enditemize
endframe
enddocument
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Add a command with which you can choose to label the next subsection added with AtBeginSubsection
to your code:
documentclassbeamer
usepackagegraphicx
newififLabelSubSec
newcommandLabelSubSec[1]
%
globalLabelSubSectrue
gdefSubSecLabel#1%
AtBeginSubsection
%
beginframe<beamer>
ifLabelSubSec
globalLabelSubSecfalse
labelSubSecLabel%
fi
tableofcontents[currentsection,currentsubsection]
endframe%
setcountersecnumdepth2
begindocument
sectionrecap
subsectionwhat do we want
beginframewhat do we want
beginitemize
item we want it all
enditemize
endframe
setbeamertemplatebackground canvas%
~hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]example-image-duck
LabelSubSecsym
subsection[problem when you can zip]problem when you can zip
beamertemplateshadingbackgroundblue!01!whitewhite
beginframe
frametitlezipping solves everything
Lorem ipsum
endframe
subsection1234
beginframe
frametitleconclusion
beginitemize
item headache ahead
item<2-> Bonus points for those who spotted the mistake on slide~refsym
enditemize
endframe
enddocument
Add a command with which you can choose to label the next subsection added with AtBeginSubsection
to your code:
documentclassbeamer
usepackagegraphicx
newififLabelSubSec
newcommandLabelSubSec[1]
%
globalLabelSubSectrue
gdefSubSecLabel#1%
AtBeginSubsection
%
beginframe<beamer>
ifLabelSubSec
globalLabelSubSecfalse
labelSubSecLabel%
fi
tableofcontents[currentsection,currentsubsection]
endframe%
setcountersecnumdepth2
begindocument
sectionrecap
subsectionwhat do we want
beginframewhat do we want
beginitemize
item we want it all
enditemize
endframe
setbeamertemplatebackground canvas%
~hspace.8textwidthincludegraphics[width=.2paperwidth,height=paperheight]example-image-duck
LabelSubSecsym
subsection[problem when you can zip]problem when you can zip
beamertemplateshadingbackgroundblue!01!whitewhite
beginframe
frametitlezipping solves everything
Lorem ipsum
endframe
subsection1234
beginframe
frametitleconclusion
beginitemize
item headache ahead
item<2-> Bonus points for those who spotted the mistake on slide~refsym
enditemize
endframe
enddocument
edited 2 hours ago
answered 2 hours ago
Skillmon
18k11636
18k11636
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f452005%2fadd-a-label-to-a-atbeginsection-slide%23new-answer', 'question_page');
);
Post as a guest
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
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
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
Unrelated to the problem, but you don't need
usepackagegraphicx
with beamer.â samcarter
23 mins ago