Beamer: count included PDF for frame numbering












2















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.










share|improve this question

























  • 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 not frame

    – samcarter
    Jan 30 at 21:54
















2















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.










share|improve this question

























  • 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 not frame

    – samcarter
    Jan 30 at 21:54














2












2








2








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 30 at 17:42







Juan

















asked Jan 30 at 17:23









JuanJuan

255




255













  • 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 not frame

    – samcarter
    Jan 30 at 21:54



















  • 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 not frame

    – 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










1 Answer
1






active

oldest

votes


















3














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}





share|improve this answer























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









    3














    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}





    share|improve this answer




























      3














      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}





      share|improve this answer


























        3












        3








        3







        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}





        share|improve this answer













        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}






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 30 at 21:52









        samcartersamcarter

        1




        1






























            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%2f472599%2fbeamer-count-included-pdf-for-frame-numbering%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

            mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?