Unnecessary dots in theorems and figure numbers











up vote
2
down vote

favorite
1












I know, that it is possible to add dot after the chapter / section / subsection number. But if I use



renewcommand{thechapter}{arabic{chapter}.}
renewcommand{thesection}{thechapterarabic{section}.}
renewcommand{thesubsection}{thesectionarabic{subsection}.}


(as in this solution: How to add a dot after the section number?), then I have too many dots in the case of number of figure / theorem etc. For example, if I apply



documentclass[10pt]{book}
usepackage{amsmath,amssymb,amsthm}

usepackage[chapter]{algorithm}

renewcommand{thechapter}{arabic{chapter}.}
renewcommand{thesection}{thechapterarabic{section}.}
renewcommand{thesubsection}{thesectionarabic{subsection}.}

newtheorem{defin}{Def.}[chapter]
newtheorem{tw}[defin]{Th.}

begin{document}

chapter{New chapter}

begin{defin}
Some definition
end{defin}

begin{algorithm}
caption{Some algorithm}
end{algorithm}

begin{figure}[hptb]
caption{Some caption}
end{figure}

section{New section}

begin{defin}
Some definition
end{defin}


end{document}


then I have
enter image description here



How could I remove the unnecessary dots in 1..1 and similar numbers? Thank you in advance for your answer.
Edit: I have realized, that my question can be put in other way. Is this possible to add dots, but only: 1. in the case of titles of chapters / sections etc. 2. and in the case of table of contents, but not for other references?










