Displaymode-like theorem environment












4















I am having trouble recreating this theorem environment. I want to create an environment that is essentially on its own line, much like a block quote.
enter image description here



The only code I have so far just makes the this specific environment that is pictured



newtheorem*{theorem}{Theorem}
newtheoremstyle{named}{}{}{itshape}{}{normalfontscshape}{.}{.5em}{thmnote{#3}#1}
theoremstyle{named}
newtheorem*{namedtheorem}{}


enter image description here










share|improve this question


















  • 1





    Welcome to TeX SX! Could you post a compilable code?

    – Bernard
    Feb 13 at 20:33
















4















I am having trouble recreating this theorem environment. I want to create an environment that is essentially on its own line, much like a block quote.
enter image description here



The only code I have so far just makes the this specific environment that is pictured



newtheorem*{theorem}{Theorem}
newtheoremstyle{named}{}{}{itshape}{}{normalfontscshape}{.}{.5em}{thmnote{#3}#1}
theoremstyle{named}
newtheorem*{namedtheorem}{}


enter image description here










share|improve this question


















  • 1





    Welcome to TeX SX! Could you post a compilable code?

    – Bernard
    Feb 13 at 20:33














4












4








4








I am having trouble recreating this theorem environment. I want to create an environment that is essentially on its own line, much like a block quote.
enter image description here



The only code I have so far just makes the this specific environment that is pictured



newtheorem*{theorem}{Theorem}
newtheoremstyle{named}{}{}{itshape}{}{normalfontscshape}{.}{.5em}{thmnote{#3}#1}
theoremstyle{named}
newtheorem*{namedtheorem}{}


enter image description here










share|improve this question














I am having trouble recreating this theorem environment. I want to create an environment that is essentially on its own line, much like a block quote.
enter image description here



The only code I have so far just makes the this specific environment that is pictured



newtheorem*{theorem}{Theorem}
newtheoremstyle{named}{}{}{itshape}{}{normalfontscshape}{.}{.5em}{thmnote{#3}#1}
theoremstyle{named}
newtheorem*{namedtheorem}{}


enter image description here







theorems amsthm displaystyle






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 13 at 19:11









Lukas ZamoraLukas Zamora

232




232








  • 1





    Welcome to TeX SX! Could you post a compilable code?

    – Bernard
    Feb 13 at 20:33














  • 1





    Welcome to TeX SX! Could you post a compilable code?

    – Bernard
    Feb 13 at 20:33








1




1





Welcome to TeX SX! Could you post a compilable code?

– Bernard
Feb 13 at 20:33





Welcome to TeX SX! Could you post a compilable code?

– Bernard
Feb 13 at 20:33










1 Answer
1






active

oldest

votes


















2














You need no special newtheorem declaration:



documentclass{article}
usepackage{amsmath}

usepackage{lipsum} % for context

newenvironment{namedtheorem}[1]
{begin{quotation}noindenttextsc{#1.} itshapeignorespaces}
{end{quotation}}

begin{document}

lipsum[1][1-5]

begin{namedtheorem}{Scale-Invariance}
For any distance function $d$ and any $alpha>0$,
we have $f(d)=f(alphacdot d)$.
end{namedtheorem}

lipsum[4]

end{document}


enter image description here



A more customizable version:



documentclass{article}
usepackage{amsmath,amsthm,microtype}

usepackage{lipsum} % for context

newtheoremstyle{personal}
{topsep} % ABOVESPACE
{topsep} % BELOWSPACE
{itshape} % BODYFONT
{0pt} % INDENT (empty value is the same as 0pt)
{scshape} % HEADFONT
{.} % HEADPUNCT
{5pt plus 1pt minus 1pt} % HEADSPACE
{thmname{{lsstyle#1}}thmnote{ (#3)}} % CUSTOM-HEAD-SPEC
theoremstyle{personal}

newtheorem*{namedtheoreminner}{namedtheoremname}
newenvironment{namedtheorem}[1]
{paraddvspace{bigskipamount}
dimen0=parindent
centeringbegin{minipage}{dimexprtextwidth-2dimen0relax}
parindent=dimen0
newcommandnamedtheoremname{#1}%
begin{namedtheoreminner}}
{end{namedtheoreminner}end{minipage}par
addvspace{bigskipamount}}

begin{document}

lipsum[1][1-5]

begin{namedtheorem}{Scale-Invariance}
For any distance function $d$ and any $alpha>0$,
we have $f(d)=f(alphacdot d)$.
end{namedtheorem}

lipsum[4]

end{document}


enter image description here






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%2f474749%2fdisplaymode-like-theorem-environment%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














    You need no special newtheorem declaration:



    documentclass{article}
    usepackage{amsmath}

    usepackage{lipsum} % for context

    newenvironment{namedtheorem}[1]
    {begin{quotation}noindenttextsc{#1.} itshapeignorespaces}
    {end{quotation}}

    begin{document}

    lipsum[1][1-5]

    begin{namedtheorem}{Scale-Invariance}
    For any distance function $d$ and any $alpha>0$,
    we have $f(d)=f(alphacdot d)$.
    end{namedtheorem}

    lipsum[4]

    end{document}


    enter image description here



    A more customizable version:



    documentclass{article}
    usepackage{amsmath,amsthm,microtype}

    usepackage{lipsum} % for context

    newtheoremstyle{personal}
    {topsep} % ABOVESPACE
    {topsep} % BELOWSPACE
    {itshape} % BODYFONT
    {0pt} % INDENT (empty value is the same as 0pt)
    {scshape} % HEADFONT
    {.} % HEADPUNCT
    {5pt plus 1pt minus 1pt} % HEADSPACE
    {thmname{{lsstyle#1}}thmnote{ (#3)}} % CUSTOM-HEAD-SPEC
    theoremstyle{personal}

    newtheorem*{namedtheoreminner}{namedtheoremname}
    newenvironment{namedtheorem}[1]
    {paraddvspace{bigskipamount}
    dimen0=parindent
    centeringbegin{minipage}{dimexprtextwidth-2dimen0relax}
    parindent=dimen0
    newcommandnamedtheoremname{#1}%
    begin{namedtheoreminner}}
    {end{namedtheoreminner}end{minipage}par
    addvspace{bigskipamount}}

    begin{document}

    lipsum[1][1-5]

    begin{namedtheorem}{Scale-Invariance}
    For any distance function $d$ and any $alpha>0$,
    we have $f(d)=f(alphacdot d)$.
    end{namedtheorem}

    lipsum[4]

    end{document}


    enter image description here






    share|improve this answer






























      2














      You need no special newtheorem declaration:



      documentclass{article}
      usepackage{amsmath}

      usepackage{lipsum} % for context

      newenvironment{namedtheorem}[1]
      {begin{quotation}noindenttextsc{#1.} itshapeignorespaces}
      {end{quotation}}

      begin{document}

      lipsum[1][1-5]

      begin{namedtheorem}{Scale-Invariance}
      For any distance function $d$ and any $alpha>0$,
      we have $f(d)=f(alphacdot d)$.
      end{namedtheorem}

      lipsum[4]

      end{document}


      enter image description here



      A more customizable version:



      documentclass{article}
      usepackage{amsmath,amsthm,microtype}

      usepackage{lipsum} % for context

      newtheoremstyle{personal}
      {topsep} % ABOVESPACE
      {topsep} % BELOWSPACE
      {itshape} % BODYFONT
      {0pt} % INDENT (empty value is the same as 0pt)
      {scshape} % HEADFONT
      {.} % HEADPUNCT
      {5pt plus 1pt minus 1pt} % HEADSPACE
      {thmname{{lsstyle#1}}thmnote{ (#3)}} % CUSTOM-HEAD-SPEC
      theoremstyle{personal}

      newtheorem*{namedtheoreminner}{namedtheoremname}
      newenvironment{namedtheorem}[1]
      {paraddvspace{bigskipamount}
      dimen0=parindent
      centeringbegin{minipage}{dimexprtextwidth-2dimen0relax}
      parindent=dimen0
      newcommandnamedtheoremname{#1}%
      begin{namedtheoreminner}}
      {end{namedtheoreminner}end{minipage}par
      addvspace{bigskipamount}}

      begin{document}

      lipsum[1][1-5]

      begin{namedtheorem}{Scale-Invariance}
      For any distance function $d$ and any $alpha>0$,
      we have $f(d)=f(alphacdot d)$.
      end{namedtheorem}

      lipsum[4]

      end{document}


      enter image description here






      share|improve this answer




























        2












        2








        2







        You need no special newtheorem declaration:



        documentclass{article}
        usepackage{amsmath}

        usepackage{lipsum} % for context

        newenvironment{namedtheorem}[1]
        {begin{quotation}noindenttextsc{#1.} itshapeignorespaces}
        {end{quotation}}

        begin{document}

        lipsum[1][1-5]

        begin{namedtheorem}{Scale-Invariance}
        For any distance function $d$ and any $alpha>0$,
        we have $f(d)=f(alphacdot d)$.
        end{namedtheorem}

        lipsum[4]

        end{document}


        enter image description here



        A more customizable version:



        documentclass{article}
        usepackage{amsmath,amsthm,microtype}

        usepackage{lipsum} % for context

        newtheoremstyle{personal}
        {topsep} % ABOVESPACE
        {topsep} % BELOWSPACE
        {itshape} % BODYFONT
        {0pt} % INDENT (empty value is the same as 0pt)
        {scshape} % HEADFONT
        {.} % HEADPUNCT
        {5pt plus 1pt minus 1pt} % HEADSPACE
        {thmname{{lsstyle#1}}thmnote{ (#3)}} % CUSTOM-HEAD-SPEC
        theoremstyle{personal}

        newtheorem*{namedtheoreminner}{namedtheoremname}
        newenvironment{namedtheorem}[1]
        {paraddvspace{bigskipamount}
        dimen0=parindent
        centeringbegin{minipage}{dimexprtextwidth-2dimen0relax}
        parindent=dimen0
        newcommandnamedtheoremname{#1}%
        begin{namedtheoreminner}}
        {end{namedtheoreminner}end{minipage}par
        addvspace{bigskipamount}}

        begin{document}

        lipsum[1][1-5]

        begin{namedtheorem}{Scale-Invariance}
        For any distance function $d$ and any $alpha>0$,
        we have $f(d)=f(alphacdot d)$.
        end{namedtheorem}

        lipsum[4]

        end{document}


        enter image description here






        share|improve this answer















        You need no special newtheorem declaration:



        documentclass{article}
        usepackage{amsmath}

        usepackage{lipsum} % for context

        newenvironment{namedtheorem}[1]
        {begin{quotation}noindenttextsc{#1.} itshapeignorespaces}
        {end{quotation}}

        begin{document}

        lipsum[1][1-5]

        begin{namedtheorem}{Scale-Invariance}
        For any distance function $d$ and any $alpha>0$,
        we have $f(d)=f(alphacdot d)$.
        end{namedtheorem}

        lipsum[4]

        end{document}


        enter image description here



        A more customizable version:



        documentclass{article}
        usepackage{amsmath,amsthm,microtype}

        usepackage{lipsum} % for context

        newtheoremstyle{personal}
        {topsep} % ABOVESPACE
        {topsep} % BELOWSPACE
        {itshape} % BODYFONT
        {0pt} % INDENT (empty value is the same as 0pt)
        {scshape} % HEADFONT
        {.} % HEADPUNCT
        {5pt plus 1pt minus 1pt} % HEADSPACE
        {thmname{{lsstyle#1}}thmnote{ (#3)}} % CUSTOM-HEAD-SPEC
        theoremstyle{personal}

        newtheorem*{namedtheoreminner}{namedtheoremname}
        newenvironment{namedtheorem}[1]
        {paraddvspace{bigskipamount}
        dimen0=parindent
        centeringbegin{minipage}{dimexprtextwidth-2dimen0relax}
        parindent=dimen0
        newcommandnamedtheoremname{#1}%
        begin{namedtheoreminner}}
        {end{namedtheoreminner}end{minipage}par
        addvspace{bigskipamount}}

        begin{document}

        lipsum[1][1-5]

        begin{namedtheorem}{Scale-Invariance}
        For any distance function $d$ and any $alpha>0$,
        we have $f(d)=f(alphacdot d)$.
        end{namedtheorem}

        lipsum[4]

        end{document}


        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 13 at 22:14

























        answered Feb 13 at 22:04









        egregegreg

        721k8719113210




        721k8719113210






























            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%2f474749%2fdisplaymode-like-theorem-environment%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)

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents