Displaymode-like theorem environment
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.
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}{}
theorems amsthm displaystyle
add a comment |
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.
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}{}
theorems amsthm displaystyle
1
Welcome to TeX SX! Could you post a compilable code?
– Bernard
Feb 13 at 20:33
add a comment |
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.
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}{}
theorems amsthm displaystyle
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.
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}{}
theorems amsthm displaystyle
theorems amsthm displaystyle
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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}
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}
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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}
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}
add a comment |
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}
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}
add a comment |
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}
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}
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}
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}
edited Feb 13 at 22:14
answered Feb 13 at 22:04
egregegreg
721k8719113210
721k8719113210
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
Welcome to TeX SX! Could you post a compilable code?
– Bernard
Feb 13 at 20:33