Itemizing theorem body












1














Using package amsthm, the desired theorem style achieved,



documentclass{book}
usepackage{amsthm}

newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}

begin{document}
begin{mythm}
This is a normal body text.
end{mythm}
end{document}


enter image description here



But itemizing the body makes trouble,



documentclass{book}
usepackage{amsthm}

newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}

begin{document}
begin{mythm}
begin{itemize}
item This an itemized body text.
item This an itemized body text.
end{itemize}
end{mythm}
end{document}


enter image description here



As the last output shows, first item has jumped to the head line.



How can I bring it back to the body?










share|improve this question
























  • potential duplicate: Enumerate alignment problem in theorem environment
    – barbara beeton
    Apr 30 '16 at 12:58










  • Actually this is not a duplicate. I do not want to align items with what is on head line.
    – Shaqpad
    Apr 30 '16 at 13:01






  • 1




    Use leavevmode before begin{itemize}
    – Christian Hupfer
    Apr 30 '16 at 13:05










  • @Shaqpad -- the use of leavevmode is exactly what that answer recommends, as christian has repeated. items are not aligned with the head line, but treated as a "usual" list. i'll add an example to the cited answer to make this clear.
    – barbara beeton
    Apr 30 '16 at 13:42










  • @Christian Hupfer: leavevmode is not enough, as there will be a spurious vertical space.
    – Bernard
    Apr 30 '16 at 15:00
















1














Using package amsthm, the desired theorem style achieved,



documentclass{book}
usepackage{amsthm}

newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}

begin{document}
begin{mythm}
This is a normal body text.
end{mythm}
end{document}


enter image description here



But itemizing the body makes trouble,



documentclass{book}
usepackage{amsthm}

newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}

begin{document}
begin{mythm}
begin{itemize}
item This an itemized body text.
item This an itemized body text.
end{itemize}
end{mythm}
end{document}


enter image description here



As the last output shows, first item has jumped to the head line.



How can I bring it back to the body?










share|improve this question
























  • potential duplicate: Enumerate alignment problem in theorem environment
    – barbara beeton
    Apr 30 '16 at 12:58










  • Actually this is not a duplicate. I do not want to align items with what is on head line.
    – Shaqpad
    Apr 30 '16 at 13:01






  • 1




    Use leavevmode before begin{itemize}
    – Christian Hupfer
    Apr 30 '16 at 13:05










  • @Shaqpad -- the use of leavevmode is exactly what that answer recommends, as christian has repeated. items are not aligned with the head line, but treated as a "usual" list. i'll add an example to the cited answer to make this clear.
    – barbara beeton
    Apr 30 '16 at 13:42










  • @Christian Hupfer: leavevmode is not enough, as there will be a spurious vertical space.
    – Bernard
    Apr 30 '16 at 15:00














1












1








1


1





Using package amsthm, the desired theorem style achieved,



documentclass{book}
usepackage{amsthm}

newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}

begin{document}
begin{mythm}
This is a normal body text.
end{mythm}
end{document}


enter image description here



But itemizing the body makes trouble,



documentclass{book}
usepackage{amsthm}

newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}

begin{document}
begin{mythm}
begin{itemize}
item This an itemized body text.
item This an itemized body text.
end{itemize}
end{mythm}
end{document}


enter image description here



As the last output shows, first item has jumped to the head line.



How can I bring it back to the body?










share|improve this question















Using package amsthm, the desired theorem style achieved,



documentclass{book}
usepackage{amsthm}

newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}

begin{document}
begin{mythm}
This is a normal body text.
end{mythm}
end{document}


enter image description here



But itemizing the body makes trouble,



documentclass{book}
usepackage{amsthm}

newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}

begin{document}
begin{mythm}
begin{itemize}
item This an itemized body text.
item This an itemized body text.
end{itemize}
end{mythm}
end{document}


enter image description here



