Beamer frametitle continuation contingent on framebreak












1















I have the following MWE. The result will title the first frame as "Frame 1", the second as "Frame 1 (II)" and the third as "Frame 2".



What I need is that the frametitle continuation also occurs on the first frame of frames that are created via framebreak, but not on frames that have no framebreak. I.e., this example should have the titles "Frame 1 (I)", "Frame 2 (II)", and "Frame 2".
However, when removing the from second option, the third frame will also have a roman (I) added to its title.



How can I tell LaTeX to only add "(I)" to a frame title if the frame is the first of several frames due to the use of framebreak?



I could not find a solution to this online, which made me wonder if I am trying something that I should not try in the first place - I want to have to change the frame title and layout only once, even though the (closely related) content will spread over 2 or 3 frames, and the framebreak option seems suitable, no?



documentclass[t, sansserif, onlymath, 10pt]{beamer}

setbeamertemplate{frametitle continuation}[from second][(insertcontinuationcountroman )]


begin{document}

begin{frame}[allowframebreaks]frametitle{Frame 1}
testtest1a

framebreak

testtest1b
end{frame}

begin{frame}[allowframebreaks]frametitle{Frame 2}
testtest2
end{frame}

end{document}









share|improve this question


















  • 1





    Is allowframebreaks needed for Frame 2 ?

    – Hafid Boukhoulda
    Feb 15 at 19:18











  • No, it is not needed. You are right, when removing it, no frame continuation occurs. Thank you.

    – Marie. P.
    Feb 16 at 9:33
















1















I have the following MWE. The result will title the first frame as "Frame 1", the second as "Frame 1 (II)" and the third as "Frame 2".



What I need is that the frametitle continuation also occurs on the first frame of frames that are created via framebreak, but not on frames that have no framebreak. I.e., this example should have the titles "Frame 1 (I)", "Frame 2 (II)", and "Frame 2".
However, when removing the from second option, the third frame will also have a roman (I) added to its title.



How can I tell LaTeX to only add "(I)" to a frame title if the frame is the first of several frames due to the use of framebreak?



I could not find a solution to this online, which made me wonder if I am trying something that I should not try in the first place - I want to have to change the frame title and layout only once, even though the (closely related) content will spread over 2 or 3 frames, and the framebreak option seems suitable, no?



documentclass[t, sansserif, onlymath, 10pt]{beamer}

setbeamertemplate{frametitle continuation}[from second][(insertcontinuationcountroman )]


begin{document}

begin{frame}[allowframebreaks]frametitle{Frame 1}
testtest1a

framebreak

testtest1b
end{frame}

begin{frame}[allowframebreaks]frametitle{Frame 2}
testtest2
end{frame}

end{document}









share|improve this question


















  • 1





    Is allowframebreaks needed for Frame 2 ?

    – Hafid Boukhoulda
    Feb 15 at 19:18











  • No, it is not needed. You are right, when removing it, no frame continuation occurs. Thank you.

    – Marie. P.
    Feb 16 at 9:33














1












1








1








I have the following MWE. The result will title the first frame as "Frame 1", the second as "Frame 1 (II)" and the third as "Frame 2".



What I need is that the frametitle continuation also occurs on the first frame of frames that are created via framebreak, but not on frames that have no framebreak. I.e., this example should have the titles "Frame 1 (I)", "Frame 2 (II)", and "Frame 2".
However, when removing the from second option, the third frame will also have a roman (I) added to its title.



How can I tell LaTeX to only add "(I)" to a frame title if the frame is the first of several frames due to the use of framebreak?



I could not find a solution to this online, which made me wonder if I am trying something that I should not try in the first place - I want to have to change the frame title and layout only once, even though the (closely related) content will spread over 2 or 3 frames, and the framebreak option seems suitable, no?



documentclass[t, sansserif, onlymath, 10pt]{beamer}

setbeamertemplate{frametitle continuation}[from second][(insertcontinuationcountroman )]


begin{document}

begin{frame}[allowframebreaks]frametitle{Frame 1}
testtest1a

framebreak

testtest1b
end{frame}

begin{frame}[allowframebreaks]frametitle{Frame 2}
testtest2
end{frame}

end{document}









share|improve this question














I have the following MWE. The result will title the first frame as "Frame 1", the second as "Frame 1 (II)" and the third as "Frame 2".



What I need is that the frametitle continuation also occurs on the first frame of frames that are created via framebreak, but not on frames that have no framebreak. I.e., this example should have the titles "Frame 1 (I)", "Frame 2 (II)", and "Frame 2".
However, when removing the from second option, the third frame will also have a roman (I) added to its title.



How can I tell LaTeX to only add "(I)" to a frame title if the frame is the first of several frames due to the use of framebreak?



I could not find a solution to this online, which made me wonder if I am trying something that I should not try in the first place - I want to have to change the frame title and layout only once, even though the (closely related) content will spread over 2 or 3 frames, and the framebreak option seems suitable, no?



documentclass[t, sansserif, onlymath, 10pt]{beamer}

setbeamertemplate{frametitle continuation}[from second][(insertcontinuationcountroman )]


begin{document}

begin{frame}[allowframebreaks]frametitle{Frame 1}
testtest1a

framebreak

testtest1b
end{frame}

begin{frame}[allowframebreaks]frametitle{Frame 2}
testtest2
end{frame}

end{document}






beamer frame-title






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 15 at 16:09









