{theorems} are environments which are commonly numbered. They are extensively used in math texts. Examples of such environments are theorems, corollaries, lemmas, propositions, remarks and definitions. Popular packages are {amsthm}, {ntheorem}, and {thmtools}. Covers discussion on proofs too.
4
votes
1answer
461 views
Changing `proof` endmark when using `ntheorem` with `thmmarks` and `amsthm` options
Q: Is there an easy way to change the default proof environment endmark (it's normally a funny open square and I'd like to change it to \blacksquare) when using the ntheorem package with the amsthm ...
4
votes
2answers
589 views
QED symbol on the same page as proof
I'm using the proof environment from the amsthm package. In some cases, the last line of a proof falls at the end of a page, but the QED symbol (the little white box) ends up on the following page.
...
7
votes
2answers
2k views
amsthm: \newtheoremstyle, headspace, \mbox{}, and lists
Q: How do I define a newtheoremstyle which will start the theorem text on a newline after the header even when the theorem text starts with a list, e.g., enumerate? If there's no way of doing this, ...
6
votes
2answers
432 views
Creating list of for \newtheoremstyle
I want to create an list of theorems much like the list of figures, but couldn't find a packacke or tutorial to solve my problem. I tried this http://texblog.org/2008/07/13/define-your-own-list-of/ ...
17
votes
2answers
540 views
Recalling a theorem
Suppose I have some theorem in the paper
Section 1
Theorem 1.1. Let ...
And then later in the paper I want to recall the theorem by reprinting it
Section 4
We recall Theorem 1.1:
...
2
votes
1answer
248 views
Redefine \emph inside theorem using \newshadedtheorem from ntheorem
Using the ntheorem package, the definition of \newshadedtheorem overwrites the \theoremprework, which I wanted to use to redefine \emph inside a custom shaded theorem. The definition of ...
5
votes
1answer
244 views
Plain enumeration of theorems definitions etc
In my TeX document Theorems, Definitions, Lemmas are enumerated in the following way:
Definition 1.1
Lemma 1.1
Theorem 1.1
Definition 1.2
Lemma 1.2
Theorem 1.2
But I would like to have
...
6
votes
2answers
2k views
Allow theorem split in many frames in beamer
How can a theorem-like environment be (automatically) split into multiple frames if the vertical space it needs is not enough in a frame?
In my document preamble I have
\theoremstyle{definition}
...
14
votes
4answers
422 views
A problem with thmtools and cleveref
I am trying to use thmtools and cleveref and I am getting a quite peculiar error. Here's a minimal example.
\documentclass{article}
\usepackage{thmtools}
\usepackage{cleveref}
...
6
votes
1answer
332 views
How can I eliminate the vertical extra space before and after the proof-environment?
consider the following code:
\documentclass{scrartcl}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsthm}
...
2
votes
1answer
388 views
How to find out the counter of theorems etc. in LyX
I have a document that has a lot of theorems - all introduced in LyX via the "Theorems"-Module (for those who don't know LyX, that means, that I didn't define my own theorem environment via ...
2
votes
1answer
437 views
Amsbook: Theoremstyles definition and remark identical?
If I understand the documentation of the AMS classes correctly, then a theorem in the style "plain" should have bold heading and italic body text, in the style "definition", there should be bold ...
7
votes
1answer
227 views
Which packages/practices are relevant for writing Structured Derivations? (similar to Dijkstra's calculational style of proofs)
Does anyone know of any packages that support this style of writing proofs?
The only things that I've found are: tex-ewd, a bunch of plain TeX macros on CTAN written specifically with Dijkstra in ...
4
votes
1answer
670 views
Numbering theorems in the appendix by adding the appendix letter in front/after the theorem number
Can someone please tell me how to make definitions, theorems etc. in the appendix look like Definition A1 or Definition 1A (an "A" should be somewhere), if the appendix is "numbered" with A (meaning ...
2
votes
1answer
382 views
Theorem formatting: strange interaction with itemize
This question is related to this one.
I want to have theorem headers alone on a line like this:
Theorem 1.
some text...
In the amsthm documentation, they suggest doing this:
...
4
votes
2answers
570 views
`ntheorem` and `thmtools` seem incompatible
I am preparing the setup of the theorem environments for my thesis. I want to do this right before I have say 200 of those environments in my document, since changing them will likely break things at ...
6
votes
2answers
756 views
QED symbol in a custom theorem environment
I have created my own theorem environment like this
\newtheoremstyle{mythmstyle}{}{}{}{}{\scshape}{.}{ }{}
\theoremstyle{mythmstyle} \newtheorem{mythm}{Theorem}
How do I add the QED symbol (the ...
1
vote
1answer
179 views
Issue with resetting theorem counter
I am using LyX to typeset a document. I wanted to use another theorem-like construct not available in amsthm. So I included it using LaTeX code.
\newtheorem{discussion}{Discussion}[section]
This ...
4
votes
2answers
535 views
Numbering a theorem with a letter but not changing numbering of other theorems
I am wondering how to label a theorem in LaTeX using a letter but not changing the numbering of the other theorems. For example, I want Theorem 1.3 to be Theorem A and Theorem 1.4 to remain as Theorem ...
10
votes
2answers
158 views
Counting the total number of theorems
I have:
\usepackage{amsthm}
\newtheorem{problem}{Problem}
....
\begin{problem}...\end{problem}...
...
\begin{problem}...\end{problem}...
In the first page of the document, how can I know the number ...
2
votes
1answer
289 views
Spacing before theorem with scrbook
I recently changed from book to scrbook. Because of this there is now no spacing before a theorem enviroment. I now want to change this back, i.e. I want to have an extra spacing before a theorem ...
3
votes
1answer
205 views
Mimicking the `proof` environment
I want to mimic the proof environment from the amsthm package.
I want something that has the same layout (margins, etc.) as the proof environment, but with the following changes:
1) Instead of ...
3
votes
1answer
196 views
Reindexing Theorem Numbers
The amsthm package comes with an several theorem-like environments. Is there a way to adjust the indexing on a sequence of theorems to skip a number? That is, I would like to have it do something like ...
4
votes
2answers
460 views
How to suppress vertical space between theorem heads and enumitem environments?
How can I suppress vertical space between a theorem head and an enumitem
environment?
I would like the output to look like version 3 below, but I hope there is an
automagical solution without ~ and ...
4
votes
2answers
769 views
How to get correct autoref for theorems
I have some own theorem environments. And my theorems are numbered like the chapter. Now I would like to use autoref with that. But it does not work like it is described here ...
5
votes
1answer
233 views
Exporting Definitions
Below is part of the code for my notes. I would like to "easily" create a new document displaying only the definitions, theorems, and lemmas. I can copy and paste this and just delete what I do not ...
2
votes
3answers
246 views
Customizing theorem environments, eqnarray, and equation
I almost always use the following environments: equation, eqnarray and environments that are defined in the preamble with the command \newtheorem (i.e. definition, theme, Theorema, proposition etc ...
7
votes
1answer
8k views
Theorem/Definition/Lemma problem — Numbering
I am trying to work on the numbering of the theorems/definitions/lemmas etc., and I have some problems with the numbering.
I would like the theorems, propositions, corollarys, definitions, ...
9
votes
1answer
2k views
Theorem numbering as chapter.section.subsection.theorem number
This might be a simple question but it's weird that I couldn't find the answer anywhere on the internet.
If I set as
\newtheorem{-}{-}[section]
then I get the numbering as Theorem ...
9
votes
1answer
379 views
A theorem and its proof in different places
I have a couple of theorems, proofs of which are quite boring and longish. I would like to place theorem formulations in a usual place and stack up the proofs at the end of the chapter. How to do ...
3
votes
3answers
292 views
ntheorem and attributions without redefinining a theorem style
I'm using the theoremstyle marginbreak from the package ntheorem as follows:
\theoremstyle{marginbreak}
\theoremindent1cm
\newtheorem{teo}{Theorem}[chapter]
The problem is that when I want to ...
2
votes
2answers
440 views
Need help in order to rewrite a proof environment
I have the following document (that I have shortened considerably), and have several proofs that are of type: "Let x be in set A then go on iff this is true iff this is true, etc and end with ...
9
votes
3answers
262 views
Numbering theorem-like environments
I would like all my theorem-like environments (theorem, example, etc.) to be numbered but such that the number appears before the environment's name, more or less like this:
1. Theorem
2. Example
...
8
votes
2answers
312 views
How to replace the “.” with “:” in the proof environment?
I have seen a similar post here How to remove the "." in the proof environment?.
But I don't know how I can modify the answer to replace . with : by using etoolbox.
0
votes
0answers
398 views
Cross-referencing with amsthm and cleveref [closed]
I have to reference lemmas and theorems I have created using amsthm, but I want the actual word (e.g"Lemma" or "Theorem") to show up whenever I reference them. \ref didn't do the trick, as that only ...
3
votes
1answer
1k views
Presentation using beamer
Using beamer I have prepared the following slide. I want to display the theorem
in a box or like that for better presentation. Also title heading is left align. Is it ok or not?
...
17
votes
3answers
1k views
How to make the optional title of a theorem bold with amsthm?
I use the code mentioned in Title of the theorem:
\begin{theorem}[The title]
Some statement
\end{theorem}
However with amsthm the optional title -- above: "The title" -- is neither bold nor italic, ...
3
votes
1answer
308 views
Numbering for a theorem and enumerated list within that theorem
I have the following amsthm environment defined
\newtheorem{cslist}{Comparative Static Hypothesis}
In instances of cslist, I would like to have an enumerated list like this.
...
7
votes
1answer
330 views
How do I get sub-numbering for theorems (Theorem 1.A., Theorem 1.B., Theorem 2.)?
I am trying to number my theorems as follows:
Theorem 1.A. First part of a theorem.
Theorem 1.B. Second part of the theorem.
Theorem 2. A theorem with no parts.
The following almost works:
...
5
votes
1answer
335 views
Spacing (numwidth) control for listtheorems
I am using the \listtheorems command from ntheorem to generate a list of theorems for a document. However, because I number the theorems inside sections, the theorem number is a bit on the long side, ...
4
votes
1answer
419 views
Hyperref and ntheorem's thref: inconsistent numbering
When using ntheorem with the thref option to get the named reference command \thref, sometimes the theorem numbers produced is "different" from the theorem numbers produced by just \ref. Any ...
3
votes
2answers
1k views
Automatic \noindent on the first paragraph of each theorem environment
I am currently putting a \noindent before the first paragraph of each theorem, proof, etc. in my memoir document. Is there any way to have memoir do this automatically?
For example, is there any way ...
3
votes
1answer
393 views
passing a theorem name using ntheorem
I'm looking for a way to style a theorem as shown here.
The code there works if I want the theorem number in the heading box, but I also want to be able to pass a custom theorem name to add to that ...
1
vote
2answers
331 views
How to identify the counter of Equation, Theorem, and Section
I asked before how to identify the counter of Equation and Theorem. A simple answer suggested there is
\newtheorem{thm}[equation]{Theorem}
A simple variation allows me to identify the Theorem and ...
3
votes
2answers
314 views
Missing footnote and marginpar with package thmbox or package thmtools with option thmbox
I am using package thmbox to write theorems. If I include footnote or marginpar within the body of a theorem, the following problems arise: the text of the footnote is simply missing, while the ...
3
votes
1answer
280 views
Extra space before labeled theorem body with thmbox or thmtools+thmbox
Package thmbox seems to add an extra space at the beginning of the body of the labeled theorems. See example below. Package thmtools with the thmbox option does the same. Latex original, package ...
1
vote
1answer
489 views
Unnumbered theorem-like environments using thmtools
This produces an error (\* already defined):
\documentclass{report}
\usepackage{thmtools}
\declaretheorem[numbered=no]{theorem}
\begin{document}
Nothing.
\end{document}
Adding package amsthm ...
1
vote
1answer
172 views
Theorem-like environments in Latexit?
I want to use Theorem-like environments in Latexit.
How can I do this?
2
votes
1answer
224 views
Nested custom theorems using amsthm
I am having trouble nesting custom theorem environments in such a way that the inner environment does not inherit the characteristics (e.g. HEADFONT, etc.) of the outer environment.
Possibly the ...
2
votes
2answers
311 views
Two math sections of the same type in a row?
Whenever I try to create two sections of the same type in a row LyX unites them as if they were one. I write a definition, press ENTER for a new line, and then want to write another definition on that ...