Unwanted space between documentclass and article in beamer with minted

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











up vote
4
down vote

favorite












Why is there a space between documentclass and article in my inline code?



There are no errors in the log.



% arara: pdflatex: shell : yes 
documentclassbeamer
usepackageminted
newmintedlatexfontsize=footnotesize
newmintinlinelatexfontsize=footnotesize

begindocument
beginframe
frametitleAn example
Why is there a spaces between latexinlinedocumentclass and latexinlinearticle in this inline code: latexinlinedocumentclassarticle?
endframe
enddocument


enter image description here



Disclaimer: I already know the answer, but since it took me an hour to realize it, I thought a Q&A could be useful to future users.










share|improve this question



























    up vote
    4
    down vote

    favorite












    Why is there a space between documentclass and article in my inline code?



    There are no errors in the log.



    % arara: pdflatex: shell : yes 
    documentclassbeamer
    usepackageminted
    newmintedlatexfontsize=footnotesize
    newmintinlinelatexfontsize=footnotesize

    begindocument
    beginframe
    frametitleAn example
    Why is there a spaces between latexinlinedocumentclass and latexinlinearticle in this inline code: latexinlinedocumentclassarticle?
    endframe
    enddocument


    enter image description here



    Disclaimer: I already know the answer, but since it took me an hour to realize it, I thought a Q&A could be useful to future users.










    share|improve this question

























      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      Why is there a space between documentclass and article in my inline code?



      There are no errors in the log.



      % arara: pdflatex: shell : yes 
      documentclassbeamer
      usepackageminted
      newmintedlatexfontsize=footnotesize
      newmintinlinelatexfontsize=footnotesize

      begindocument
      beginframe
      frametitleAn example
      Why is there a spaces between latexinlinedocumentclass and latexinlinearticle in this inline code: latexinlinedocumentclassarticle?
      endframe
      enddocument


      enter image description here



      Disclaimer: I already know the answer, but since it took me an hour to realize it, I thought a Q&A could be useful to future users.










      share|improve this question















      Why is there a space between documentclass and article in my inline code?



      There are no errors in the log.



      % arara: pdflatex: shell : yes 
      documentclassbeamer
      usepackageminted
      newmintedlatexfontsize=footnotesize
      newmintinlinelatexfontsize=footnotesize

      begindocument
      beginframe
      frametitleAn example
      Why is there a spaces between latexinlinedocumentclass and latexinlinearticle in this inline code: latexinlinedocumentclassarticle?
      endframe
      enddocument


      enter image description here



      Disclaimer: I already know the answer, but since it took me an hour to realize it, I thought a Q&A could be useful to future users.







      beamer minted






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 13 mins ago

























      asked 25 mins ago









      CarLaTeX

      25.6k443112




      25.6k443112




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote













          The frame option [fragile] is needed.



          See Section 12.9 of the beamer documentation.



          % arara: pdflatex: shell : yes 
          documentclassbeamer
          usepackageminted
          newmintedlatexfontsize=footnotesize
          newmintinlinelatexfontsize=footnotesize

          begindocument
          beginframe[fragile]
          frametitleAn example
          Why is there a spaces between latexinlinedocumentclass and latexinlinearticle in this inline code: latexinlinedocumentclassarticle?
          endframe
          enddocument


          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',
            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%2f453909%2funwanted-space-between-documentclass-and-article-in-beamer-with-minted%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
            3
            down vote













            The frame option [fragile] is needed.



            See Section 12.9 of the beamer documentation.



            % arara: pdflatex: shell : yes 
            documentclassbeamer
            usepackageminted
            newmintedlatexfontsize=footnotesize
            newmintinlinelatexfontsize=footnotesize

            begindocument
            beginframe[fragile]
            frametitleAn example
            Why is there a spaces between latexinlinedocumentclass and latexinlinearticle in this inline code: latexinlinedocumentclassarticle?
            endframe
            enddocument


            enter image description here






            share|improve this answer
























              up vote
              3
              down vote













              The frame option [fragile] is needed.



              See Section 12.9 of the beamer documentation.



              % arara: pdflatex: shell : yes 
              documentclassbeamer
              usepackageminted
              newmintedlatexfontsize=footnotesize
              newmintinlinelatexfontsize=footnotesize

              begindocument
              beginframe[fragile]
              frametitleAn example
              Why is there a spaces between latexinlinedocumentclass and latexinlinearticle in this inline code: latexinlinedocumentclassarticle?
              endframe
              enddocument


              enter image description here






              share|improve this answer






















                up vote
                3
                down vote










                up vote
                3
                down vote









                The frame option [fragile] is needed.



                See Section 12.9 of the beamer documentation.



                % arara: pdflatex: shell : yes 
                documentclassbeamer
                usepackageminted
                newmintedlatexfontsize=footnotesize
                newmintinlinelatexfontsize=footnotesize

                begindocument
                beginframe[fragile]
                frametitleAn example
                Why is there a spaces between latexinlinedocumentclass and latexinlinearticle in this inline code: latexinlinedocumentclassarticle?
                endframe
                enddocument


                enter image description here






                share|improve this answer












                The frame option [fragile] is needed.



                See Section 12.9 of the beamer documentation.



                % arara: pdflatex: shell : yes 
                documentclassbeamer
                usepackageminted
                newmintedlatexfontsize=footnotesize
                newmintinlinelatexfontsize=footnotesize

                begindocument
                beginframe[fragile]
                frametitleAn example
                Why is there a spaces between latexinlinedocumentclass and latexinlinearticle in this inline code: latexinlinedocumentclassarticle?
                endframe
                enddocument


                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 19 mins ago









                CarLaTeX

                25.6k443112




                25.6k443112



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f453909%2funwanted-space-between-documentclass-and-article-in-beamer-with-minted%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    What does second last employer means? [closed]

                    Installing NextGIS Connect into QGIS 3?

                    One-line joke