beamer — making visible a part of an invisible block (theorem)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite












I have the following problem:



I have a theorem and want to show only one part of it first, without showing the head of the theorem. I tried:



documentclass[11pt]beamer
usethemeMalmoe
usepackage[utf8]inputenc
usepackage[german]babel
usepackage[T1]fontenc
usepackageamsmath
usepackageamsfonts
usepackageamssymb
usepackagegraphicx

begindocument


beginframeA title
onslide<1->Motivational text.
visible<3->
begintheorem
We have that
beginalign*
visible<2->sqrtpi = int_-infty^infty e^-x^2 textd x
endalign*
endtheorem
endframe

enddocument


what I get:
enter image description here



what I want:
enter image description here



EDIT:



the improved code



documentclass[11pt]beamer
usethemeMalmoe
usecolorthemeseagull
usepackage[utf8]inputenc
usepackage[german]babel
usepackage[T1]fontenc
usepackageamsmath
usepackageamsfonts
usepackageamssymb
usepackagegraphicx
usepackagexcolor

begindocument


definecolorseagullgrayHTMLCCCCCC

beginframeA title
onslide<1->Motivational text.
only<1-2>setbeamercolorblock titlefg=seagullgray
begintheorem
visible<3->We have that
beginalign*
visible<2->sqrtpi visible<3->= int_-infty^infty e^-x^2textd x
endalign*
endtheorem
endframe

enddocument


yields
enter image description here



In this compiler the color #CCCCCC doesnt even seem to fit.