share|improve this question




























    up vote
    2
    down vote

    favorite
    1












    I know, that it is possible to add dot after the chapter / section / subsection number. But if I use



    renewcommand{thechapter}{arabic{chapter}.}
    renewcommand{thesection}{thechapterarabic{section}.}
    renewcommand{thesubsection}{thesectionarabic{subsection}.}


    (as in this solution: How to add a dot after the section number?), then I have too many dots in the case of number of figure / theorem etc. For example, if I apply



    documentclass[10pt]{book}
    usepackage{amsmath,amssymb,amsthm}

    usepackage[chapter]{algorithm}

    renewcommand{thechapter}{arabic{chapter}.}
    renewcommand{thesection}{thechapterarabic{section}.}
    renewcommand{thesubsection}{thesectionarabic{subsection}.}

    newtheorem{defin}{Def.}[chapter]
    newtheorem{tw}[defin]{Th.}

    begin{document}

    chapter{New chapter}

    begin{defin}
    Some definition
    end{defin}

    begin{algorithm}
    caption{Some algorithm}
    end{algorithm}

    begin{figure}[hptb]
    caption{Some caption}
    end{figure}

    section{New section}

    begin{defin}
    Some definition
    end{defin}


    end{document}


    then I have
    enter image description here



    How could I remove the unnecessary dots in 1..1 and similar numbers? Thank you in advance for your answer.
    Edit: I have realized, that my question can be put in other way. Is this possible to add dots, but only: 1. in the case of titles of chapters / sections etc. 2. and in the case of table of contents, but not for other references?










    share|improve this question


























      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      I know, that it is possible to add dot after the chapter / section / subsection number. But if I use



      renewcommand{thechapter}{arabic{chapter}.}
      renewcommand{thesection}{thechapterarabic{section}.}
      renewcommand{thesubsection}{thesectionarabic{subsection}.}


      (as in this solution: How to add a dot after the section number?), then I have too many dots in the case of number of figure / theorem etc. For example, if I apply



      documentclass[10pt]{book}
      usepackage{amsmath,amssymb,amsthm}

      usepackage[chapter]{algorithm}

      renewcommand{thechapter}{arabic{chapter}.}
      renewcommand{thesection}{thechapterarabic{section}.}
      renewcommand{thesubsection}{thesectionarabic{subsection}.}

      newtheorem{defin}{Def.}[chapter]
      newtheorem{tw}[defin]{Th.}

      begin{document}

      chapter{New chapter}

      begin{defin}
      Some definition
      end{defin}

      begin{algorithm}
      caption{Some algorithm}
      end{algorithm}

      begin{figure}[hptb]
      caption{Some caption}
      end{figure}

      section{New section}

      begin{defin}
      Some definition
      end{defin}


      end{document}


      then I have
      enter image description here



      How could I remove the unnecessary dots in 1..1 and similar numbers? Thank you in advance for your answer.
      Edit: I have realized, that my question can be put in other way. Is this possible to add dots, but only: 1. in the case of titles of chapters / sections etc. 2. and in the case of table of contents, but not for other references?










      share|improve this question















      I know, that it is possible to add dot after the chapter / section / subsection number. But if I use



      renewcommand{thechapter}{arabic{chapter}.}
      renewcommand{thesection}{thechapterarabic{section}.}
      renewcommand{thesubsection}{thesectionarabic{subsection}.}


      (as in this solution: How to add a dot after the section number?), then I have too many dots in the case of number of figure / theorem etc. For example, if I apply



      documentclass[10pt]{book}
      usepackage{amsmath,amssymb,amsthm}

      usepackage[chapter]{algorithm}

      renewcommand{thechapter}{arabic{chapter}.}
      renewcommand{thesection}{thechapterarabic{section}.}
      renewcommand{thesubsection}{thesectionarabic{subsection}.}

      newtheorem{defin}{Def.}[chapter]
      newtheorem{tw}[defin]{Th.}

      begin{document}

      chapter{New chapter}

      begin{defin}
      Some definition
      end{defin}

      begin{algorithm}
      caption{Some algorithm}
      end{algorithm}

      begin{figure}[hptb]
      caption{Some caption}
      end{figure}

      section{New section}

      begin{defin}
      Some definition
      end{defin}


      end{document}


      then I have
      enter image description here



      How could I remove the unnecessary dots in 1..1 and similar numbers? Thank you in advance for your answer.
      Edit: I have realized, that my question can be put in other way. Is this possible to add dots, but only: 1. in the case of titles of chapters / sections etc. 2. and in the case of table of contents, but not for other references?







      numbering amsthm






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited yesterday

























      asked yesterday









      errenay

      263




      263






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          It seems, that instead of this code



          renewcommand{thechapter}{arabic{chapter}.}
          renewcommand{thesection}{thechapterarabic{section}.}
          renewcommand{thesubsection}{thesectionarabic{subsection}.}


          I should use



          usepackage{titlesec}
          titlelabel{thetitle .quad}
          usepackage[dotinlabels]{titletoc}


          But I'm still looking for the answer in the case of chapters.






          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: 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%2f461080%2funnecessary-dots-in-theorems-and-figure-numbers%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
            0
            down vote













            It seems, that instead of this code



            renewcommand{thechapter}{arabic{chapter}.}
            renewcommand{thesection}{thechapterarabic{section}.}
            renewcommand{thesubsection}{thesectionarabic{subsection}.}


            I should use



            usepackage{titlesec}
            titlelabel{thetitle .quad}
            usepackage[dotinlabels]{titletoc}


            But I'm still looking for the answer in the case of chapters.






            share|improve this answer

























              up vote
              0
              down vote













              It seems, that instead of this code



              renewcommand{thechapter}{arabic{chapter}.}
              renewcommand{thesection}{thechapterarabic{section}.}
              renewcommand{thesubsection}{thesectionarabic{subsection}.}


              I should use



              usepackage{titlesec}
              titlelabel{thetitle .quad}
              usepackage[dotinlabels]{titletoc}


              But I'm still looking for the answer in the case of chapters.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                It seems, that instead of this code



                renewcommand{thechapter}{arabic{chapter}.}
                renewcommand{thesection}{thechapterarabic{section}.}
                renewcommand{thesubsection}{thesectionarabic{subsection}.}


                I should use



                usepackage{titlesec}
                titlelabel{thetitle .quad}
                usepackage[dotinlabels]{titletoc}


                But I'm still looking for the answer in the case of chapters.






                share|improve this answer












                It seems, that instead of this code



                renewcommand{thechapter}{arabic{chapter}.}
                renewcommand{thesection}{thechapterarabic{section}.}
                renewcommand{thesubsection}{thesectionarabic{subsection}.}


                I should use



                usepackage{titlesec}
                titlelabel{thetitle .quad}
                usepackage[dotinlabels]{titletoc}


                But I'm still looking for the answer in the case of chapters.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered yesterday









                errenay

                263




                263






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461080%2funnecessary-dots-in-theorems-and-figure-numbers%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

                    Accessing regular linux commands in Huawei's Dopra Linux

                    Can't connect RFCOMM socket: Host is down

                    Kernel panic - not syncing: Fatal Exception in Interrupt