Itemizing theorem body
Using package amsthm
, the desired theorem style achieved,
documentclass{book}
usepackage{amsthm}
newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}
begin{document}
begin{mythm}
This is a normal body text.
end{mythm}
end{document}
But itemizing the body makes trouble,
documentclass{book}
usepackage{amsthm}
newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}
begin{document}
begin{mythm}
begin{itemize}
item This an itemized body text.
item This an itemized body text.
end{itemize}
end{mythm}
end{document}
As the last output shows, first item has jumped to the head line.
How can I bring it back to the body?
theorems itemize amsthm
add a comment |
Using package amsthm
, the desired theorem style achieved,
documentclass{book}
usepackage{amsthm}
newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}
begin{document}
begin{mythm}
This is a normal body text.
end{mythm}
end{document}
But itemizing the body makes trouble,
documentclass{book}
usepackage{amsthm}
newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}
begin{document}
begin{mythm}
begin{itemize}
item This an itemized body text.
item This an itemized body text.
end{itemize}
end{mythm}
end{document}
As the last output shows, first item has jumped to the head line.
How can I bring it back to the body?
theorems itemize amsthm
potential duplicate: Enumerate alignment problem in theorem environment
– barbara beeton
Apr 30 '16 at 12:58
Actually this is not a duplicate. I do not want to align items with what is on head line.
– Shaqpad
Apr 30 '16 at 13:01
1
Useleavevmode
beforebegin{itemize}
– Christian Hupfer
Apr 30 '16 at 13:05
@Shaqpad -- the use ofleavevmode
is exactly what that answer recommends, as christian has repeated. items are not aligned with the head line, but treated as a "usual" list. i'll add an example to the cited answer to make this clear.
– barbara beeton
Apr 30 '16 at 13:42
@Christian Hupfer:leavevmode
is not enough, as there will be a spurious vertical space.
– Bernard
Apr 30 '16 at 15:00
add a comment |
Using package amsthm
, the desired theorem style achieved,
documentclass{book}
usepackage{amsthm}
newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}
begin{document}
begin{mythm}
This is a normal body text.
end{mythm}
end{document}
But itemizing the body makes trouble,
documentclass{book}
usepackage{amsthm}
newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}
begin{document}
begin{mythm}
begin{itemize}
item This an itemized body text.
item This an itemized body text.
end{itemize}
end{mythm}
end{document}
As the last output shows, first item has jumped to the head line.
How can I bring it back to the body?
theorems itemize amsthm
Using package amsthm
, the desired theorem style achieved,
documentclass{book}
usepackage{amsthm}
newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}
begin{document}
begin{mythm}
This is a normal body text.
end{mythm}
end{document}
But itemizing the body makes trouble,
documentclass{book}
usepackage{amsthm}
newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}
begin{document}
begin{mythm}
begin{itemize}
item This an itemized body text.
item This an itemized body text.
end{itemize}
end{mythm}
end{document}
As the last output shows, first item has jumped to the head line.
How can I bring it back to the body?
theorems itemize amsthm
theorems itemize amsthm
edited Apr 30 '16 at 13:32
Bernard
166k769194
166k769194
asked Apr 30 '16 at 12:55
ShaqpadShaqpad
575
575
potential duplicate: Enumerate alignment problem in theorem environment
– barbara beeton
Apr 30 '16 at 12:58
Actually this is not a duplicate. I do not want to align items with what is on head line.
– Shaqpad
Apr 30 '16 at 13:01
1
Useleavevmode
beforebegin{itemize}
– Christian Hupfer
Apr 30 '16 at 13:05
@Shaqpad -- the use ofleavevmode
is exactly what that answer recommends, as christian has repeated. items are not aligned with the head line, but treated as a "usual" list. i'll add an example to the cited answer to make this clear.
– barbara beeton
Apr 30 '16 at 13:42
@Christian Hupfer:leavevmode
is not enough, as there will be a spurious vertical space.
– Bernard
Apr 30 '16 at 15:00
add a comment |
potential duplicate: Enumerate alignment problem in theorem environment
– barbara beeton
Apr 30 '16 at 12:58
Actually this is not a duplicate. I do not want to align items with what is on head line.
– Shaqpad
Apr 30 '16 at 13:01
1
Useleavevmode
beforebegin{itemize}
– Christian Hupfer
Apr 30 '16 at 13:05
@Shaqpad -- the use ofleavevmode
is exactly what that answer recommends, as christian has repeated. items are not aligned with the head line, but treated as a "usual" list. i'll add an example to the cited answer to make this clear.
– barbara beeton
Apr 30 '16 at 13:42
@Christian Hupfer:leavevmode
is not enough, as there will be a spurious vertical space.
– Bernard
Apr 30 '16 at 15:00
potential duplicate: Enumerate alignment problem in theorem environment
– barbara beeton
Apr 30 '16 at 12:58
potential duplicate: Enumerate alignment problem in theorem environment
– barbara beeton
Apr 30 '16 at 12:58
Actually this is not a duplicate. I do not want to align items with what is on head line.
– Shaqpad
Apr 30 '16 at 13:01
Actually this is not a duplicate. I do not want to align items with what is on head line.
– Shaqpad
Apr 30 '16 at 13:01
1
1
Use
leavevmode
before begin{itemize}
– Christian Hupfer
Apr 30 '16 at 13:05
Use
leavevmode
before begin{itemize}
– Christian Hupfer
Apr 30 '16 at 13:05
@Shaqpad -- the use of
leavevmode
is exactly what that answer recommends, as christian has repeated. items are not aligned with the head line, but treated as a "usual" list. i'll add an example to the cited answer to make this clear.– barbara beeton
Apr 30 '16 at 13:42
@Shaqpad -- the use of
leavevmode
is exactly what that answer recommends, as christian has repeated. items are not aligned with the head line, but treated as a "usual" list. i'll add an example to the cited answer to make this clear.– barbara beeton
Apr 30 '16 at 13:42
@Christian Hupfer:
leavevmode
is not enough, as there will be a spurious vertical space.– Bernard
Apr 30 '16 at 15:00
@Christian Hupfer:
leavevmode
is not enough, as there will be a spurious vertical space.– Bernard
Apr 30 '16 at 15:00
add a comment |
3 Answers
3
active
oldest
votes
Here is a solution with enumitem
. One can define a thmitemise
clone, which incorporates by default the given setup, to avoid having to type it each time it is used:
documentclass{book}
usepackage{amsthm} newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}
usepackage{enumitem, showframe}
begin{document}
begin{mythm}
begin{itemize}[wide=0.5em, leftmargin =*, nosep, before = leavevmodevspace{-baselineskip}]
item This an itemized body text.
item This an itemized body text.
end{itemize}
end{mythm}
end{document}
add a comment |
here is a mechanism for removing the extra space between the theorem head
and the list. i don't really like it, but it will provide necessary
information to make this a feature of the ams theorem facility when that
is overhauled. (latex doesn't make things like this easy.)
documentclass{amsart}
newtheorem{thm}{Theorem}[section]
begin{document}
begin{thm}
leavevmode
makeatletter
@nobreaktrue
makeatother
begin{enumerate}
item Item 1
item Item 2
item Item 3
end{enumerate}
end{thm}
end{document}
add a comment |
An even easier solution may be this:
usepackage[inline]{enumitem}
begin{mythm}
begin{enumerate}[label=(arabic*)]
item
item state 1
item state 2
end{enumerate}
end{mythm}
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%2f307141%2fitemizing-theorem-body%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here is a solution with enumitem
. One can define a thmitemise
clone, which incorporates by default the given setup, to avoid having to type it each time it is used:
documentclass{book}
usepackage{amsthm} newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}
usepackage{enumitem, showframe}
begin{document}
begin{mythm}
begin{itemize}[wide=0.5em, leftmargin =*, nosep, before = leavevmodevspace{-baselineskip}]
item This an itemized body text.
item This an itemized body text.
end{itemize}
end{mythm}
end{document}
add a comment |
Here is a solution with enumitem
. One can define a thmitemise
clone, which incorporates by default the given setup, to avoid having to type it each time it is used:
documentclass{book}
usepackage{amsthm} newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}
usepackage{enumitem, showframe}
begin{document}
begin{mythm}
begin{itemize}[wide=0.5em, leftmargin =*, nosep, before = leavevmodevspace{-baselineskip}]
item This an itemized body text.
item This an itemized body text.
end{itemize}
end{mythm}
end{document}
add a comment |
Here is a solution with enumitem
. One can define a thmitemise
clone, which incorporates by default the given setup, to avoid having to type it each time it is used:
documentclass{book}
usepackage{amsthm} newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}
usepackage{enumitem, showframe}
begin{document}
begin{mythm}
begin{itemize}[wide=0.5em, leftmargin =*, nosep, before = leavevmodevspace{-baselineskip}]
item This an itemized body text.
item This an itemized body text.
end{itemize}
end{mythm}
end{document}
Here is a solution with enumitem
. One can define a thmitemise
clone, which incorporates by default the given setup, to avoid having to type it each time it is used:
documentclass{book}
usepackage{amsthm} newtheoremstyle{mystyle}{}{}{}{}{bf}{}{newline}{}
theoremstyle{mystyle}
newtheorem*{mythm}{Theorem}
usepackage{enumitem, showframe}
begin{document}
begin{mythm}
begin{itemize}[wide=0.5em, leftmargin =*, nosep, before = leavevmodevspace{-baselineskip}]
item This an itemized body text.
item This an itemized body text.
end{itemize}
end{mythm}
end{document}
edited May 2 '16 at 8:41
answered Apr 30 '16 at 13:31
BernardBernard
166k769194
166k769194
add a comment |
add a comment |
here is a mechanism for removing the extra space between the theorem head
and the list. i don't really like it, but it will provide necessary
information to make this a feature of the ams theorem facility when that
is overhauled. (latex doesn't make things like this easy.)
documentclass{amsart}
newtheorem{thm}{Theorem}[section]
begin{document}
begin{thm}
leavevmode
makeatletter
@nobreaktrue
makeatother
begin{enumerate}
item Item 1
item Item 2
item Item 3
end{enumerate}
end{thm}
end{document}
add a comment |
here is a mechanism for removing the extra space between the theorem head
and the list. i don't really like it, but it will provide necessary
information to make this a feature of the ams theorem facility when that
is overhauled. (latex doesn't make things like this easy.)
documentclass{amsart}
newtheorem{thm}{Theorem}[section]
begin{document}
begin{thm}
leavevmode
makeatletter
@nobreaktrue
makeatother
begin{enumerate}
item Item 1
item Item 2
item Item 3
end{enumerate}
end{thm}
end{document}
add a comment |
here is a mechanism for removing the extra space between the theorem head
and the list. i don't really like it, but it will provide necessary
information to make this a feature of the ams theorem facility when that
is overhauled. (latex doesn't make things like this easy.)
documentclass{amsart}
newtheorem{thm}{Theorem}[section]
begin{document}
begin{thm}
leavevmode
makeatletter
@nobreaktrue
makeatother
begin{enumerate}
item Item 1
item Item 2
item Item 3
end{enumerate}
end{thm}
end{document}
here is a mechanism for removing the extra space between the theorem head
and the list. i don't really like it, but it will provide necessary
information to make this a feature of the ams theorem facility when that
is overhauled. (latex doesn't make things like this easy.)
documentclass{amsart}
newtheorem{thm}{Theorem}[section]
begin{document}
begin{thm}
leavevmode
makeatletter
@nobreaktrue
makeatother
begin{enumerate}
item Item 1
item Item 2
item Item 3
end{enumerate}
end{thm}
end{document}
answered Apr 30 '16 at 21:49
barbara beetonbarbara beeton
69.3k9157368
69.3k9157368
add a comment |
add a comment |
An even easier solution may be this:
usepackage[inline]{enumitem}
begin{mythm}
begin{enumerate}[label=(arabic*)]
item
item state 1
item state 2
end{enumerate}
end{mythm}
add a comment |
An even easier solution may be this:
usepackage[inline]{enumitem}
begin{mythm}
begin{enumerate}[label=(arabic*)]
item
item state 1
item state 2
end{enumerate}
end{mythm}
add a comment |
An even easier solution may be this:
usepackage[inline]{enumitem}
begin{mythm}
begin{enumerate}[label=(arabic*)]
item
item state 1
item state 2
end{enumerate}
end{mythm}
An even easier solution may be this:
usepackage[inline]{enumitem}
begin{mythm}
begin{enumerate}[label=(arabic*)]
item
item state 1
item state 2
end{enumerate}
end{mythm}
answered Aug 16 '18 at 15:56
UnicornUnicorn
1577
1577
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f307141%2fitemizing-theorem-body%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
potential duplicate: Enumerate alignment problem in theorem environment
– barbara beeton
Apr 30 '16 at 12:58
Actually this is not a duplicate. I do not want to align items with what is on head line.
– Shaqpad
Apr 30 '16 at 13:01
1
Use
leavevmode
beforebegin{itemize}
– Christian Hupfer
Apr 30 '16 at 13:05
@Shaqpad -- the use of
leavevmode
is exactly what that answer recommends, as christian has repeated. items are not aligned with the head line, but treated as a "usual" list. i'll add an example to the cited answer to make this clear.– barbara beeton
Apr 30 '16 at 13:42
@Christian Hupfer:
leavevmode
is not enough, as there will be a spurious vertical space.– Bernard
Apr 30 '16 at 15:00