Beamer: count included PDF for frame numbering
For adding an existing PDF to a beamer document, it was explained to use
includepdf with the following code:
documentclass{beamer}
usepackage{pdfpages}
usetheme{Montpellier}
addtobeamertemplate{navigation symbols}{}{%
usebeamerfont{footline}%
usebeamercolor[fg]{footline}%
hspace{0.5cm}%
raisebox{1.5pt}{insertframenumber/inserttotalframenumber}
}
begin{document}
{
setbeamercolor{background canvas}{bg=}
includepdf{filea.pdf}
}
end{document}
This way, however, no frame is created and thus, the page (or frame) isn't counted for the numbering in the bottom right (I have two pages 0/20). Since this defies the purpose of numbering at a presentation, I'd like to change this.
beamer page-numbering pdfpages
add a comment |
For adding an existing PDF to a beamer document, it was explained to use
includepdf with the following code:
documentclass{beamer}
usepackage{pdfpages}
usetheme{Montpellier}
addtobeamertemplate{navigation symbols}{}{%
usebeamerfont{footline}%
usebeamercolor[fg]{footline}%
hspace{0.5cm}%
raisebox{1.5pt}{insertframenumber/inserttotalframenumber}
}
begin{document}
{
setbeamercolor{background canvas}{bg=}
includepdf{filea.pdf}
}
end{document}
This way, however, no frame is created and thus, the page (or frame) isn't counted for the numbering in the bottom right (I have two pages 0/20). Since this defies the purpose of numbering at a presentation, I'd like to change this.
beamer page-numbering pdfpages
Tryaddtocounter{frame}{20}
(whatever number of external pages you include)
– samcarter
Jan 30 at 17:28
Your MWE does not use any theme that would show framenumbers....
– samcarter
Jan 30 at 17:30
@samcarter Fixed it, addtocounter doesn't work anyhow.
– Juan
Jan 30 at 17:47
Sorry, my bad. The counter is calledframenumber
and notframe
– samcarter
Jan 30 at 21:54
add a comment |
For adding an existing PDF to a beamer document, it was explained to use
includepdf with the following code:
documentclass{beamer}
usepackage{pdfpages}
usetheme{Montpellier}
addtobeamertemplate{navigation symbols}{}{%
usebeamerfont{footline}%
usebeamercolor[fg]{footline}%
hspace{0.5cm}%
raisebox{1.5pt}{insertframenumber/inserttotalframenumber}
}
begin{document}
{
setbeamercolor{background canvas}{bg=}
includepdf{filea.pdf}
}
end{document}
This way, however, no frame is created and thus, the page (or frame) isn't counted for the numbering in the bottom right (I have two pages 0/20). Since this defies the purpose of numbering at a presentation, I'd like to change this.
beamer page-numbering pdfpages
For adding an existing PDF to a beamer document, it was explained to use
includepdf with the following code:
documentclass{beamer}
usepackage{pdfpages}
usetheme{Montpellier}
addtobeamertemplate{navigation symbols}{}{%
usebeamerfont{footline}%
usebeamercolor[fg]{footline}%
hspace{0.5cm}%
raisebox{1.5pt}{insertframenumber/inserttotalframenumber}
}
begin{document}
{
setbeamercolor{background canvas}{bg=}
includepdf{filea.pdf}
}
end{document}
This way, however, no frame is created and thus, the page (or frame) isn't counted for the numbering in the bottom right (I have two pages 0/20). Since this defies the purpose of numbering at a presentation, I'd like to change this.
beamer page-numbering pdfpages
beamer page-numbering pdfpages
edited Jan 30 at 17:42
Juan
asked Jan 30 at 17:23
JuanJuan
255
255
Tryaddtocounter{frame}{20}
(whatever number of external pages you include)
– samcarter
Jan 30 at 17:28
Your MWE does not use any theme that would show framenumbers....
– samcarter
Jan 30 at 17:30
@samcarter Fixed it, addtocounter doesn't work anyhow.
– Juan
Jan 30 at 17:47
Sorry, my bad. The counter is calledframenumber
and notframe
– samcarter
Jan 30 at 21:54
add a comment |
Tryaddtocounter{frame}{20}
(whatever number of external pages you include)
– samcarter
Jan 30 at 17:28
Your MWE does not use any theme that would show framenumbers....
– samcarter
Jan 30 at 17:30
@samcarter Fixed it, addtocounter doesn't work anyhow.
– Juan
Jan 30 at 17:47
Sorry, my bad. The counter is calledframenumber
and notframe
– samcarter
Jan 30 at 21:54
Try
addtocounter{frame}{20}
(whatever number of external pages you include)– samcarter
Jan 30 at 17:28
Try
addtocounter{frame}{20}
(whatever number of external pages you include)– samcarter
Jan 30 at 17:28
Your MWE does not use any theme that would show framenumbers....
– samcarter
Jan 30 at 17:30
Your MWE does not use any theme that would show framenumbers....
– samcarter
Jan 30 at 17:30
@samcarter Fixed it, addtocounter doesn't work anyhow.
– Juan
Jan 30 at 17:47
@samcarter Fixed it, addtocounter doesn't work anyhow.
– Juan
Jan 30 at 17:47
Sorry, my bad. The counter is called
framenumber
and not frame
– samcarter
Jan 30 at 21:54
Sorry, my bad. The counter is called
framenumber
and not frame
– samcarter
Jan 30 at 21:54
add a comment |
1 Answer
1
active
oldest
votes
You can manually increase the framenumber
counter to take the included pdf into account:
documentclass{beamer}
usepackage{pdfpages}
usetheme{Montpellier}
addtobeamertemplate{navigation symbols}{}{%
usebeamerfont{footline}%
usebeamercolor[fg]{footline}%
hspace{0.5cm}%
raisebox{1.5pt}{insertframenumber/inserttotalframenumber}
}
begin{document}
begin{frame}
content...
end{frame}
{
addtocounter{framenumber}{1}
setbeamercolor{background canvas}{bg=}
includepdf{example-image-a4-numbered}
}
begin{frame}
content...
end{frame}
end{document}
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%2f472599%2fbeamer-count-included-pdf-for-frame-numbering%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
You can manually increase the framenumber
counter to take the included pdf into account:
documentclass{beamer}
usepackage{pdfpages}
usetheme{Montpellier}
addtobeamertemplate{navigation symbols}{}{%
usebeamerfont{footline}%
usebeamercolor[fg]{footline}%
hspace{0.5cm}%
raisebox{1.5pt}{insertframenumber/inserttotalframenumber}
}
begin{document}
begin{frame}
content...
end{frame}
{
addtocounter{framenumber}{1}
setbeamercolor{background canvas}{bg=}
includepdf{example-image-a4-numbered}
}
begin{frame}
content...
end{frame}
end{document}
add a comment |
You can manually increase the framenumber
counter to take the included pdf into account:
documentclass{beamer}
usepackage{pdfpages}
usetheme{Montpellier}
addtobeamertemplate{navigation symbols}{}{%
usebeamerfont{footline}%
usebeamercolor[fg]{footline}%
hspace{0.5cm}%
raisebox{1.5pt}{insertframenumber/inserttotalframenumber}
}
begin{document}
begin{frame}
content...
end{frame}
{
addtocounter{framenumber}{1}
setbeamercolor{background canvas}{bg=}
includepdf{example-image-a4-numbered}
}
begin{frame}
content...
end{frame}
end{document}
add a comment |
You can manually increase the framenumber
counter to take the included pdf into account:
documentclass{beamer}
usepackage{pdfpages}
usetheme{Montpellier}
addtobeamertemplate{navigation symbols}{}{%
usebeamerfont{footline}%
usebeamercolor[fg]{footline}%
hspace{0.5cm}%
raisebox{1.5pt}{insertframenumber/inserttotalframenumber}
}
begin{document}
begin{frame}
content...
end{frame}
{
addtocounter{framenumber}{1}
setbeamercolor{background canvas}{bg=}
includepdf{example-image-a4-numbered}
}
begin{frame}
content...
end{frame}
end{document}
You can manually increase the framenumber
counter to take the included pdf into account:
documentclass{beamer}
usepackage{pdfpages}
usetheme{Montpellier}
addtobeamertemplate{navigation symbols}{}{%
usebeamerfont{footline}%
usebeamercolor[fg]{footline}%
hspace{0.5cm}%
raisebox{1.5pt}{insertframenumber/inserttotalframenumber}
}
begin{document}
begin{frame}
content...
end{frame}
{
addtocounter{framenumber}{1}
setbeamercolor{background canvas}{bg=}
includepdf{example-image-a4-numbered}
}
begin{frame}
content...
end{frame}
end{document}
answered Jan 30 at 21:52
samcartersamcarter
1
1
add a comment |
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%2f472599%2fbeamer-count-included-pdf-for-frame-numbering%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
Try
addtocounter{frame}{20}
(whatever number of external pages you include)– samcarter
Jan 30 at 17:28
Your MWE does not use any theme that would show framenumbers....
– samcarter
Jan 30 at 17:30
@samcarter Fixed it, addtocounter doesn't work anyhow.
– Juan
Jan 30 at 17:47
Sorry, my bad. The counter is called
framenumber
and notframe
– samcarter
Jan 30 at 21:54