Conditionally hidden slides in beamerBeamer: Hide Backup Slides from Navigation PanelHow can I loop back to a...

Can my sorcerer use a spellbook only to collect spells and scribe scrolls, not cast?

What does “the session was packed” mean in this context?

Why didn't Boeing produce its own regional jet?

Examples of smooth manifolds admitting inbetween one and a continuum of complex structures

What killed these X2 caps?

Alternative to sending password over mail?

In 'Revenger,' what does 'cove' come from?

Is it acceptable for a professor to tell male students to not think that they are smarter than female students?

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?

How can saying a song's name be a copyright violation?

Why was the shrinking from 8″ made only to 5.25″ and not smaller (4″ or less)?

How badly should I try to prevent a user from XSSing themselves?

How dangerous is XSS?

Apex Framework / library for consuming REST services

How does a predictive coding aid in lossless compression?

Should I tell management that I intend to leave due to bad software development practices?

Expand and Contract

What reasons are there for a Capitalist to oppose a 100% inheritance tax?

Is it inappropriate for a student to attend their mentor's dissertation defense?

Why is consensus so controversial in Britain?

How could indestructible materials be used in power generation?

Is it logically or scientifically possible to artificially send energy to the body?

Plagiarism or not?

Solving a recurrence relation (poker chips)



Conditionally hidden slides in beamer


Beamer: Hide Backup Slides from Navigation PanelHow can I loop back to a slide after showing conditional slides in Beamer?jump between framesHiding some slides in student handouts in BeamerCan we add a button in Beamer to see whether the students checked the right answer?How can I go back to main slide from supplemental slide with pressing enter or arrow key?Beamer frame numbering in appendixBeamer: make slide transitions dependant only on slide content when notes hiddenMake each frame (not slide) appear in the PDF bookmarks with beamerSingle-column framed minipage spanning two or more slides in BeamerCreating a hidden (unlisted) section and not breaking the current subsectionAppendixify: Move selected slides to appendix in Beamereffective ways of using beamer to present mathematical equations to a technical audienceChange aspect ratio in beamer for a single frame?Beamer: make some slides inaccessible for usual navigationWhy does Beamer create multiple slides, each updated with the next item, in an itemize environment?













48















When creating a presentation, I sometimes create extra slides that contain additional information, a more thorough explanation, or an extra plot pertaining to certain parts of my talk. These extra slides are usually in a separate PDF and the document is usually only opened if an audience member asks a question or requests information and one of my extra slides supplements my response nicely.



I am wondering if it's possible to insert these slides into my presentation with the two following options:




  1. The extra slides are skipped when progressing through the presentation unless...

  2. I click on a hyperlink placed somewhere on the slide. If clicked, we traverse to the extra slide. From this slide, continuing to the 'next' slide would send us back to the slide that got us here originally.


The above can be accomplished with two (or more) PDFs (one with the presentation, one -- or more -- with the supplemental slides) via hyperref but ideally I would like to only have one document.



I am not familiar enough with ifthen to know if it can be done with that package.



Any help would be much appreciated.