As the last output shows, first item has jumped to the head line.



How can I bring it back to the body?







theorems itemize amsthm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 30 '16 at 13:32









Bernard

166k769194




166k769194










asked Apr 30 '16 at 12:55









ShaqpadShaqpad

575




575












  • potential duplicate: Enumerate alignment problem in theorem environment
    – barbara beeton
    Apr 30 '16 at 12:58










  • Actually this is not a duplicate. I do not want to align items with what is on head line.
    – Shaqpad
    Apr 30 '16 at 13:01






  • 1




    Use leavevmode before begin{itemize}
    – Christian Hupfer
    Apr 30 '16 at 13:05










  • @Shaqpad -- the use of leavevmode is exactly what that answer recommends, as christian has repeated. items are not aligned with the head line, but treated as a "usual" list. i'll add an example to the cited answer to make this clear.
    – barbara beeton
    Apr 30 '16 at 13:42










  • @Christian Hupfer: leavevmode is not enough, as there will be a spurious vertical space.
    – Bernard
    Apr 30 '16 at 15:00


















  • potential duplicate: Enumerate alignment problem in theorem environment
    – barbara beeton
    Apr 30 '16 at 12:58










  • Actually this is not a duplicate. I do not want to align items with what is on head line.
    – Shaqpad
    Apr 30 '16 at 13:01






  • 1




    Use leavevmode before begin{itemize}
    – Christian Hupfer
    Apr 30 '16 at 13:05










  • @Shaqpad -- the use of leavevmode is exactly what that answer recommends, as christian has repeated. items are not aligned with the head line, but treated as a "usual" list. i'll add an example to the cited answer to make this clear.
    – barbara beeton
    Apr 30 '16 at 13:42










  • @Christian Hupfer: leavevmode is not enough, as there will be a spurious vertical space.
    – Bernard
    Apr 30 '16 at 15:00
















potential duplicate: Enumerate alignment problem in theorem environment
– barbara beeton
Apr 30 '16 at 12:58




potential duplicate: Enumerate alignment problem in theorem environment
– barbara beeton
Apr 30 '16 at 12:58












Actually this is not a duplicate. I do not want to align items with what is on head line.
– Shaqpad
Apr 30 '16 at 13:01




Actually this is not a duplicate. I do not want to align items with what is on head line.
– Shaqpad
Apr 30 '16 at 13:01




1




1




Use leavevmode before begin{itemize}
– Christian Hupfer
Apr 30 '16 at 13:05




Use leavevmode before begin{itemize}
– Christian Hupfer
Apr 30 '16 at 13:05












@Shaqpad -- the use of leavevmode is exactly what that answer recommends, as christian has repeated. items are not aligned with the head line, but treated as a "usual" list. i'll add an example to the cited answer to make this clear.
– barbara beeton
Apr 30 '16 at 13:42




@Shaqpad -- the use of leavevmode is exactly what that answer recommends, as christian has repeated. items are not aligned with the head line, but treated as a "usual" list. i'll add an example to the cited answer to make this clear.
– barbara beeton
Apr 30 '16 at 13:42












@Christian Hupfer: leavevmode is not enough, as there will be a spurious vertical space.
– Bernard
Apr 30 '16 at 15:00




@Christian Hupfer: leavevmode is not enough, as there will be a spurious vertical space.
– Bernard
Apr 30 '16 at 15:00










3 Answers
3






active

oldest

votes


















2














Here is a solution with enumitem. One can define a thmitemise clone, which incorporates by default the given setup, to avoid having to type it each time it is used:



documentclass{book}
usepackage{amsthm} newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}
usepackage{enumitem, showframe}

begin{document}

begin{mythm}
begin{itemize}[wide=0.5em, leftmargin =*, nosep, before = leavevmodevspace{-baselineskip}]
item This an itemized body text.
item This an itemized body text.
end{itemize}
end{mythm}
end{document}


enter image description here