share|improve this question


























    up vote
    4
    down vote

    favorite












    I have the following problem:



    I have a theorem and want to show only one part of it first, without showing the head of the theorem. I tried:



    documentclass[11pt]beamer
    usethemeMalmoe
    usepackage[utf8]inputenc
    usepackage[german]babel
    usepackage[T1]fontenc
    usepackageamsmath
    usepackageamsfonts
    usepackageamssymb
    usepackagegraphicx

    begindocument


    beginframeA title
    onslide<1->Motivational text.
    visible<3->
    begintheorem
    We have that
    beginalign*
    visible<2->sqrtpi = int_-infty^infty e^-x^2 textd x
    endalign*
    endtheorem
    endframe

    enddocument


    what I get:
    enter image description here



    what I want:
    enter image description here



    EDIT:



    the improved code



    documentclass[11pt]beamer
    usethemeMalmoe
    usecolorthemeseagull
    usepackage[utf8]inputenc
    usepackage[german]babel
    usepackage[T1]fontenc
    usepackageamsmath
    usepackageamsfonts
    usepackageamssymb
    usepackagegraphicx
    usepackagexcolor

    begindocument


    definecolorseagullgrayHTMLCCCCCC

    beginframeA title
    onslide<1->Motivational text.
    only<1-2>setbeamercolorblock titlefg=seagullgray
    begintheorem
    visible<3->We have that
    beginalign*
    visible<2->sqrtpi visible<3->= int_-infty^infty e^-x^2textd x
    endalign*
    endtheorem
    endframe

    enddocument


    yields
    enter image description here



    In this compiler the color #CCCCCC doesnt even seem to fit.







    share|improve this question
























      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      I have the following problem:



      I have a theorem and want to show only one part of it first, without showing the head of the theorem. I tried:



      documentclass[11pt]beamer
      usethemeMalmoe
      usepackage[utf8]inputenc
      usepackage[german]babel
      usepackage[T1]fontenc
      usepackageamsmath
      usepackageamsfonts
      usepackageamssymb
      usepackagegraphicx

      begindocument


      beginframeA title
      onslide<1->Motivational text.
      visible<3->
      begintheorem
      We have that
      beginalign*
      visible<2->sqrtpi = int_-infty^infty e^-x^2 textd x
      endalign*
      endtheorem
      endframe

      enddocument


      what I get:
      enter image description here



      what I want:
      enter image description here



      EDIT:



      the improved code



      documentclass[11pt]beamer
      usethemeMalmoe
      usecolorthemeseagull
      usepackage[utf8]inputenc
      usepackage[german]babel
      usepackage[T1]fontenc
      usepackageamsmath
      usepackageamsfonts
      usepackageamssymb
      usepackagegraphicx
      usepackagexcolor

      begindocument


      definecolorseagullgrayHTMLCCCCCC

      beginframeA title
      onslide<1->Motivational text.
      only<1-2>setbeamercolorblock titlefg=seagullgray
      begintheorem
      visible<3->We have that
      beginalign*
      visible<2->sqrtpi visible<3->= int_-infty^infty e^-x^2textd x
      endalign*
      endtheorem
      endframe

      enddocument


      yields
      enter image description here



      In this compiler the color #CCCCCC doesnt even seem to fit.







      share|improve this question














      I have the following problem:



      I have a theorem and want to show only one part of it first, without showing the head of the theorem. I tried:



      documentclass[11pt]beamer
      usethemeMalmoe
      usepackage[utf8]inputenc
      usepackage[german]babel
      usepackage[T1]fontenc
      usepackageamsmath
      usepackageamsfonts
      usepackageamssymb
      usepackagegraphicx

      begindocument


      beginframeA title
      onslide<1->Motivational text.
      visible<3->
      begintheorem
      We have that
      beginalign*
      visible<2->sqrtpi = int_-infty^infty e^-x^2 textd x
      endalign*
      endtheorem
      endframe

      enddocument


      what I get:
      enter image description here



      what I want:
      enter image description here



      EDIT:



      the improved code



      documentclass[11pt]beamer
      usethemeMalmoe
      usecolorthemeseagull
      usepackage[utf8]inputenc
      usepackage[german]babel
      usepackage[T1]fontenc
      usepackageamsmath
      usepackageamsfonts
      usepackageamssymb
      usepackagegraphicx
      usepackagexcolor

      begindocument


      definecolorseagullgrayHTMLCCCCCC

      beginframeA title
      onslide<1->Motivational text.
      only<1-2>setbeamercolorblock titlefg=seagullgray
      begintheorem
      visible<3->We have that
      beginalign*
      visible<2->sqrtpi visible<3->= int_-infty^infty e^-x^2textd x
      endalign*
      endtheorem
      endframe

      enddocument


      yields
      enter image description here



      In this compiler the color #CCCCCC doesnt even seem to fit.









      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 8 at 15:32









      samcarter

      75k786241




      75k786241










      asked Sep 8 at 13:15









      Falrach

      1405




      1405




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          Maybe a bit hacky but one could simply change the colour of the title to hide it:



          documentclass[11pt]beamer
          usethemeMalmoe
          usepackage[utf8]inputenc
          usepackage[german]babel
          usepackage[T1]fontenc
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          %usepackagegraphicx

          begindocument


          beginframeA title
          onslide<1->Motivational text.
          only<1-2>setbeamercolorblock titlefg=bg
          begintheorem
          visible<3->We have that
          beginalign*
          visible<2->sqrtpi visible<3->= int_-infty^infty e^-x^2 textd x
          endalign*
          endtheorem
          endframe

          enddocument


          enter image description here



          With another colour theme:



          documentclass[11pt]beamer
          usethemeMalmoe
          usecolorthemeseagull
          usepackage[utf8]inputenc
          usepackage[german]babel
          usepackage[T1]fontenc
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          %usepackagegraphicx
          %usepackagexcolor

          begindocument


          beginframeA title
          onslide<1->Motivational text.
          only<1-2>%
          setbeamercolorblock titlefg=bg,bg=bg
          setbeamercolorblock bodybg=bg

          begintheorem
          visible<3->We have that
          beginalign*
          visible<2->sqrtpi visible<3->= int_-infty^infty e^-x^2textd x
          endalign*
          endtheorem
          endframe

          enddocument


          enter image description here



          Off-topic: You don't need usepackagegraphicx nor usepackagexcolor with beamer






          share|improve this answer






















          • Wow! I have not such good imagination and was developing a tikz overlay solution. (+1)
            – koleygr
            Sep 8 at 14:33










          • This is a good idea. But unfortunately I use the colortheme seagull. There the Theorem environment has a gray background. I adapted your answer to this insofar that I set the block title color to #CCCCCC. (+1). But the background stays gray of course.
            – Falrach
            Sep 8 at 14:36







          • 1




            @Falrach If you could make a MWE that demonstrated the problem, I'm sure it can be fixed.
            – samcarter
            Sep 8 at 14:58










          • @koleygr Thanks for the vote. Using tikz overlay is actually also a very good idea. If you already have something it might be interesting to post it as an answer - I would surely upvote it!
            – samcarter
            Sep 8 at 15:04










          • @samcarter I have edited my answer and added the adapted code.
            – Falrach
            Sep 8 at 15:13










          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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%2f449998%2fbeamer-making-visible-a-part-of-an-invisible-block-theorem%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          5
          down vote



          accepted










          Maybe a bit hacky but one could simply change the colour of the title to hide it:



          documentclass[11pt]beamer
          usethemeMalmoe
          usepackage[utf8]inputenc
          usepackage[german]babel
          usepackage[T1]fontenc
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          %usepackagegraphicx

          begindocument


          beginframeA title
          onslide<1->Motivational text.
          only<1-2>setbeamercolorblock titlefg=bg
          begintheorem
          visible<3->We have that
          beginalign*
          visible<2->sqrtpi visible<3->= int_-infty^infty e^-x^2 textd x
          endalign*
          endtheorem
          endframe

          enddocument


          enter image description here



          With another colour theme:



          documentclass[11pt]beamer
          usethemeMalmoe
          usecolorthemeseagull
          usepackage[utf8]inputenc
          usepackage[german]babel
          usepackage[T1]fontenc
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          %usepackagegraphicx
          %usepackagexcolor

          begindocument


          beginframeA title
          onslide<1->Motivational text.
          only<1-2>%
          setbeamercolorblock titlefg=bg,bg=bg
          setbeamercolorblock bodybg=bg

          begintheorem
          visible<3->We have that
          beginalign*
          visible<2->sqrtpi visible<3->= int_-infty^infty e^-x^2textd x
          endalign*
          endtheorem
          endframe

          enddocument


          enter image description here



          Off-topic: You don't need usepackagegraphicx nor usepackagexcolor with beamer






          share|improve this answer






















          • Wow! I have not such good imagination and was developing a tikz overlay solution. (+1)
            – koleygr
            Sep 8 at 14:33










          • This is a good idea. But unfortunately I use the colortheme seagull. There the Theorem environment has a gray background. I adapted your answer to this insofar that I set the block title color to #CCCCCC. (+1). But the background stays gray of course.
            – Falrach
            Sep 8 at 14:36







          • 1




            @Falrach If you could make a MWE that demonstrated the problem, I'm sure it can be fixed.
            – samcarter
            Sep 8 at 14:58










          • @koleygr Thanks for the vote. Using tikz overlay is actually also a very good idea. If you already have something it might be interesting to post it as an answer - I would surely upvote it!
            – samcarter
            Sep 8 at 15:04










          • @samcarter I have edited my answer and added the adapted code.
            – Falrach
            Sep 8 at 15:13














          up vote
          5
          down vote



          accepted










          Maybe a bit hacky but one could simply change the colour of the title to hide it:



          documentclass[11pt]beamer
          usethemeMalmoe
          usepackage[utf8]inputenc
          usepackage[german]babel
          usepackage[T1]fontenc
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          %usepackagegraphicx

          begindocument


          beginframeA title
          onslide<1->Motivational text.
          only<1-2>setbeamercolorblock titlefg=bg
          begintheorem
          visible<3->We have that
          beginalign*
          visible<2->sqrtpi visible<3->= int_-infty^infty e^-x^2 textd x
          endalign*
          endtheorem
          endframe

          enddocument


          enter image description here



          With another colour theme:



          documentclass[11pt]beamer
          usethemeMalmoe
          usecolorthemeseagull
          usepackage[utf8]inputenc
          usepackage[german]babel
          usepackage[T1]fontenc
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          %usepackagegraphicx
          %usepackagexcolor

          begindocument


          beginframeA title
          onslide<1->Motivational text.
          only<1-2>%
          setbeamercolorblock titlefg=bg,bg=bg
          setbeamercolorblock bodybg=bg

          begintheorem
          visible<3->We have that
          beginalign*
          visible<2->sqrtpi visible<3->= int_-infty^infty e^-x^2textd x
          endalign*
          endtheorem
          endframe

          enddocument


          enter image description here



          Off-topic: You don't need usepackagegraphicx nor usepackagexcolor with beamer






          share|improve this answer






















          • Wow! I have not such good imagination and was developing a tikz overlay solution. (+1)
            – koleygr
            Sep 8 at 14:33










          • This is a good idea. But unfortunately I use the colortheme seagull. There the Theorem environment has a gray background. I adapted your answer to this insofar that I set the block title color to #CCCCCC. (+1). But the background stays gray of course.
            – Falrach
            Sep 8 at 14:36







          • 1




            @Falrach If you could make a MWE that demonstrated the problem, I'm sure it can be fixed.
            – samcarter
            Sep 8 at 14:58










          • @koleygr Thanks for the vote. Using tikz overlay is actually also a very good idea. If you already have something it might be interesting to post it as an answer - I would surely upvote it!
            – samcarter
            Sep 8 at 15:04










          • @samcarter I have edited my answer and added the adapted code.
            – Falrach
            Sep 8 at 15:13












          up vote
          5
          down vote



          accepted







          up vote
          5
          down vote



          accepted






          Maybe a bit hacky but one could simply change the colour of the title to hide it:



          documentclass[11pt]beamer
          usethemeMalmoe
          usepackage[utf8]inputenc
          usepackage[german]babel
          usepackage[T1]fontenc
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          %usepackagegraphicx

          begindocument


          beginframeA title
          onslide<1->Motivational text.
          only<1-2>setbeamercolorblock titlefg=bg
          begintheorem
          visible<3->We have that
          beginalign*
          visible<2->sqrtpi visible<3->= int_-infty^infty e^-x^2 textd x
          endalign*
          endtheorem
          endframe

          enddocument


          enter image description here



          With another colour theme:



          documentclass[11pt]beamer
          usethemeMalmoe
          usecolorthemeseagull
          usepackage[utf8]inputenc
          usepackage[german]babel
          usepackage[T1]fontenc
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          %usepackagegraphicx
          %usepackagexcolor

          begindocument


          beginframeA title
          onslide<1->Motivational text.
          only<1-2>%
          setbeamercolorblock titlefg=bg,bg=bg
          setbeamercolorblock bodybg=bg

          begintheorem
          visible<3->We have that
          beginalign*
          visible<2->sqrtpi visible<3->= int_-infty^infty e^-x^2textd x
          endalign*
          endtheorem
          endframe

          enddocument


          enter image description here



          Off-topic: You don't need usepackagegraphicx nor usepackagexcolor with beamer






          share|improve this answer














          Maybe a bit hacky but one could simply change the colour of the title to hide it:



          documentclass[11pt]beamer
          usethemeMalmoe
          usepackage[utf8]inputenc
          usepackage[german]babel
          usepackage[T1]fontenc
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          %usepackagegraphicx

          begindocument


          beginframeA title
          onslide<1->Motivational text.
          only<1-2>setbeamercolorblock titlefg=bg
          begintheorem
          visible<3->We have that
          beginalign*
          visible<2->sqrtpi visible<3->= int_-infty^infty e^-x^2 textd x
          endalign*
          endtheorem
          endframe

          enddocument


          enter image description here



          With another colour theme:



          documentclass[11pt]beamer
          usethemeMalmoe
          usecolorthemeseagull
          usepackage[utf8]inputenc
          usepackage[german]babel
          usepackage[T1]fontenc
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          %usepackagegraphicx
          %usepackagexcolor

          begindocument


          beginframeA title
          onslide<1->Motivational text.
          only<1-2>%
          setbeamercolorblock titlefg=bg,bg=bg
          setbeamercolorblock bodybg=bg

          begintheorem
          visible<3->We have that
          beginalign*
          visible<2->sqrtpi visible<3->= int_-infty^infty e^-x^2textd x
          endalign*
          endtheorem
          endframe

          enddocument


          enter image description here



          Off-topic: You don't need usepackagegraphicx nor usepackagexcolor with beamer







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Sep 8 at 15:23

























          answered Sep 8 at 14:16









          samcarter

          75k786241




          75k786241











          • Wow! I have not such good imagination and was developing a tikz overlay solution. (+1)
            – koleygr
            Sep 8 at 14:33










          • This is a good idea. But unfortunately I use the colortheme seagull. There the Theorem environment has a gray background. I adapted your answer to this insofar that I set the block title color to #CCCCCC. (+1). But the background stays gray of course.
            – Falrach
            Sep 8 at 14:36







          • 1




            @Falrach If you could make a MWE that demonstrated the problem, I'm sure it can be fixed.
            – samcarter
            Sep 8 at 14:58










          • @koleygr Thanks for the vote. Using tikz overlay is actually also a very good idea. If you already have something it might be interesting to post it as an answer - I would surely upvote it!
            – samcarter
            Sep 8 at 15:04










          • @samcarter I have edited my answer and added the adapted code.
            – Falrach
            Sep 8 at 15:13
















          • Wow! I have not such good imagination and was developing a tikz overlay solution. (+1)
            – koleygr
            Sep 8 at 14:33










          • This is a good idea. But unfortunately I use the colortheme seagull. There the Theorem environment has a gray background. I adapted your answer to this insofar that I set the block title color to #CCCCCC. (+1). But the background stays gray of course.
            – Falrach
            Sep 8 at 14:36







          • 1




            @Falrach If you could make a MWE that demonstrated the problem, I'm sure it can be fixed.
            – samcarter
            Sep 8 at 14:58










          • @koleygr Thanks for the vote. Using tikz overlay is actually also a very good idea. If you already have something it might be interesting to post it as an answer - I would surely upvote it!
            – samcarter
            Sep 8 at 15:04










          • @samcarter I have edited my answer and added the adapted code.
            – Falrach
            Sep 8 at 15:13















          Wow! I have not such good imagination and was developing a tikz overlay solution. (+1)
          – koleygr
          Sep 8 at 14:33




          Wow! I have not such good imagination and was developing a tikz overlay solution. (+1)
          – koleygr
          Sep 8 at 14:33












          This is a good idea. But unfortunately I use the colortheme seagull. There the Theorem environment has a gray background. I adapted your answer to this insofar that I set the block title color to #CCCCCC. (+1). But the background stays gray of course.
          – Falrach
          Sep 8 at 14:36





          This is a good idea. But unfortunately I use the colortheme seagull. There the Theorem environment has a gray background. I adapted your answer to this insofar that I set the block title color to #CCCCCC. (+1). But the background stays gray of course.
          – Falrach
          Sep 8 at 14:36





          1




          1




          @Falrach If you could make a MWE that demonstrated the problem, I'm sure it can be fixed.
          – samcarter
          Sep 8 at 14:58




          @Falrach If you could make a MWE that demonstrated the problem, I'm sure it can be fixed.
          – samcarter
          Sep 8 at 14:58












          @koleygr Thanks for the vote. Using tikz overlay is actually also a very good idea. If you already have something it might be interesting to post it as an answer - I would surely upvote it!
          – samcarter
          Sep 8 at 15:04




          @koleygr Thanks for the vote. Using tikz overlay is actually also a very good idea. If you already have something it might be interesting to post it as an answer - I would surely upvote it!
          – samcarter
          Sep 8 at 15:04












          @samcarter I have edited my answer and added the adapted code.
          – Falrach
          Sep 8 at 15:13




          @samcarter I have edited my answer and added the adapted code.
          – Falrach
          Sep 8 at 15:13

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f449998%2fbeamer-making-visible-a-part-of-an-invisible-block-theorem%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          Confectionery