share|improve this question





























    48















    When creating a presentation, I sometimes create extra slides that contain additional information, a more thorough explanation, or an extra plot pertaining to certain parts of my talk. These extra slides are usually in a separate PDF and the document is usually only opened if an audience member asks a question or requests information and one of my extra slides supplements my response nicely.



    I am wondering if it's possible to insert these slides into my presentation with the two following options:




    1. The extra slides are skipped when progressing through the presentation unless...

    2. I click on a hyperlink placed somewhere on the slide. If clicked, we traverse to the extra slide. From this slide, continuing to the 'next' slide would send us back to the slide that got us here originally.


    The above can be accomplished with two (or more) PDFs (one with the presentation, one -- or more -- with the supplemental slides) via hyperref but ideally I would like to only have one document.



    I am not familiar enough with ifthen to know if it can be done with that package.



    Any help would be much appreciated.










    share|improve this question



























      48












      48








      48


      18






      When creating a presentation, I sometimes create extra slides that contain additional information, a more thorough explanation, or an extra plot pertaining to certain parts of my talk. These extra slides are usually in a separate PDF and the document is usually only opened if an audience member asks a question or requests information and one of my extra slides supplements my response nicely.



      I am wondering if it's possible to insert these slides into my presentation with the two following options:




      1. The extra slides are skipped when progressing through the presentation unless...

      2. I click on a hyperlink placed somewhere on the slide. If clicked, we traverse to the extra slide. From this slide, continuing to the 'next' slide would send us back to the slide that got us here originally.


      The above can be accomplished with two (or more) PDFs (one with the presentation, one -- or more -- with the supplemental slides) via hyperref but ideally I would like to only have one document.



      I am not familiar enough with ifthen to know if it can be done with that package.



      Any help would be much appreciated.










      share|improve this question
















      When creating a presentation, I sometimes create extra slides that contain additional information, a more thorough explanation, or an extra plot pertaining to certain parts of my talk. These extra slides are usually in a separate PDF and the document is usually only opened if an audience member asks a question or requests information and one of my extra slides supplements my response nicely.



      I am wondering if it's possible to insert these slides into my presentation with the two following options:




      1. The extra slides are skipped when progressing through the presentation unless...

      2. I click on a hyperlink placed somewhere on the slide. If clicked, we traverse to the extra slide. From this slide, continuing to the 'next' slide would send us back to the slide that got us here originally.


      The above can be accomplished with two (or more) PDFs (one with the presentation, one -- or more -- with the supplemental slides) via hyperref but ideally I would like to only have one document.



      I am not familiar enough with ifthen to know if it can be done with that package.



      Any help would be much appreciated.







      beamer hyperref conditionals






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 6 '12 at 4:49









      Werner

      449k729981705




      449k729981705










      asked Feb 6 '12 at 4:06







      user6967





























          3 Answers
          3






          active

          oldest

          votes


















          59














          See Beamer manual sections 10.7 and 11. Basically, you can use an appendix to make a set of slides after your main presentation (they don't show up in the main ToC). And you can use hyperlink commands to jump to particular slides (or overlays of slides, even). Short example:



          documentclass{beamer}
          usetheme{Warsaw}
          title{The Title}
          author{The Author}
          date{today}
          begin{document}
          section{One}
          begin{frame}[label=main]
          I suspect someone might ask about supplemental material
          hyperlink{supplemental}{beamerbutton{here}}.
          end{frame}
          appendix
          section{More}
          begin{frame}[label=supplemental]
          Supplemental content.
          Back to hyperlink{main}{beamerbutton{main}}.
          end{frame}
          end{document}


          If you need to exclude the appendix slides from the slide counter, see this question.






          share|improve this answer


























          • Of course. I was definitely over-complicating the problem. That was almost too easy ;)

            – user6967
            Feb 6 '12 at 5:30











          • If I have hyperlink{supplemental} in multiple frames then how to go back from the "supplemental content" to the frame from which I clicked the link. One way I can think of is to use the pdf viewer's "previous view" functionality. ( alt + left arrow in adobe reader")

            – dips
            Oct 24 '13 at 16:46








          • 2





            Untested, and may be worth a separate question, but does Acrobatmenu{GoBack}{beamerreturnbutton{}} give you a button that takes you to the previous view?

            – Mike Renfro
            Oct 25 '13 at 21:03



















          4














          When your extra information is not too long, you could try to use layers.



          If somebody asks, you switch between layers in your document. After this, you can switch back to your presentation layer and continue.



          This will not help if your additional material contains many slides (you could define multiple layers, but I think it will become complicated).



          And you are restricted in the usage of or pdf-viewer.



          Example:



          documentclass{beamer}

          usepackage{tikz}
          usepackage{ocg-p}
          usepackage{blindtext}
          usepackage{hyperref}
          usepackage{pgfplots, pgfplotstable}

          %----------------------------------------------------------------%
          begin{document}
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          begin{frame}
          frametitle{Title}
          % Insert links to toggle layer visibility
          toggleocgs[]{pic remark}{Explanation}%Toggle layer

          begin{tikzpicture}
          begin{ocg}{Graphic}{pic}{1}
          begin{axis}[
          ybar stacked, bar width=10mm,
          width=0.9textwidth, height=0.7textheight,
          symbolic x coords={AA,BB,CC,DD},
          xtick=data,
          nodes near coords, nodes near coords align={vertical},
          ]
          addplot [fill=red] coordinates { ({AA},712) ({BB},267) ({CC},240) ({DD},244)};
          addplot [fill=blue] coordinates { ({AA},433) ({BB},151) ({CC},1413) ({DD},50)};
          legend{Active,Inactive}
          end{axis}
          end{ocg}
          %%
          begin{ocg}{Remarks}{remark}{0}
          node [overlay,anchor=south west] at (0,0)
          {parbox[b]{0.8textwidth}{blindtext}};
          end{ocg}
          end{tikzpicture}
          end{frame}

          end{document}


          Result is a one page document:



          enter image description here



          If you click on Explanation you get (if your pdf viewer support layers):



          enter image description here






          share|improve this answer































            0














            I tried to put some slides in the appendix, but it doesn't work on my compiler. If I add an appendix after the first compilation it works, probably because the navigation bar is not yet updated, but after a second compilation the appendix slides are shown in the navigation bar. Usually it is necessary to compile at least twice for updating crossreferences for example. Furthermore, if I use slide show mode of the Apple Preview application all slides, including the ones in the appendix, are shown in any case. Could you please help also me?





            share








            New contributor




            Enrico Filippi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





















              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%2f43555%2fconditionally-hidden-slides-in-beamer%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown
























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              59














              See Beamer manual sections 10.7 and 11. Basically, you can use an appendix to make a set of slides after your main presentation (they don't show up in the main ToC). And you can use hyperlink commands to jump to particular slides (or overlays of slides, even). Short example:



              documentclass{beamer}
              usetheme{Warsaw}
              title{The Title}
              author{The Author}
              date{today}
              begin{document}
              section{One}
              begin{frame}[label=main]
              I suspect someone might ask about supplemental material
              hyperlink{supplemental}{beamerbutton{here}}.
              end{frame}
              appendix
              section{More}
              begin{frame}[label=supplemental]
              Supplemental content.
              Back to hyperlink{main}{beamerbutton{main}}.
              end{frame}
              end{document}


              If you need to exclude the appendix slides from the slide counter, see this question.






              share|improve this answer


























              • Of course. I was definitely over-complicating the problem. That was almost too easy ;)

                – user6967
                Feb 6 '12 at 5:30











              • If I have hyperlink{supplemental} in multiple frames then how to go back from the "supplemental content" to the frame from which I clicked the link. One way I can think of is to use the pdf viewer's "previous view" functionality. ( alt + left arrow in adobe reader")

                – dips
                Oct 24 '13 at 16:46








              • 2





                Untested, and may be worth a separate question, but does Acrobatmenu{GoBack}{beamerreturnbutton{}} give you a button that takes you to the previous view?

                – Mike Renfro
                Oct 25 '13 at 21:03
















              59














              See Beamer manual sections 10.7 and 11. Basically, you can use an appendix to make a set of slides after your main presentation (they don't show up in the main ToC). And you can use hyperlink commands to jump to particular slides (or overlays of slides, even). Short example:



              documentclass{beamer}
              usetheme{Warsaw}
              title{The Title}
              author{The Author}
              date{today}
              begin{document}
              section{One}
              begin{frame}[label=main]
              I suspect someone might ask about supplemental material
              hyperlink{supplemental}{beamerbutton{here}}.
              end{frame}
              appendix
              section{More}
              begin{frame}[label=supplemental]
              Supplemental content.
              Back to hyperlink{main}{beamerbutton{main}}.
              end{frame}
              end{document}


              If you need to exclude the appendix slides from the slide counter, see this question.






              share|improve this answer


























              • Of course. I was definitely over-complicating the problem. That was almost too easy ;)

                – user6967
                Feb 6 '12 at 5:30











              • If I have hyperlink{supplemental} in multiple frames then how to go back from the "supplemental content" to the frame from which I clicked the link. One way I can think of is to use the pdf viewer's "previous view" functionality. ( alt + left arrow in adobe reader")

                – dips
                Oct 24 '13 at 16:46








              • 2





                Untested, and may be worth a separate question, but does Acrobatmenu{GoBack}{beamerreturnbutton{}} give you a button that takes you to the previous view?

                – Mike Renfro
                Oct 25 '13 at 21:03














              59












              59








              59







              See Beamer manual sections 10.7 and 11. Basically, you can use an appendix to make a set of slides after your main presentation (they don't show up in the main ToC). And you can use hyperlink commands to jump to particular slides (or overlays of slides, even). Short example:



              documentclass{beamer}
              usetheme{Warsaw}
              title{The Title}
              author{The Author}
              date{today}
              begin{document}
              section{One}
              begin{frame}[label=main]
              I suspect someone might ask about supplemental material
              hyperlink{supplemental}{beamerbutton{here}}.
              end{frame}
              appendix
              section{More}
              begin{frame}[label=supplemental]
              Supplemental content.
              Back to hyperlink{main}{beamerbutton{main}}.
              end{frame}
              end{document}


              If you need to exclude the appendix slides from the slide counter, see this question.






              share|improve this answer















              See Beamer manual sections 10.7 and 11. Basically, you can use an appendix to make a set of slides after your main presentation (they don't show up in the main ToC). And you can use hyperlink commands to jump to particular slides (or overlays of slides, even). Short example:



              documentclass{beamer}
              usetheme{Warsaw}
              title{The Title}
              author{The Author}
              date{today}
              begin{document}
              section{One}
              begin{frame}[label=main]
              I suspect someone might ask about supplemental material
              hyperlink{supplemental}{beamerbutton{here}}.
              end{frame}
              appendix
              section{More}
              begin{frame}[label=supplemental]
              Supplemental content.
              Back to hyperlink{main}{beamerbutton{main}}.
              end{frame}
              end{document}


              If you need to exclude the appendix slides from the slide counter, see this question.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Apr 13 '17 at 12:35









              Community

              1




              1










              answered Feb 6 '12 at 4:33









              Mike RenfroMike Renfro

              17.7k14786




              17.7k14786













              • Of course. I was definitely over-complicating the problem. That was almost too easy ;)

                – user6967
                Feb 6 '12 at 5:30











              • If I have hyperlink{supplemental} in multiple frames then how to go back from the "supplemental content" to the frame from which I clicked the link. One way I can think of is to use the pdf viewer's "previous view" functionality. ( alt + left arrow in adobe reader")

                – dips
                Oct 24 '13 at 16:46








              • 2





                Untested, and may be worth a separate question, but does Acrobatmenu{GoBack}{beamerreturnbutton{}} give you a button that takes you to the previous view?

                – Mike Renfro
                Oct 25 '13 at 21:03



















              • Of course. I was definitely over-complicating the problem. That was almost too easy ;)

                – user6967
                Feb 6 '12 at 5:30











              • If I have hyperlink{supplemental} in multiple frames then how to go back from the "supplemental content" to the frame from which I clicked the link. One way I can think of is to use the pdf viewer's "previous view" functionality. ( alt + left arrow in adobe reader")

                – dips
                Oct 24 '13 at 16:46








              • 2





                Untested, and may be worth a separate question, but does Acrobatmenu{GoBack}{beamerreturnbutton{}} give you a button that takes you to the previous view?

                – Mike Renfro
                Oct 25 '13 at 21:03

















              Of course. I was definitely over-complicating the problem. That was almost too easy ;)

              – user6967
              Feb 6 '12 at 5:30





              Of course. I was definitely over-complicating the problem. That was almost too easy ;)

              – user6967
              Feb 6 '12 at 5:30













              If I have hyperlink{supplemental} in multiple frames then how to go back from the "supplemental content" to the frame from which I clicked the link. One way I can think of is to use the pdf viewer's "previous view" functionality. ( alt + left arrow in adobe reader")

              – dips
              Oct 24 '13 at 16:46







              If I have hyperlink{supplemental} in multiple frames then how to go back from the "supplemental content" to the frame from which I clicked the link. One way I can think of is to use the pdf viewer's "previous view" functionality. ( alt + left arrow in adobe reader")

              – dips
              Oct 24 '13 at 16:46






              2




              2





              Untested, and may be worth a separate question, but does Acrobatmenu{GoBack}{beamerreturnbutton{}} give you a button that takes you to the previous view?

              – Mike Renfro
              Oct 25 '13 at 21:03





              Untested, and may be worth a separate question, but does Acrobatmenu{GoBack}{beamerreturnbutton{}} give you a button that takes you to the previous view?

              – Mike Renfro
              Oct 25 '13 at 21:03











              4














              When your extra information is not too long, you could try to use layers.



              If somebody asks, you switch between layers in your document. After this, you can switch back to your presentation layer and continue.



              This will not help if your additional material contains many slides (you could define multiple layers, but I think it will become complicated).



              And you are restricted in the usage of or pdf-viewer.



              Example:



              documentclass{beamer}

              usepackage{tikz}
              usepackage{ocg-p}
              usepackage{blindtext}
              usepackage{hyperref}
              usepackage{pgfplots, pgfplotstable}

              %----------------------------------------------------------------%
              begin{document}
              %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
              begin{frame}
              frametitle{Title}
              % Insert links to toggle layer visibility
              toggleocgs[]{pic remark}{Explanation}%Toggle layer

              begin{tikzpicture}
              begin{ocg}{Graphic}{pic}{1}
              begin{axis}[
              ybar stacked, bar width=10mm,
              width=0.9textwidth, height=0.7textheight,
              symbolic x coords={AA,BB,CC,DD},
              xtick=data,
              nodes near coords, nodes near coords align={vertical},
              ]
              addplot [fill=red] coordinates { ({AA},712) ({BB},267) ({CC},240) ({DD},244)};
              addplot [fill=blue] coordinates { ({AA},433) ({BB},151) ({CC},1413) ({DD},50)};
              legend{Active,Inactive}
              end{axis}
              end{ocg}
              %%
              begin{ocg}{Remarks}{remark}{0}
              node [overlay,anchor=south west] at (0,0)
              {parbox[b]{0.8textwidth}{blindtext}};
              end{ocg}
              end{tikzpicture}
              end{frame}

              end{document}


              Result is a one page document:



              enter image description here



              If you click on Explanation you get (if your pdf viewer support layers):



              enter image description here






              share|improve this answer




























                4














                When your extra information is not too long, you could try to use layers.



                If somebody asks, you switch between layers in your document. After this, you can switch back to your presentation layer and continue.



                This will not help if your additional material contains many slides (you could define multiple layers, but I think it will become complicated).



                And you are restricted in the usage of or pdf-viewer.



                Example:



                documentclass{beamer}

                usepackage{tikz}
                usepackage{ocg-p}
                usepackage{blindtext}
                usepackage{hyperref}
                usepackage{pgfplots, pgfplotstable}

                %----------------------------------------------------------------%
                begin{document}
                %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                begin{frame}
                frametitle{Title}
                % Insert links to toggle layer visibility
                toggleocgs[]{pic remark}{Explanation}%Toggle layer

                begin{tikzpicture}
                begin{ocg}{Graphic}{pic}{1}
                begin{axis}[
                ybar stacked, bar width=10mm,
                width=0.9textwidth, height=0.7textheight,
                symbolic x coords={AA,BB,CC,DD},
                xtick=data,
                nodes near coords, nodes near coords align={vertical},
                ]
                addplot [fill=red] coordinates { ({AA},712) ({BB},267) ({CC},240) ({DD},244)};
                addplot [fill=blue] coordinates { ({AA},433) ({BB},151) ({CC},1413) ({DD},50)};
                legend{Active,Inactive}
                end{axis}
                end{ocg}
                %%
                begin{ocg}{Remarks}{remark}{0}
                node [overlay,anchor=south west] at (0,0)
                {parbox[b]{0.8textwidth}{blindtext}};
                end{ocg}
                end{tikzpicture}
                end{frame}

                end{document}


                Result is a one page document:



                enter image description here



                If you click on Explanation you get (if your pdf viewer support layers):



                enter image description here






                share|improve this answer


























                  4












                  4








                  4







                  When your extra information is not too long, you could try to use layers.



                  If somebody asks, you switch between layers in your document. After this, you can switch back to your presentation layer and continue.



                  This will not help if your additional material contains many slides (you could define multiple layers, but I think it will become complicated).



                  And you are restricted in the usage of or pdf-viewer.



                  Example:



                  documentclass{beamer}

                  usepackage{tikz}
                  usepackage{ocg-p}
                  usepackage{blindtext}
                  usepackage{hyperref}
                  usepackage{pgfplots, pgfplotstable}

                  %----------------------------------------------------------------%
                  begin{document}
                  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                  begin{frame}
                  frametitle{Title}
                  % Insert links to toggle layer visibility
                  toggleocgs[]{pic remark}{Explanation}%Toggle layer

                  begin{tikzpicture}
                  begin{ocg}{Graphic}{pic}{1}
                  begin{axis}[
                  ybar stacked, bar width=10mm,
                  width=0.9textwidth, height=0.7textheight,
                  symbolic x coords={AA,BB,CC,DD},
                  xtick=data,
                  nodes near coords, nodes near coords align={vertical},
                  ]
                  addplot [fill=red] coordinates { ({AA},712) ({BB},267) ({CC},240) ({DD},244)};
                  addplot [fill=blue] coordinates { ({AA},433) ({BB},151) ({CC},1413) ({DD},50)};
                  legend{Active,Inactive}
                  end{axis}
                  end{ocg}
                  %%
                  begin{ocg}{Remarks}{remark}{0}
                  node [overlay,anchor=south west] at (0,0)
                  {parbox[b]{0.8textwidth}{blindtext}};
                  end{ocg}
                  end{tikzpicture}
                  end{frame}

                  end{document}


                  Result is a one page document:



                  enter image description here



                  If you click on Explanation you get (if your pdf viewer support layers):



                  enter image description here






                  share|improve this answer













                  When your extra information is not too long, you could try to use layers.



                  If somebody asks, you switch between layers in your document. After this, you can switch back to your presentation layer and continue.



                  This will not help if your additional material contains many slides (you could define multiple layers, but I think it will become complicated).



                  And you are restricted in the usage of or pdf-viewer.



                  Example:



                  documentclass{beamer}

                  usepackage{tikz}
                  usepackage{ocg-p}
                  usepackage{blindtext}
                  usepackage{hyperref}
                  usepackage{pgfplots, pgfplotstable}

                  %----------------------------------------------------------------%
                  begin{document}
                  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                  begin{frame}
                  frametitle{Title}
                  % Insert links to toggle layer visibility
                  toggleocgs[]{pic remark}{Explanation}%Toggle layer

                  begin{tikzpicture}
                  begin{ocg}{Graphic}{pic}{1}
                  begin{axis}[
                  ybar stacked, bar width=10mm,
                  width=0.9textwidth, height=0.7textheight,
                  symbolic x coords={AA,BB,CC,DD},
                  xtick=data,
                  nodes near coords, nodes near coords align={vertical},
                  ]
                  addplot [fill=red] coordinates { ({AA},712) ({BB},267) ({CC},240) ({DD},244)};
                  addplot [fill=blue] coordinates { ({AA},433) ({BB},151) ({CC},1413) ({DD},50)};
                  legend{Active,Inactive}
                  end{axis}
                  end{ocg}
                  %%
                  begin{ocg}{Remarks}{remark}{0}
                  node [overlay,anchor=south west] at (0,0)
                  {parbox[b]{0.8textwidth}{blindtext}};
                  end{ocg}
                  end{tikzpicture}
                  end{frame}

                  end{document}


                  Result is a one page document:



                  enter image description here



                  If you click on Explanation you get (if your pdf viewer support layers):



                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jul 14 '14 at 19:26









                  knutknut

                  6,45612950




                  6,45612950























                      0














                      I tried to put some slides in the appendix, but it doesn't work on my compiler. If I add an appendix after the first compilation it works, probably because the navigation bar is not yet updated, but after a second compilation the appendix slides are shown in the navigation bar. Usually it is necessary to compile at least twice for updating crossreferences for example. Furthermore, if I use slide show mode of the Apple Preview application all slides, including the ones in the appendix, are shown in any case. Could you please help also me?





                      share








                      New contributor




                      Enrico Filippi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.

























                        0














                        I tried to put some slides in the appendix, but it doesn't work on my compiler. If I add an appendix after the first compilation it works, probably because the navigation bar is not yet updated, but after a second compilation the appendix slides are shown in the navigation bar. Usually it is necessary to compile at least twice for updating crossreferences for example. Furthermore, if I use slide show mode of the Apple Preview application all slides, including the ones in the appendix, are shown in any case. Could you please help also me?





                        share








                        New contributor




                        Enrico Filippi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.























                          0












                          0








                          0







                          I tried to put some slides in the appendix, but it doesn't work on my compiler. If I add an appendix after the first compilation it works, probably because the navigation bar is not yet updated, but after a second compilation the appendix slides are shown in the navigation bar. Usually it is necessary to compile at least twice for updating crossreferences for example. Furthermore, if I use slide show mode of the Apple Preview application all slides, including the ones in the appendix, are shown in any case. Could you please help also me?





                          share








                          New contributor




                          Enrico Filippi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.










                          I tried to put some slides in the appendix, but it doesn't work on my compiler. If I add an appendix after the first compilation it works, probably because the navigation bar is not yet updated, but after a second compilation the appendix slides are shown in the navigation bar. Usually it is necessary to compile at least twice for updating crossreferences for example. Furthermore, if I use slide show mode of the Apple Preview application all slides, including the ones in the appendix, are shown in any case. Could you please help also me?






                          share








                          New contributor




                          Enrico Filippi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.








                          share


                          share






                          New contributor




                          Enrico Filippi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          answered 2 mins ago









                          Enrico FilippiEnrico Filippi

                          1




                          1




                          New contributor




                          Enrico Filippi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.





                          New contributor





                          Enrico Filippi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






                          Enrico Filippi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






























                              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%2f43555%2fconditionally-hidden-slides-in-beamer%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

                              Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

                              Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

                              How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...