Theorem titles in outer margins (even / odd pages)formulas in bold theorem titles in ntheorem package

Is there a math equivalent to the conditional ternary operator?

How to develop an internal intuition for note timings?

How will Occam's Razor principle work in Machine learning

Quitting employee has privileged access to critical information

Caulking a corner instead of taping with joint compound?

How to concatenate two command in shell

Specific Chinese carabiner QA?

What kind of inflection is occuring in passive vb + かかった?

Where is the fallacy here?

How to mitigate "bandwagon attacking" from players?

What's Bob's age again?

Remove object from array based on array of some property of that object

How spaceships determine each other mass in space?

Can a Mexican citizen living in US under DACA drive to Canada?

Difference between 'stomach' and 'uterus'

Plagiarism of code by other PhD student

What is the oldest European royal house?

Rationale to prefer local variables over instance variables?

GPL code private and stolen

Script that counts quarters, dimes, nickels, and pennies

Should we avoid writing fiction about historical events without extensive research?

How do you make a gun that throws swords?

Can an earth elemental drown/bury its opponent underground using earth glide?

How does insurance birth control work?



Theorem titles in outer margins (even / odd pages)


formulas in bold theorem titles in ntheorem package













0















I would like theorem / definition / etc. labels to appear in the outer page margin (taking even and odd pages into account). First, I tried to use the thmtools package (code and image below). However, I only managed to place the label always in the left margin. In particular, I've got no idea how to combine thmtools with ifoddpage.



Next, I tried ntheorem (code and image below). With ntheorem, the label placement worked as it should, but I was unable to change the font style of the title of the theorem ("Some Important Theorem" in the images below) and place it on a line of its own. In addition, I couldn't get rid of the indentation. Finally, it also broke my autoref references.



To summarize: What I'm looking for is a theorem environment which allows




  • labels in outer page margins (odd / even pages)

  • full styling control for labels, title and body


  • autoref compatibility (in particular, I would like to use a single counter for different theorem environments such as Theorem, Definition, etc.)


I'm about to give up, so I really hope someone can help me with this.



Code for thmtools:



documentclass[10pt, a4paper, twoside]{article}
usepackage[a4paper, inner=1.25in, outer=1.25in]{geometry}

usepackage{color}
usepackage{amsthm}
usepackage{thmtools}

newlength{spaceblength}
settowidth{spaceblength}{bfseries }
declaretheoremstyle[
headfont=bfseries,
notefont=bfseries,
notebraces={}{\[parskip]}, % Braces for additional text
bodyfont=normalfontitshape,
headpunct={},
headformat={%
makebox[0pt][r]{color{red}NAME NUMBER }hskip-spaceblength{NOTE}%
}
]{boxstyle}

declaretheorem[style=boxstyle,numberwithin=section]{theorem}

begin{document}

begin{theorem}[Some Important Theorem]
This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
end{theorem}

newpage

begin{theorem}[Some Important Theorem]
This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
end{theorem}

end{document}


Code for ntheorem:



documentclass[10pt, a4paper, twoside]{article}
usepackage[a4paper, inner=1.25in, outer=1.25in]{geometry}

usepackage{color}
usepackage{ifoddpage}
usepackage{ntheorem}