share|improve this answer































    2














    here is a mechanism for removing the extra space between the theorem head
    and the list. i don't really like it, but it will provide necessary
    information to make this a feature of the ams theorem facility when that
    is overhauled. (latex doesn't make things like this easy.)



    documentclass{amsart}
    newtheorem{thm}{Theorem}[section]

    begin{document}
    begin{thm}
    leavevmode
    makeatletter
    @nobreaktrue
    makeatother
    begin{enumerate}
    item Item 1
    item Item 2
    item Item 3
    end{enumerate}
    end{thm}
    end{document}


    enter image description here






    share|improve this answer





























      0














      An even easier solution may be this:



      usepackage[inline]{enumitem}
      begin{mythm}
      begin{enumerate}[label=(arabic*)]
      item
      item state 1
      item state 2
      end{enumerate}
      end{mythm}





      share|improve this answer





















        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "85"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: false,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f307141%2fitemizing-theorem-body%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









        2














        Here is a solution with enumitem. One can define a thmitemise clone, which incorporates by default the given setup, to avoid having to type it each time it is used:



        documentclass{book}
        usepackage{amsthm} newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
        theoremstyle{mystyle}
        newtheorem*{mythm}{Theorem}
        usepackage{enumitem, showframe}

        begin{document}

        begin{mythm}
        begin{itemize}[wide=0.5em, leftmargin =*, nosep, before = leavevmodevspace{-baselineskip}]
        item This an itemized body text.
        item This an itemized body text.
        end{itemize}
        end{mythm}
        end{document}


        enter image description here






        share|improve this answer




























          2














          Here is a solution with enumitem. One can define a thmitemise clone, which incorporates by default the given setup, to avoid having to type it each time it is used:



          documentclass{book}
          usepackage{amsthm} newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
          theoremstyle{mystyle}
          newtheorem*{mythm}{Theorem}
          usepackage{enumitem, showframe}

          begin{document}

          begin{mythm}
          begin{itemize}[wide=0.5em, leftmargin =*, nosep, before = leavevmodevspace{-baselineskip}]
          item This an itemized body text.
          item This an itemized body text.
          end{itemize}
          end{mythm}
          end{document}


          enter image description here






          share|improve this answer


























            2












            2








            2






            Here is a solution with enumitem. One can define a thmitemise clone, which incorporates by default the given setup, to avoid having to type it each time it is used:



            documentclass{book}
            usepackage{amsthm} newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
            theoremstyle{mystyle}
            newtheorem*{mythm}{Theorem}
            usepackage{enumitem, showframe}

            begin{document}

            begin{mythm}
            begin{itemize}[wide=0.5em, leftmargin =*, nosep, before = leavevmodevspace{-baselineskip}]
            item This an itemized body text.
            item This an itemized body text.
            end{itemize}
            end{mythm}
            end{document}


            enter image description here






            share|improve this answer














            Here is a solution with enumitem. One can define a thmitemise clone, which incorporates by default the given setup, to avoid having to type it each time it is used:



            documentclass{book}
            usepackage{amsthm} newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
            theoremstyle{mystyle}
            newtheorem*{mythm}{Theorem}
            usepackage{enumitem, showframe}

            begin{document}

            begin{mythm}
            begin{itemize}[wide=0.5em, leftmargin =*, nosep, before = leavevmodevspace{-baselineskip}]
            item This an itemized body text.
            item This an itemized body text.
            end{itemize}
            end{mythm}
            end{document}


            enter image description here







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited May 2 '16 at 8:41

























            answered Apr 30 '16 at 13:31









            BernardBernard

            166k769194




            166k769194























                2














                here is a mechanism for removing the extra space between the theorem head
                and the list. i don't really like it, but it will provide necessary
                information to make this a feature of the ams theorem facility when that
                is overhauled. (latex doesn't make things like this easy.)



                documentclass{amsart}
                newtheorem{thm}{Theorem}[section]

                begin{document}
                begin{thm}
                leavevmode
                makeatletter
                @nobreaktrue
                makeatother
                begin{enumerate}
                item Item 1
                item Item 2
                item Item 3
                end{enumerate}
                end{thm}
                end{document}


                enter image description here






                share|improve this answer


























                  2














                  here is a mechanism for removing the extra space between the theorem head
                  and the list. i don't really like it, but it will provide necessary
                  information to make this a feature of the ams theorem facility when that
                  is overhauled. (latex doesn't make things like this easy.)



                  documentclass{amsart}
                  newtheorem{thm}{Theorem}[section]

                  begin{document}
                  begin{thm}
                  leavevmode
                  makeatletter
                  @nobreaktrue
                  makeatother
                  begin{enumerate}
                  item Item 1
                  item Item 2
                  item Item 3
                  end{enumerate}
                  end{thm}
                  end{document}


                  enter image description here






                  share|improve this answer
























                    2












                    2








                    2






                    here is a mechanism for removing the extra space between the theorem head
                    and the list. i don't really like it, but it will provide necessary
                    information to make this a feature of the ams theorem facility when that
                    is overhauled. (latex doesn't make things like this easy.)



                    documentclass{amsart}
                    newtheorem{thm}{Theorem}[section]

                    begin{document}
                    begin{thm}
                    leavevmode
                    makeatletter
                    @nobreaktrue
                    makeatother
                    begin{enumerate}
                    item Item 1
                    item Item 2
                    item Item 3
                    end{enumerate}
                    end{thm}
                    end{document}


                    enter image description here






                    share|improve this answer












                    here is a mechanism for removing the extra space between the theorem head
                    and the list. i don't really like it, but it will provide necessary
                    information to make this a feature of the ams theorem facility when that
                    is overhauled. (latex doesn't make things like this easy.)



                    documentclass{amsart}
                    newtheorem{thm}{Theorem}[section]

                    begin{document}
                    begin{thm}
                    leavevmode
                    makeatletter
                    @nobreaktrue
                    makeatother
                    begin{enumerate}
                    item Item 1
                    item Item 2
                    item Item 3
                    end{enumerate}
                    end{thm}
                    end{document}


                    enter image description here







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Apr 30 '16 at 21:49









                    barbara beetonbarbara beeton

                    69.3k9157368




                    69.3k9157368























                        0














                        An even easier solution may be this:



                        usepackage[inline]{enumitem}
                        begin{mythm}
                        begin{enumerate}[label=(arabic*)]
                        item
                        item state 1
                        item state 2
                        end{enumerate}
                        end{mythm}





                        share|improve this answer


























                          0














                          An even easier solution may be this:



                          usepackage[inline]{enumitem}
                          begin{mythm}
                          begin{enumerate}[label=(arabic*)]
                          item
                          item state 1
                          item state 2
                          end{enumerate}
                          end{mythm}





                          share|improve this answer
























                            0












                            0








                            0






                            An even easier solution may be this:



                            usepackage[inline]{enumitem}
                            begin{mythm}
                            begin{enumerate}[label=(arabic*)]
                            item
                            item state 1
                            item state 2
                            end{enumerate}
                            end{mythm}





                            share|improve this answer












                            An even easier solution may be this:



                            usepackage[inline]{enumitem}
                            begin{mythm}
                            begin{enumerate}[label=(arabic*)]
                            item
                            item state 1
                            item state 2
                            end{enumerate}
                            end{mythm}






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Aug 16 '18 at 15:56









                            UnicornUnicorn

                            1577




                            1577






























                                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.





                                Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                Please pay close attention to the following guidance:


                                • 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%2f307141%2fitemizing-theorem-body%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

                                A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

                                Calculate evaluation metrics using cross_val_predict sklearn

                                Insert data from modal to MySQL (multiple modal on website)