Getting error with itemize and column using in succession











up vote
3
down vote

favorite












In my presentation, I need to put two graphs under a list item. I am trying the following code but am getting an error stating that "Missing number, treated as zero. end{frame}". If I remove this piece of code, it works fine. The piece of code is;



begin{frame}[t]{Simulation Results & Observations}
begin{itemize}
item NCMSE based analysis of SiT-OMP & SiT-CoSaMP with variations in Sparsity (S)
end{itemize}
begin{columns}
begin{column}{width=0.5textwidth}
Here is something.
end{column}
begin{column}{width=0.5textwidth}
Here is something.
end{column}
end{columns}
end{frame}









share|improve this question




























    up vote
    3
    down vote

    favorite












    In my presentation, I need to put two graphs under a list item. I am trying the following code but am getting an error stating that "Missing number, treated as zero. end{frame}". If I remove this piece of code, it works fine. The piece of code is;



    begin{frame}[t]{Simulation Results & Observations}
    begin{itemize}
    item NCMSE based analysis of SiT-OMP & SiT-CoSaMP with variations in Sparsity (S)
    end{itemize}
    begin{columns}
    begin{column}{width=0.5textwidth}
    Here is something.
    end{column}
    begin{column}{width=0.5textwidth}
    Here is something.
    end{column}
    end{columns}
    end{frame}









    share|improve this question


























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      In my presentation, I need to put two graphs under a list item. I am trying the following code but am getting an error stating that "Missing number, treated as zero. end{frame}". If I remove this piece of code, it works fine. The piece of code is;



      begin{frame}[t]{Simulation Results & Observations}
      begin{itemize}
      item NCMSE based analysis of SiT-OMP & SiT-CoSaMP with variations in Sparsity (S)
      end{itemize}
      begin{columns}
      begin{column}{width=0.5textwidth}
      Here is something.
      end{column}
      begin{column}{width=0.5textwidth}
      Here is something.
      end{column}
      end{columns}
      end{frame}









      share|improve this question















      In my presentation, I need to put two graphs under a list item. I am trying the following code but am getting an error stating that "Missing number, treated as zero. end{frame}". If I remove this piece of code, it works fine. The piece of code is;



      begin{frame}[t]{Simulation Results & Observations}
      begin{itemize}
      item NCMSE based analysis of SiT-OMP & SiT-CoSaMP with variations in Sparsity (S)
      end{itemize}
      begin{columns}
      begin{column}{width=0.5textwidth}
      Here is something.
      end{column}
      begin{column}{width=0.5textwidth}
      Here is something.
      end{column}
      end{columns}
      end{frame}






      beamer itemize columns






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 days ago









      Bernard

      162k767192




      162k767192










      asked 2 days ago









      Salman Khan

      376




      376






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote



          accepted










          The culprit is width= in begin{column}{width=0.5textwidth}.



          documentclass{beamer}
          begin{document}
          begin{frame}[t]{Simulation Results & Observations}
          begin{itemize}
          item NCMSE based analysis of SiT-OMP & SiT-CoSaMP with variations in Sparsity (S)
          end{itemize}
          begin{columns}
          begin{column}{0.48textwidth}
          Here is something.
          end{column}
          begin{column}{0.48textwidth}
          Here is something.
          end{column}
          end{columns}
          end{frame}
          end{document}


          enter image description here



          EDIT: Decreased the width a tiny bit to prevent the second row from running over the frame. Big thanks to @samcarter!






          share|improve this answer



















          • 2




            Nice answer! Just a tiny suggestion: I would either use begin{columns}[onlytextwidth] or begin{column}{0.48textwidth}. Otherwise the columns will spill over into the margin.
            – samcarter
            2 days ago










          • Thanks everyone :-)
            – Salman Khan
            2 days ago











          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: 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%2f461552%2fgetting-error-with-itemize-and-column-using-in-succession%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








          up vote
          4
          down vote



          accepted










          The culprit is width= in begin{column}{width=0.5textwidth}.



          documentclass{beamer}
          begin{document}
          begin{frame}[t]{Simulation Results & Observations}
          begin{itemize}
          item NCMSE based analysis of SiT-OMP & SiT-CoSaMP with variations in Sparsity (S)
          end{itemize}
          begin{columns}
          begin{column}{0.48textwidth}
          Here is something.
          end{column}
          begin{column}{0.48textwidth}
          Here is something.
          end{column}
          end{columns}
          end{frame}
          end{document}


          enter image description here



          EDIT: Decreased the width a tiny bit to prevent the second row from running over the frame. Big thanks to @samcarter!






          share|improve this answer



















          • 2




            Nice answer! Just a tiny suggestion: I would either use begin{columns}[onlytextwidth] or begin{column}{0.48textwidth}. Otherwise the columns will spill over into the margin.
            – samcarter
            2 days ago










          • Thanks everyone :-)
            – Salman Khan
            2 days ago















          up vote
          4
          down vote



          accepted










          The culprit is width= in begin{column}{width=0.5textwidth}.



          documentclass{beamer}
          begin{document}
          begin{frame}[t]{Simulation Results & Observations}
          begin{itemize}
          item NCMSE based analysis of SiT-OMP & SiT-CoSaMP with variations in Sparsity (S)
          end{itemize}
          begin{columns}
          begin{column}{0.48textwidth}
          Here is something.
          end{column}
          begin{column}{0.48textwidth}
          Here is something.
          end{column}
          end{columns}
          end{frame}
          end{document}


          enter image description here



          EDIT: Decreased the width a tiny bit to prevent the second row from running over the frame. Big thanks to @samcarter!






          share|improve this answer



















          • 2




            Nice answer! Just a tiny suggestion: I would either use begin{columns}[onlytextwidth] or begin{column}{0.48textwidth}. Otherwise the columns will spill over into the margin.
            – samcarter
            2 days ago










          • Thanks everyone :-)
            – Salman Khan
            2 days ago













          up vote
          4
          down vote



          accepted







          up vote
          4
          down vote



          accepted






          The culprit is width= in begin{column}{width=0.5textwidth}.



          documentclass{beamer}
          begin{document}
          begin{frame}[t]{Simulation Results & Observations}
          begin{itemize}
          item NCMSE based analysis of SiT-OMP & SiT-CoSaMP with variations in Sparsity (S)
          end{itemize}
          begin{columns}
          begin{column}{0.48textwidth}
          Here is something.
          end{column}
          begin{column}{0.48textwidth}
          Here is something.
          end{column}
          end{columns}
          end{frame}
          end{document}


          enter image description here



          EDIT: Decreased the width a tiny bit to prevent the second row from running over the frame. Big thanks to @samcarter!






          share|improve this answer














          The culprit is width= in begin{column}{width=0.5textwidth}.



          documentclass{beamer}
          begin{document}
          begin{frame}[t]{Simulation Results & Observations}
          begin{itemize}
          item NCMSE based analysis of SiT-OMP & SiT-CoSaMP with variations in Sparsity (S)
          end{itemize}
          begin{columns}
          begin{column}{0.48textwidth}
          Here is something.
          end{column}
          begin{column}{0.48textwidth}
          Here is something.
          end{column}
          end{columns}
          end{frame}
          end{document}


          enter image description here



          EDIT: Decreased the width a tiny bit to prevent the second row from running over the frame. Big thanks to @samcarter!







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 days ago

























          answered 2 days ago









          marmot

          78.3k487166




          78.3k487166








          • 2




            Nice answer! Just a tiny suggestion: I would either use begin{columns}[onlytextwidth] or begin{column}{0.48textwidth}. Otherwise the columns will spill over into the margin.
            – samcarter
            2 days ago










          • Thanks everyone :-)
            – Salman Khan
            2 days ago














          • 2




            Nice answer! Just a tiny suggestion: I would either use begin{columns}[onlytextwidth] or begin{column}{0.48textwidth}. Otherwise the columns will spill over into the margin.
            – samcarter
            2 days ago










          • Thanks everyone :-)
            – Salman Khan
            2 days ago








          2




          2




          Nice answer! Just a tiny suggestion: I would either use begin{columns}[onlytextwidth] or begin{column}{0.48textwidth}. Otherwise the columns will spill over into the margin.
          – samcarter
          2 days ago




          Nice answer! Just a tiny suggestion: I would either use begin{columns}[onlytextwidth] or begin{column}{0.48textwidth}. Otherwise the columns will spill over into the margin.
          – samcarter
          2 days ago












          Thanks everyone :-)
          – Salman Khan
          2 days ago




          Thanks everyone :-)
          – Salman Khan
          2 days ago


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461552%2fgetting-error-with-itemize-and-column-using-in-succession%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

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          Origin of the phrase “under your belt”?