makeatletter%
newtheoremstyle{nonumoutermargin}%
{item[checkoddpageifoddpageoronesiderlap{hskiplinewidththeorem@headerfont {hskip18pt##1}}%
elsellap{theorem@headerfont{##1}hskip6pt}fi]}%
{item[checkoddpageifoddpageoronesiderlap{hskiplinewidththeorem@headerfont {hskip18pt##1}}%
elsellap{theorem@headerfont{##1}hskip6pt}fi##3]}

newtheoremstyle{outermargin}%
{item[checkoddpageifoddpageoronesiderlap{hskiplinewidththeorem@headerfont {hskip18pt##1hskiplabelsep##2}}%
elsellap{theorem@headerfont{##1hskiplabelsep##2}hskip6pt}fi]}%
{item[checkoddpageifoddpageoronesiderlap{hskiplinewidththeorem@headerfont{hskip18pt##1hskiplabelsep##2}}%
elsellap{theorem@headerfont{##1hskiplabelsep##2}hskip6pt}fi##3]}
makeatother

theoremindent=0pt
theoremheaderfont{upshapebfseriescolor{red}}
theoremstyle{outermargin}
newtheorem{theorem}{Theorem}[section]

begin{document}

begin{theorem}[Some Important Theorem]
This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
end{theorem}

newpage

begin{theorem}[Some Important Theorem]
This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
end{theorem}

end{document}


enter image description here










share|improve this question









New contributor




M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I would like theorem / definition / etc. labels to appear in the outer page margin (taking even and odd pages into account). First, I tried to use the thmtools package (code and image below). However, I only managed to place the label always in the left margin. In particular, I've got no idea how to combine thmtools with ifoddpage.



    Next, I tried ntheorem (code and image below). With ntheorem, the label placement worked as it should, but I was unable to change the font style of the title of the theorem ("Some Important Theorem" in the images below) and place it on a line of its own. In addition, I couldn't get rid of the indentation. Finally, it also broke my autoref references.



    To summarize: What I'm looking for is a theorem environment which allows




    • labels in outer page margins (odd / even pages)

    • full styling control for labels, title and body


    • autoref compatibility (in particular, I would like to use a single counter for different theorem environments such as Theorem, Definition, etc.)


    I'm about to give up, so I really hope someone can help me with this.



    Code for thmtools:



    documentclass[10pt, a4paper, twoside]{article}
    usepackage[a4paper, inner=1.25in, outer=1.25in]{geometry}

    usepackage{color}
    usepackage{amsthm}
    usepackage{thmtools}

    newlength{spaceblength}
    settowidth{spaceblength}{bfseries }
    declaretheoremstyle[
    headfont=bfseries,
    notefont=bfseries,
    notebraces={}{\[parskip]}, % Braces for additional text
    bodyfont=normalfontitshape,
    headpunct={},
    headformat={%
    makebox[0pt][r]{color{red}NAME NUMBER }hskip-spaceblength{NOTE}%
    }
    ]{boxstyle}

    declaretheorem[style=boxstyle,numberwithin=section]{theorem}

    begin{document}

    begin{theorem}[Some Important Theorem]
    This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
    This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

    This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
    This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
    end{theorem}

    newpage

    begin{theorem}[Some Important Theorem]
    This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
    This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

    This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
    This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
    end{theorem}

    end{document}


    Code for ntheorem:



    documentclass[10pt, a4paper, twoside]{article}
    usepackage[a4paper, inner=1.25in, outer=1.25in]{geometry}

    usepackage{color}
    usepackage{ifoddpage}
    usepackage{ntheorem}

    makeatletter%
    newtheoremstyle{nonumoutermargin}%
    {item[checkoddpageifoddpageoronesiderlap{hskiplinewidththeorem@headerfont {hskip18pt##1}}%
    elsellap{theorem@headerfont{##1}hskip6pt}fi]}%
    {item[checkoddpageifoddpageoronesiderlap{hskiplinewidththeorem@headerfont {hskip18pt##1}}%
    elsellap{theorem@headerfont{##1}hskip6pt}fi##3]}

    newtheoremstyle{outermargin}%
    {item[checkoddpageifoddpageoronesiderlap{hskiplinewidththeorem@headerfont {hskip18pt##1hskiplabelsep##2}}%
    elsellap{theorem@headerfont{##1hskiplabelsep##2}hskip6pt}fi]}%
    {item[checkoddpageifoddpageoronesiderlap{hskiplinewidththeorem@headerfont{hskip18pt##1hskiplabelsep##2}}%
    elsellap{theorem@headerfont{##1hskiplabelsep##2}hskip6pt}fi##3]}
    makeatother

    theoremindent=0pt
    theoremheaderfont{upshapebfseriescolor{red}}
    theoremstyle{outermargin}
    newtheorem{theorem}{Theorem}[section]

    begin{document}

    begin{theorem}[Some Important Theorem]
    This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
    This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

    This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
    This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
    end{theorem}

    newpage

    begin{theorem}[Some Important Theorem]
    This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
    This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

    This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
    This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
    end{theorem}

    end{document}


    enter image description here










    share|improve this question









    New contributor




    M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0


      1






      I would like theorem / definition / etc. labels to appear in the outer page margin (taking even and odd pages into account). First, I tried to use the thmtools package (code and image below). However, I only managed to place the label always in the left margin. In particular, I've got no idea how to combine thmtools with ifoddpage.



      Next, I tried ntheorem (code and image below). With ntheorem, the label placement worked as it should, but I was unable to change the font style of the title of the theorem ("Some Important Theorem" in the images below) and place it on a line of its own. In addition, I couldn't get rid of the indentation. Finally, it also broke my autoref references.



      To summarize: What I'm looking for is a theorem environment which allows




      • labels in outer page margins (odd / even pages)

      • full styling control for labels, title and body


      • autoref compatibility (in particular, I would like to use a single counter for different theorem environments such as Theorem, Definition, etc.)


      I'm about to give up, so I really hope someone can help me with this.



      Code for thmtools:



      documentclass[10pt, a4paper, twoside]{article}
      usepackage[a4paper, inner=1.25in, outer=1.25in]{geometry}

      usepackage{color}
      usepackage{amsthm}
      usepackage{thmtools}

      newlength{spaceblength}
      settowidth{spaceblength}{bfseries }
      declaretheoremstyle[
      headfont=bfseries,
      notefont=bfseries,
      notebraces={}{\[parskip]}, % Braces for additional text
      bodyfont=normalfontitshape,
      headpunct={},
      headformat={%
      makebox[0pt][r]{color{red}NAME NUMBER }hskip-spaceblength{NOTE}%
      }
      ]{boxstyle}

      declaretheorem[style=boxstyle,numberwithin=section]{theorem}

      begin{document}

      begin{theorem}[Some Important Theorem]
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      end{theorem}

      newpage

      begin{theorem}[Some Important Theorem]
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      end{theorem}

      end{document}


      Code for ntheorem:



      documentclass[10pt, a4paper, twoside]{article}
      usepackage[a4paper, inner=1.25in, outer=1.25in]{geometry}

      usepackage{color}
      usepackage{ifoddpage}
      usepackage{ntheorem}

      makeatletter%
      newtheoremstyle{nonumoutermargin}%
      {item[checkoddpageifoddpageoronesiderlap{hskiplinewidththeorem@headerfont {hskip18pt##1}}%
      elsellap{theorem@headerfont{##1}hskip6pt}fi]}%
      {item[checkoddpageifoddpageoronesiderlap{hskiplinewidththeorem@headerfont {hskip18pt##1}}%
      elsellap{theorem@headerfont{##1}hskip6pt}fi##3]}

      newtheoremstyle{outermargin}%
      {item[checkoddpageifoddpageoronesiderlap{hskiplinewidththeorem@headerfont {hskip18pt##1hskiplabelsep##2}}%
      elsellap{theorem@headerfont{##1hskiplabelsep##2}hskip6pt}fi]}%
      {item[checkoddpageifoddpageoronesiderlap{hskiplinewidththeorem@headerfont{hskip18pt##1hskiplabelsep##2}}%
      elsellap{theorem@headerfont{##1hskiplabelsep##2}hskip6pt}fi##3]}
      makeatother

      theoremindent=0pt
      theoremheaderfont{upshapebfseriescolor{red}}
      theoremstyle{outermargin}
      newtheorem{theorem}{Theorem}[section]

      begin{document}

      begin{theorem}[Some Important Theorem]
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      end{theorem}

      newpage

      begin{theorem}[Some Important Theorem]
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      end{theorem}

      end{document}


      enter image description here










      share|improve this question









      New contributor




      M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I would like theorem / definition / etc. labels to appear in the outer page margin (taking even and odd pages into account). First, I tried to use the thmtools package (code and image below). However, I only managed to place the label always in the left margin. In particular, I've got no idea how to combine thmtools with ifoddpage.



      Next, I tried ntheorem (code and image below). With ntheorem, the label placement worked as it should, but I was unable to change the font style of the title of the theorem ("Some Important Theorem" in the images below) and place it on a line of its own. In addition, I couldn't get rid of the indentation. Finally, it also broke my autoref references.



      To summarize: What I'm looking for is a theorem environment which allows




      • labels in outer page margins (odd / even pages)

      • full styling control for labels, title and body


      • autoref compatibility (in particular, I would like to use a single counter for different theorem environments such as Theorem, Definition, etc.)


      I'm about to give up, so I really hope someone can help me with this.



      Code for thmtools:



      documentclass[10pt, a4paper, twoside]{article}
      usepackage[a4paper, inner=1.25in, outer=1.25in]{geometry}

      usepackage{color}
      usepackage{amsthm}
      usepackage{thmtools}

      newlength{spaceblength}
      settowidth{spaceblength}{bfseries }
      declaretheoremstyle[
      headfont=bfseries,
      notefont=bfseries,
      notebraces={}{\[parskip]}, % Braces for additional text
      bodyfont=normalfontitshape,
      headpunct={},
      headformat={%
      makebox[0pt][r]{color{red}NAME NUMBER }hskip-spaceblength{NOTE}%
      }
      ]{boxstyle}

      declaretheorem[style=boxstyle,numberwithin=section]{theorem}

      begin{document}

      begin{theorem}[Some Important Theorem]
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      end{theorem}

      newpage

      begin{theorem}[Some Important Theorem]
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      end{theorem}

      end{document}


      Code for ntheorem:



      documentclass[10pt, a4paper, twoside]{article}
      usepackage[a4paper, inner=1.25in, outer=1.25in]{geometry}

      usepackage{color}
      usepackage{ifoddpage}
      usepackage{ntheorem}

      makeatletter%
      newtheoremstyle{nonumoutermargin}%
      {item[checkoddpageifoddpageoronesiderlap{hskiplinewidththeorem@headerfont {hskip18pt##1}}%
      elsellap{theorem@headerfont{##1}hskip6pt}fi]}%
      {item[checkoddpageifoddpageoronesiderlap{hskiplinewidththeorem@headerfont {hskip18pt##1}}%
      elsellap{theorem@headerfont{##1}hskip6pt}fi##3]}

      newtheoremstyle{outermargin}%
      {item[checkoddpageifoddpageoronesiderlap{hskiplinewidththeorem@headerfont {hskip18pt##1hskiplabelsep##2}}%
      elsellap{theorem@headerfont{##1hskiplabelsep##2}hskip6pt}fi]}%
      {item[checkoddpageifoddpageoronesiderlap{hskiplinewidththeorem@headerfont{hskip18pt##1hskiplabelsep##2}}%
      elsellap{theorem@headerfont{##1hskiplabelsep##2}hskip6pt}fi##3]}
      makeatother

      theoremindent=0pt
      theoremheaderfont{upshapebfseriescolor{red}}
      theoremstyle{outermargin}
      newtheorem{theorem}{Theorem}[section]

      begin{document}

      begin{theorem}[Some Important Theorem]
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      end{theorem}

      newpage

      begin{theorem}[Some Important Theorem]
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
      end{theorem}

      end{document}


      enter image description here







      ntheorem thmtools autoref






      share|improve this question









      New contributor




      M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 6 hours ago









      Schweinebacke

      21.8k4577




      21.8k4577






      New contributor




      M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 17 hours ago









      M_FM_F

      1




      1




      New contributor




      M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I continued looking for an answer and the following worked for me (I thought I had tried that before and it didn't compile...):



          documentclass[10pt, a4paper, twoside]{article}
          usepackage[a4paper, inner=1.25in, outer=1.25in]{geometry}

          usepackage{color}
          usepackage{amsthm}
          usepackage{thmtools}
          usepackage{ifoddpage}

          newlength{spaceblength}
          settowidth{spaceblength}{bfseries }
          declaretheoremstyle[
          headfont=bfseries,
          notefont=bfseries,
          notebraces={}{\[parskip]}, % Braces for additional text
          bodyfont=normalfontitshape,
          headpunct={},
          headformat={%
          checkoddpageifoddpagerlap{hskiptextwidthcolor{red} NAME NUMBER}hskip-spaceblength{NOTE}%
          elsemakebox[0pt][r]{color{red}NAME NUMBER }hskip-spaceblength{NOTE}fi%
          },
          ]{boxstyle}

          declaretheorem[style=boxstyle,numberwithin=section]{theorem}

          begin{document}

          begin{theorem}[Some Important Theorem]
          This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
          This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

          This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
          This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
          end{theorem}

          newpage

          begin{theorem}[Some Important Theorem]
          This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
          This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

          This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
          This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
          end{theorem}

          end{document}





          share|improve this answer








          New contributor




          M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















            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
            });


            }
            });






            M_F is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478095%2ftheorem-titles-in-outer-margins-even-odd-pages%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









            0














            I continued looking for an answer and the following worked for me (I thought I had tried that before and it didn't compile...):



            documentclass[10pt, a4paper, twoside]{article}
            usepackage[a4paper, inner=1.25in, outer=1.25in]{geometry}

            usepackage{color}
            usepackage{amsthm}
            usepackage{thmtools}
            usepackage{ifoddpage}

            newlength{spaceblength}
            settowidth{spaceblength}{bfseries }
            declaretheoremstyle[
            headfont=bfseries,
            notefont=bfseries,
            notebraces={}{\[parskip]}, % Braces for additional text
            bodyfont=normalfontitshape,
            headpunct={},
            headformat={%
            checkoddpageifoddpagerlap{hskiptextwidthcolor{red} NAME NUMBER}hskip-spaceblength{NOTE}%
            elsemakebox[0pt][r]{color{red}NAME NUMBER }hskip-spaceblength{NOTE}fi%
            },
            ]{boxstyle}

            declaretheorem[style=boxstyle,numberwithin=section]{theorem}

            begin{document}

            begin{theorem}[Some Important Theorem]
            This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
            This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

            This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
            This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
            end{theorem}

            newpage

            begin{theorem}[Some Important Theorem]
            This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
            This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

            This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
            This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
            end{theorem}

            end{document}





            share|improve this answer








            New contributor




            M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

























              0














              I continued looking for an answer and the following worked for me (I thought I had tried that before and it didn't compile...):



              documentclass[10pt, a4paper, twoside]{article}
              usepackage[a4paper, inner=1.25in, outer=1.25in]{geometry}

              usepackage{color}
              usepackage{amsthm}
              usepackage{thmtools}
              usepackage{ifoddpage}

              newlength{spaceblength}
              settowidth{spaceblength}{bfseries }
              declaretheoremstyle[
              headfont=bfseries,
              notefont=bfseries,
              notebraces={}{\[parskip]}, % Braces for additional text
              bodyfont=normalfontitshape,
              headpunct={},
              headformat={%
              checkoddpageifoddpagerlap{hskiptextwidthcolor{red} NAME NUMBER}hskip-spaceblength{NOTE}%
              elsemakebox[0pt][r]{color{red}NAME NUMBER }hskip-spaceblength{NOTE}fi%
              },
              ]{boxstyle}

              declaretheorem[style=boxstyle,numberwithin=section]{theorem}

              begin{document}

              begin{theorem}[Some Important Theorem]
              This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
              This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

              This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
              This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
              end{theorem}

              newpage

              begin{theorem}[Some Important Theorem]
              This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
              This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

              This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
              This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
              end{theorem}

              end{document}





              share|improve this answer








              New contributor




              M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.























                0












                0








                0







                I continued looking for an answer and the following worked for me (I thought I had tried that before and it didn't compile...):



                documentclass[10pt, a4paper, twoside]{article}
                usepackage[a4paper, inner=1.25in, outer=1.25in]{geometry}

                usepackage{color}
                usepackage{amsthm}
                usepackage{thmtools}
                usepackage{ifoddpage}

                newlength{spaceblength}
                settowidth{spaceblength}{bfseries }
                declaretheoremstyle[
                headfont=bfseries,
                notefont=bfseries,
                notebraces={}{\[parskip]}, % Braces for additional text
                bodyfont=normalfontitshape,
                headpunct={},
                headformat={%
                checkoddpageifoddpagerlap{hskiptextwidthcolor{red} NAME NUMBER}hskip-spaceblength{NOTE}%
                elsemakebox[0pt][r]{color{red}NAME NUMBER }hskip-spaceblength{NOTE}fi%
                },
                ]{boxstyle}

                declaretheorem[style=boxstyle,numberwithin=section]{theorem}

                begin{document}

                begin{theorem}[Some Important Theorem]
                This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
                This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

                This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
                This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
                end{theorem}

                newpage

                begin{theorem}[Some Important Theorem]
                This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
                This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

                This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
                This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
                end{theorem}

                end{document}





                share|improve this answer








                New contributor




                M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                I continued looking for an answer and the following worked for me (I thought I had tried that before and it didn't compile...):



                documentclass[10pt, a4paper, twoside]{article}
                usepackage[a4paper, inner=1.25in, outer=1.25in]{geometry}

                usepackage{color}
                usepackage{amsthm}
                usepackage{thmtools}
                usepackage{ifoddpage}

                newlength{spaceblength}
                settowidth{spaceblength}{bfseries }
                declaretheoremstyle[
                headfont=bfseries,
                notefont=bfseries,
                notebraces={}{\[parskip]}, % Braces for additional text
                bodyfont=normalfontitshape,
                headpunct={},
                headformat={%
                checkoddpageifoddpagerlap{hskiptextwidthcolor{red} NAME NUMBER}hskip-spaceblength{NOTE}%
                elsemakebox[0pt][r]{color{red}NAME NUMBER }hskip-spaceblength{NOTE}fi%
                },
                ]{boxstyle}

                declaretheorem[style=boxstyle,numberwithin=section]{theorem}

                begin{document}

                begin{theorem}[Some Important Theorem]
                This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
                This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

                This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
                This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
                end{theorem}

                newpage

                begin{theorem}[Some Important Theorem]
                This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
                This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.

                This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
                This is a theorem. This is a theorem. This is a theorem. This is a theorem. This is a theorem.
                end{theorem}

                end{document}






                share|improve this answer








                New contributor




                M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 16 hours ago









                M_FM_F

                1




                1




                New contributor




                M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                M_F is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






















                    M_F is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    M_F is a new contributor. Be nice, and check out our Code of Conduct.













                    M_F is a new contributor. Be nice, and check out our Code of Conduct.












                    M_F is a new contributor. Be nice, and check out our Code of Conduct.
















                    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%2f478095%2ftheorem-titles-in-outer-margins-even-odd-pages%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

                    Installing LyX: “No textclass is found.”LyX installation error- text class not found- 'Reconfigure' or...

                    (1602) Indiana Índice Designación y nombre Características orbitales Véase...

                    Universidad Autónoma de Occidente Índice Historia Campus Facultades Programas Académicos Medios de...