Marie. P.Marie. P.

213213




213213








  • 1





    Is allowframebreaks needed for Frame 2 ?

    – Hafid Boukhoulda
    Feb 15 at 19:18











  • No, it is not needed. You are right, when removing it, no frame continuation occurs. Thank you.

    – Marie. P.
    Feb 16 at 9:33














  • 1





    Is allowframebreaks needed for Frame 2 ?

    – Hafid Boukhoulda
    Feb 15 at 19:18











  • No, it is not needed. You are right, when removing it, no frame continuation occurs. Thank you.

    – Marie. P.
    Feb 16 at 9:33








1




1





Is allowframebreaks needed for Frame 2 ?

– Hafid Boukhoulda
Feb 15 at 19:18





Is allowframebreaks needed for Frame 2 ?

– Hafid Boukhoulda
Feb 15 at 19:18













No, it is not needed. You are right, when removing it, no frame continuation occurs. Thank you.

– Marie. P.
Feb 16 at 9:33





No, it is not needed. You are right, when removing it, no frame continuation occurs. Thank you.

– Marie. P.
Feb 16 at 9:33










1 Answer
1






active

oldest

votes


















1














The frame title continuation text is only added if the frame is defined with the allowframebreaks option which allows the frame content to be broken up into several frames.



To surround the frame title continuation numbers by two parentheses we can use: addtobeamertemplate{frametitle continuation}{(}{)}



And also removing the allowframebreaks frame option will automatically remove the frame title continuation text.



documentclass[ sansserif, onlymath, 10pt]{beamer}

addtobeamertemplate{frametitle continuation}{(}{)}

begin{document}

begin{frame}[allowframebreaks]
frametitle{Frame broken up into two frames}
centering
First page content of the frame

framebreak

Second page content of the frame

end{frame}

begin{frame}
frametitle{Single frame}

centering
Frame content

end{frame}

end{document}


enter image description here






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%2f475051%2fbeamer-frametitle-continuation-contingent-on-framebreak%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









    1














    The frame title continuation text is only added if the frame is defined with the allowframebreaks option which allows the frame content to be broken up into several frames.



    To surround the frame title continuation numbers by two parentheses we can use: addtobeamertemplate{frametitle continuation}{(}{)}



    And also removing the allowframebreaks frame option will automatically remove the frame title continuation text.



    documentclass[ sansserif, onlymath, 10pt]{beamer}

    addtobeamertemplate{frametitle continuation}{(}{)}

    begin{document}

    begin{frame}[allowframebreaks]
    frametitle{Frame broken up into two frames}
    centering
    First page content of the frame

    framebreak

    Second page content of the frame

    end{frame}

    begin{frame}
    frametitle{Single frame}

    centering
    Frame content

    end{frame}

    end{document}


    enter image description here






    share|improve this answer




























      1














      The frame title continuation text is only added if the frame is defined with the allowframebreaks option which allows the frame content to be broken up into several frames.



      To surround the frame title continuation numbers by two parentheses we can use: addtobeamertemplate{frametitle continuation}{(}{)}



      And also removing the allowframebreaks frame option will automatically remove the frame title continuation text.



      documentclass[ sansserif, onlymath, 10pt]{beamer}

      addtobeamertemplate{frametitle continuation}{(}{)}

      begin{document}

      begin{frame}[allowframebreaks]
      frametitle{Frame broken up into two frames}
      centering
      First page content of the frame

      framebreak

      Second page content of the frame

      end{frame}

      begin{frame}
      frametitle{Single frame}

      centering
      Frame content

      end{frame}

      end{document}


      enter image description here






      share|improve this answer


























        1












        1








        1







        The frame title continuation text is only added if the frame is defined with the allowframebreaks option which allows the frame content to be broken up into several frames.



        To surround the frame title continuation numbers by two parentheses we can use: addtobeamertemplate{frametitle continuation}{(}{)}



        And also removing the allowframebreaks frame option will automatically remove the frame title continuation text.



        documentclass[ sansserif, onlymath, 10pt]{beamer}

        addtobeamertemplate{frametitle continuation}{(}{)}

        begin{document}

        begin{frame}[allowframebreaks]
        frametitle{Frame broken up into two frames}
        centering
        First page content of the frame

        framebreak

        Second page content of the frame

        end{frame}

        begin{frame}
        frametitle{Single frame}

        centering
        Frame content

        end{frame}

        end{document}


        enter image description here






        share|improve this answer













        The frame title continuation text is only added if the frame is defined with the allowframebreaks option which allows the frame content to be broken up into several frames.



        To surround the frame title continuation numbers by two parentheses we can use: addtobeamertemplate{frametitle continuation}{(}{)}



        And also removing the allowframebreaks frame option will automatically remove the frame title continuation text.



        documentclass[ sansserif, onlymath, 10pt]{beamer}

        addtobeamertemplate{frametitle continuation}{(}{)}

        begin{document}

        begin{frame}[allowframebreaks]
        frametitle{Frame broken up into two frames}
        centering
        First page content of the frame

        framebreak

        Second page content of the frame

        end{frame}

        begin{frame}
        frametitle{Single frame}

        centering
        Frame content

        end{frame}

        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 16 at 16:27









        Hafid BoukhouldaHafid Boukhoulda

        3,8221622




        3,8221622






























            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%2f475051%2fbeamer-frametitle-continuation-contingent-on-framebreak%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 change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

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