Underline Theorem's 'Theorem' part, not the title












1















I would like to have two different styles of theorems in my LaTeX document to differentiate between original and unoriginal work. For one I would like the 'Theorem' underlined and the other I would like without extra text decoration (as normal).



I use the amsthm package for theorems usually.





For example I would like two different theorems that look like the following would.



textbf{Theorem 2.2.} textit{blah blah blah}

underline{textbf{Theorem 2.3.}} textit{blah blah blah}









share|improve this question





























    1















    I would like to have two different styles of theorems in my LaTeX document to differentiate between original and unoriginal work. For one I would like the 'Theorem' underlined and the other I would like without extra text decoration (as normal).



    I use the amsthm package for theorems usually.





    For example I would like two different theorems that look like the following would.



    textbf{Theorem 2.2.} textit{blah blah blah}

    underline{textbf{Theorem 2.3.}} textit{blah blah blah}









    share|improve this question



























      1












      1








      1








      I would like to have two different styles of theorems in my LaTeX document to differentiate between original and unoriginal work. For one I would like the 'Theorem' underlined and the other I would like without extra text decoration (as normal).



      I use the amsthm package for theorems usually.





      For example I would like two different theorems that look like the following would.



      textbf{Theorem 2.2.} textit{blah blah blah}

      underline{textbf{Theorem 2.3.}} textit{blah blah blah}









      share|improve this question
















      I would like to have two different styles of theorems in my LaTeX document to differentiate between original and unoriginal work. For one I would like the 'Theorem' underlined and the other I would like without extra text decoration (as normal).



      I use the amsthm package for theorems usually.





      For example I would like two different theorems that look like the following would.



      textbf{Theorem 2.2.} textit{blah blah blah}

      underline{textbf{Theorem 2.3.}} textit{blah blah blah}






      theorems






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 2 at 15:28







      Joshua Farrell

















      asked Apr 2 at 14:22









      Joshua FarrellJoshua Farrell

      1085




      1085






















          1 Answer
          1






          active

          oldest

          votes


















          2














          Like this?



          documentclass{article}
          usepackage{amsmath}
          usepackage[utf8]{inputenc}
          usepackage[english]{babel}
          usepackage[amsmath,thmmarks]{ntheorem}

          makeatletter
          newtheoremstyle{myu}%
          {item[hskiplabelsep bfunderline{##1 theorem@headerfont ##2.}]}%
          makeatother
          makeatletter
          newtheoremstyle{myn}%
          {item[hskiplabelsep bf ##1 theorem@headerfont ##2.]}%
          makeatother


          theoremstyle{myn}
          newtheorem{theoremn}{Theorem} %<-- Normal Theorem Definition
          theoremstyle{myu}
          newtheorem{theoremu}[theoremn]{Theorem}%<-- Underlined Theorem Definition

          begin{document}
          section{Introduction}
          Theorems can easily be defined
          begin{theoremn}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremn}

          begin{theoremu}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremu}

          begin{theoremn}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremn}

          begin{theoremu}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          %noindentunderline{makebox[3mm][l]{Jane Doe}}
          end{theoremu}

          begin{theoremu}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremu}
          end{document}


          enter image description here






          share|improve this answer


























          • No as you can see for my example, I would like the number underlined also (one continuous line).

            – Joshua Farrell
            Apr 3 at 11:36











          • @JoshuaFarrell, I have edited my answer.

            – ferahfeza
            Apr 3 at 13:51











          • bf has been a deprecated command for more than 20 years.

            – egreg
            Apr 3 at 14:22











          • @egreg, Thank you for your warning. It sounds easy to use.

            – ferahfeza
            Apr 3 at 14:55












          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%2f482781%2funderline-theorems-theorem-part-not-the-title%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









          2














          Like this?



          documentclass{article}
          usepackage{amsmath}
          usepackage[utf8]{inputenc}
          usepackage[english]{babel}
          usepackage[amsmath,thmmarks]{ntheorem}

          makeatletter
          newtheoremstyle{myu}%
          {item[hskiplabelsep bfunderline{##1 theorem@headerfont ##2.}]}%
          makeatother
          makeatletter
          newtheoremstyle{myn}%
          {item[hskiplabelsep bf ##1 theorem@headerfont ##2.]}%
          makeatother


          theoremstyle{myn}
          newtheorem{theoremn}{Theorem} %<-- Normal Theorem Definition
          theoremstyle{myu}
          newtheorem{theoremu}[theoremn]{Theorem}%<-- Underlined Theorem Definition

          begin{document}
          section{Introduction}
          Theorems can easily be defined
          begin{theoremn}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremn}

          begin{theoremu}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremu}

          begin{theoremn}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremn}

          begin{theoremu}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          %noindentunderline{makebox[3mm][l]{Jane Doe}}
          end{theoremu}

          begin{theoremu}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremu}
          end{document}


          enter image description here






          share|improve this answer


























          • No as you can see for my example, I would like the number underlined also (one continuous line).

            – Joshua Farrell
            Apr 3 at 11:36











          • @JoshuaFarrell, I have edited my answer.

            – ferahfeza
            Apr 3 at 13:51











          • bf has been a deprecated command for more than 20 years.

            – egreg
            Apr 3 at 14:22











          • @egreg, Thank you for your warning. It sounds easy to use.

            – ferahfeza
            Apr 3 at 14:55
















          2














          Like this?



          documentclass{article}
          usepackage{amsmath}
          usepackage[utf8]{inputenc}
          usepackage[english]{babel}
          usepackage[amsmath,thmmarks]{ntheorem}

          makeatletter
          newtheoremstyle{myu}%
          {item[hskiplabelsep bfunderline{##1 theorem@headerfont ##2.}]}%
          makeatother
          makeatletter
          newtheoremstyle{myn}%
          {item[hskiplabelsep bf ##1 theorem@headerfont ##2.]}%
          makeatother


          theoremstyle{myn}
          newtheorem{theoremn}{Theorem} %<-- Normal Theorem Definition
          theoremstyle{myu}
          newtheorem{theoremu}[theoremn]{Theorem}%<-- Underlined Theorem Definition

          begin{document}
          section{Introduction}
          Theorems can easily be defined
          begin{theoremn}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremn}

          begin{theoremu}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremu}

          begin{theoremn}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremn}

          begin{theoremu}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          %noindentunderline{makebox[3mm][l]{Jane Doe}}
          end{theoremu}

          begin{theoremu}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremu}
          end{document}


          enter image description here






          share|improve this answer


























          • No as you can see for my example, I would like the number underlined also (one continuous line).

            – Joshua Farrell
            Apr 3 at 11:36











          • @JoshuaFarrell, I have edited my answer.

            – ferahfeza
            Apr 3 at 13:51











          • bf has been a deprecated command for more than 20 years.

            – egreg
            Apr 3 at 14:22











          • @egreg, Thank you for your warning. It sounds easy to use.

            – ferahfeza
            Apr 3 at 14:55














          2












          2








          2







          Like this?



          documentclass{article}
          usepackage{amsmath}
          usepackage[utf8]{inputenc}
          usepackage[english]{babel}
          usepackage[amsmath,thmmarks]{ntheorem}

          makeatletter
          newtheoremstyle{myu}%
          {item[hskiplabelsep bfunderline{##1 theorem@headerfont ##2.}]}%
          makeatother
          makeatletter
          newtheoremstyle{myn}%
          {item[hskiplabelsep bf ##1 theorem@headerfont ##2.]}%
          makeatother


          theoremstyle{myn}
          newtheorem{theoremn}{Theorem} %<-- Normal Theorem Definition
          theoremstyle{myu}
          newtheorem{theoremu}[theoremn]{Theorem}%<-- Underlined Theorem Definition

          begin{document}
          section{Introduction}
          Theorems can easily be defined
          begin{theoremn}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremn}

          begin{theoremu}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremu}

          begin{theoremn}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremn}

          begin{theoremu}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          %noindentunderline{makebox[3mm][l]{Jane Doe}}
          end{theoremu}

          begin{theoremu}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremu}
          end{document}


          enter image description here






          share|improve this answer















          Like this?



          documentclass{article}
          usepackage{amsmath}
          usepackage[utf8]{inputenc}
          usepackage[english]{babel}
          usepackage[amsmath,thmmarks]{ntheorem}

          makeatletter
          newtheoremstyle{myu}%
          {item[hskiplabelsep bfunderline{##1 theorem@headerfont ##2.}]}%
          makeatother
          makeatletter
          newtheoremstyle{myn}%
          {item[hskiplabelsep bf ##1 theorem@headerfont ##2.]}%
          makeatother


          theoremstyle{myn}
          newtheorem{theoremn}{Theorem} %<-- Normal Theorem Definition
          theoremstyle{myu}
          newtheorem{theoremu}[theoremn]{Theorem}%<-- Underlined Theorem Definition

          begin{document}
          section{Introduction}
          Theorems can easily be defined
          begin{theoremn}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremn}

          begin{theoremu}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremu}

          begin{theoremn}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremn}

          begin{theoremu}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          %noindentunderline{makebox[3mm][l]{Jane Doe}}
          end{theoremu}

          begin{theoremu}
          Let $f$ be a function whose derivative exists in every point, then $f$
          is a continuous function.
          end{theoremu}
          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 3 at 13:59

























          answered Apr 2 at 17:18









          ferahfezaferahfeza

          7,43911933




          7,43911933













          • No as you can see for my example, I would like the number underlined also (one continuous line).

            – Joshua Farrell
            Apr 3 at 11:36











          • @JoshuaFarrell, I have edited my answer.

            – ferahfeza
            Apr 3 at 13:51











          • bf has been a deprecated command for more than 20 years.

            – egreg
            Apr 3 at 14:22











          • @egreg, Thank you for your warning. It sounds easy to use.

            – ferahfeza
            Apr 3 at 14:55



















          • No as you can see for my example, I would like the number underlined also (one continuous line).

            – Joshua Farrell
            Apr 3 at 11:36











          • @JoshuaFarrell, I have edited my answer.

            – ferahfeza
            Apr 3 at 13:51











          • bf has been a deprecated command for more than 20 years.

            – egreg
            Apr 3 at 14:22











          • @egreg, Thank you for your warning. It sounds easy to use.

            – ferahfeza
            Apr 3 at 14:55

















          No as you can see for my example, I would like the number underlined also (one continuous line).

          – Joshua Farrell
          Apr 3 at 11:36





          No as you can see for my example, I would like the number underlined also (one continuous line).

          – Joshua Farrell
          Apr 3 at 11:36













          @JoshuaFarrell, I have edited my answer.

          – ferahfeza
          Apr 3 at 13:51





          @JoshuaFarrell, I have edited my answer.

          – ferahfeza
          Apr 3 at 13:51













          bf has been a deprecated command for more than 20 years.

          – egreg
          Apr 3 at 14:22





          bf has been a deprecated command for more than 20 years.

          – egreg
          Apr 3 at 14:22













          @egreg, Thank you for your warning. It sounds easy to use.

          – ferahfeza
          Apr 3 at 14:55





          @egreg, Thank you for your warning. It sounds easy to use.

          – ferahfeza
          Apr 3 at 14:55


















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482781%2funderline-theorems-theorem-part-not-the-title%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

          Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

          ComboBox Display Member on multiple fields

          Is it possible to collect Nectar points via Trainline?