Questions tagged [theorems]

{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.

Filter by
Sorted by
Tagged with
119 votes
3 answers
187k views

Theorem without numbering

Is it possible to have single theorems without numbering? I would like to be able to switch them off individually with asterisk-* or have a nono-theorem environment. \newtheorem{theorem}{Theorem} \...
Sebastian's user avatar
  • 1,907
110 votes
5 answers
141k views

Non italic text in theorems, definitions, examples

What package should I use, or what setting can I make to the font in theorems so that the text wouldn't be italic. I use amsmath, and from default, everything I write in theorem environments becomes ...
Beni Bogosel's user avatar
  • 1,688
102 votes
9 answers
40k views

How do I repeat a theorem number?

Often in my papers I want to mention theorems in the introduction that are introduced in more detail and proved in a later section. I'd like to include the statement of these theorems twice over, ...
Scott Morrison's user avatar
100 votes
3 answers
21k views

Theorem packages: which to use, which conflict?

As far as I know, one can create theorem environments using any of amsthm, ntheorem, thmtools and probably more. How should I define my theorem environments? Is one package clearly superior? Which ...
Seamus's user avatar
  • 73.2k
88 votes
2 answers
37k views

Recalling a theorem [duplicate]

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: Theorem 1.1. Let .....
Y Zhao's user avatar
  • 983
85 votes
2 answers
315k 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, ...
Gary's user avatar
  • 2,033
70 votes
4 answers
66k views

Custom theorem numbering

This one should be easy for the gurus… Suppose I want to define a theorem environment which has a custom numbering scheme. That is, instead of being numbered according to some counter, it is numbered ...
Skeptic's user avatar
  • 3,025
68 votes
8 answers
52k views

Pushing \qed to the right within a displayed formula

In my own custom theorem environment, I'm using the \qed command to create a white box. This works wonderfully when the theorem ends with a regular paragraph -- the box is pushed to the right where it ...
MayGodBlessKnuth's user avatar
65 votes
1 answer
44k views

How to change the word "Proof" in the proof environment?

I want to change the word "Proof" into "Solution". Of course the following works. \begin{proof}[Solution] \end{proof} But it's quite cumbersome to add this additional [Solution] every time. Is there ...
john's user avatar
  • 775
59 votes
2 answers
207k views

Solid black box in the proof environment

I am using \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \begin{document} \begin{proof} A = B \end{proof} \end{document} and an empty square box ...
JACKY88's user avatar
  • 2,187
57 votes
6 answers
64k views

Customizing theorem name

Suppose I have a series of theorems that I would like displayed as Jim's Theorem. Bob's Theorem. Will's Theorem. rather than as “Theorem (Jim).”, “Theorem (Bob).”, and “Theorem (Will)”. ...
Skeptic's user avatar
  • 571
53 votes
6 answers
44k views

Changing style of Proof

I'm using the \begin{proof} of the amsthm package. And I want to change the style of the Proof word that is added in the beginning. By default it is italic, I want to make it bold. How can I do it?
jutky's user avatar
  • 2,017
53 votes
7 answers
17k views

Is it possible to skip the first line in a theorem environment?

I'm currently writing up some solutions, and I like to rewrite the problem before answering it. I've set exercise to be a theorem environment, and the code I'm using is \begin{exercise} \begin{...
yunone's user avatar
  • 3,259
51 votes
1 answer
19k views

amsthm: what are the newtheoremstyle parameters for the default styles?

The package amsthm contains the predefined theorem styles plain, definition and remark which you can employ using \theoremstyle before your \newtheorem. You can also create new theorem styles like ...
peter's user avatar
  • 2,895
49 votes
1 answer
37k views

How can I create a "Proof of Theorem x.xx" header for a proof environment?

In many papers in mathematics, the author states a theorem in somewhere and adds some explanations and perhaps some lemmas and later starts the proof with a phrase like "Proof of Theorem x.xx" (x's ...
user avatar
48 votes
7 answers
156k views

\qed for theorems without proofs

It is common to place a \qed-Box at the end of a theorem statement (or lemma, corollary, ...) if we give no proof for that statement. How can I do this in LaTeX? If I place a qed-box at the end of ...
shuhalo's user avatar
  • 2,545
46 votes
5 answers
87k views

box around theorem statement

Is there an easy way to put a box around a theorem in LaTeX? For example to state an important theorem. I tried using page 20 of the ntheorem documentation, but I do not know how to use the package.
Nadori's user avatar
  • 1,865
46 votes
4 answers
21k views

Citing inside theorem header

How do I create something like this without getting any errors? \begin{thm}[\cite[page 10]{ABC2011}] ... \end{thm} I tried putting various things into {...} brackets, but not eliminating any errors. ...
user46365's user avatar
  • 543
45 votes
3 answers
33k views

Remove the qed symbol from only one proof environment, not all

I have seen several posts on how to remove the qed symbol in a proof, but that affects all proof environments. I would like to know how to remove the qed symbol in a particular proof because I have ...
Juan Quispe's user avatar
45 votes
4 answers
33k 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, ...
newbie's user avatar
  • 1,331
45 votes
4 answers
75k views

A better way to reference theorem-like environments?

I know how to use \label and \ref to get a reference to a result(or whatever else really) that I have made previously in the document. But this is tedious and requires me to create a label name every ...
42 votes
2 answers
62k 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 [section....
HBS's user avatar
  • 551
42 votes
5 answers
8k views

How to prevent paragraph breaks after theorem environments?

By default, the list environments (such as itemize) have the nice property that if you add a blank line after it, it starts a new paragraph, and if you don't, the paragraph continues. So The ...
Willie Wong's user avatar
  • 24.7k
37 votes
2 answers
36k views

How do I get non-italic words in a theorem environment?

I want some words in my theorem environment to not be italic. I know there are simple ways to get the entire theorem in roman, but I'm looking for an italic theorem with specified words in roman. I ...
Maarten Dhondt's user avatar
37 votes
4 answers
9k views

How to place all proofs automatically in appendix?

Can I place all proofs to theorems in appendix automatically? Usually proofs are written in the LaTeX codes immediately after the theorems. Without physically moving proofs to appendix, how can I ...
Chang's user avatar
  • 9,518
36 votes
1 answer
36k views

Numbered Definitions, Theorems in beamer

How to get numbered Lemmas, Definitions, Theorems and so on in beamer?
Laura's user avatar
  • 1,861
36 votes
3 answers
28k views

Proofs in Beamer

I'm writing a presentation in Beamer, where I present proofs which are longer than one frame. How to make Beamer to break it automatically to another frame? If it is not possible how am I supposed to ...
Laura's user avatar
  • 1,861
35 votes
1 answer
37k views

Start theorem counter from specific number

I have defined a new theorem and I would like it to start from a specific number(let's say 3). At first I thought of using \addtocounter{\theexe}{3}(where exe is the new theorem) but I get an error ...
Thanos's user avatar
  • 12.4k
34 votes
4 answers
19k views

Enumerate alignment problem in theorem environment

I'm using amsart. When I create an enumeration inside a theorem environment, the numbering is not aligned properly: Theorem 14. (1) (2) (3) (4) How do I shift the (2),(3),... to be aligned with (1)? ...
bob's user avatar
  • 421
34 votes
1 answer
105k views

Using \newtheorem

Edited to include complete code, as suggested: Here is what the preamble of my main file looks like: \documentclass[12pt]{report} \usepackage{epsfig} \usepackage{upmathgrad2} \usepackage{...
Ken Gonzales's user avatar
34 votes
3 answers
15k 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 (http://www.tug.org/...
pirad's user avatar
  • 1,641
33 votes
4 answers
37k views

Proof environment - line break after the "Proof."

I want to make the proof environment in amsthm package to auto add a line break right after the "Proof." I tried the following code, which also removed the QED sign, but it doesn't work: No linebreak ...
cap_sensitive's user avatar
33 votes
1 answer
58k views

How can one cite theorems of references?

I would like to cite the item (iii) of proposition 3 of a reference. How can I do it? Which ways do you suggest? This is a question not only about LaTeX, but also about style. One option I have seen ...
iago's user avatar
  • 927
32 votes
3 answers
29k views

How to change the way theorems are displayed?

I am in the process of writing a large document containing some theorems, lemma, and propositions. Currently, I am using packages amsmath and amsthm. I defined my own environment for theorems by ...
Bran the Blessed's user avatar
30 votes
1 answer
11k views

Problem with qedhere

In a paper I'm writing, I end a proof with a displayed equation that has some cases in it. The relevant code looks something like the following: \[f(x) = \begin{cases} 2x & \text{if $x<0$}\\ ...
Andy Putman's user avatar
30 votes
2 answers
7k 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: \...
Herman Tulleken's user avatar
30 votes
1 answer
22k views

Using LaTeX, how can I restate a theorem, with the same theorem number, later in a paper? [duplicate]

Possible Duplicate: How do I repeat a theorem number? I am writing a paper, and would like to state the main results in the Introduction. Then, when I come to prove the main results in later ...
Tara Holm's user avatar
  • 433
28 votes
6 answers
90k views

Defining my own proof environment?

How would I define a proof environment that is basically used with \begin{proof} some proof here \end{proof} and it would be equivalent to: \paragraph{Proof:} some proof here \hfill \box ?
kloop's user avatar
  • 9,654
27 votes
3 answers
3k views

amsthm with shared counters messes up autoref references

When I define amsthm theorem environments with shared counters, autoref messes up the names of the references. For example, in the output below, we should have "Definition 2" instead of "Theorem 2". \...
I Like to Code's user avatar
26 votes
2 answers
60k views

Theorem environment - line break after label [duplicate]

Possible Duplicate: ntheorem environment with indentation Skipping line after “Proof” in proof environment \begin{theorem}[label] The theorem text. \end{theorem} I want to have ...
Meinzlein's user avatar
  • 827
26 votes
1 answer
56k views

Using amsthm but still getting "Environment theorem undefined"

I'm trying to write up all my university theorems and I cant get the theorem environment to work. Here is a mini example of what I'm trying to do. \documentclass[a4paper,12pt]{article} \usepackage[...
Hannah's user avatar
  • 263
26 votes
1 answer
3k views

Cleveref with counters with same name

I am trying to use the cleveref package. I have the following counters defined (hopefully this is the right way to do it!) \newtheorem{thm}{Theorem}[section] \newtheorem{lemma}[thm]{Lemma} \...
Qwirk's user avatar
  • 785
26 votes
1 answer
12k views

How to cross-reference theorems with "Theorem"?

I use \begin{lemma} \label{aaa} ... \end{lemma} \begin{theorem} \label{bbb} ... \end{theorem} and many other similar kinds in the same document. When I cross-reference those lemmas and theorems ...
Chang's user avatar
  • 9,518
25 votes
2 answers
26k views

How to rename theorem (or lemma) in Beamer to another language?

I'm Malay user. I want to rename the theorem tag in Beamer. Does anyone know how to do it? When the document class is article or book, I can simply modify the preamble as follows: \newtheorem{theorem}...
Yqazra's user avatar
  • 251
25 votes
2 answers
43k views

Title of the theorem

in my paper the text inside theorem is italic while the word Theorem 1 is bold and not italic. I would like to have a title of the theorem also not italic. The example is here: Theorem 1. (The title) ...
SBF's user avatar
  • 1,418
25 votes
3 answers
12k views

Is there a \renewtheorem equivalent of \renewcommand, using amsthm and not ntheorem?

Suppose I have a theorem that is defined a certain way, as follows. \newtheorem*{mytheorem}{Foo} And I want to redefine it another way further down in my document, as below. \newtheorem*{mytheorem}{...
merlin2011's user avatar
  • 3,343
25 votes
2 answers
30k 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} \...
Romildo's user avatar
  • 4,093
25 votes
1 answer
32k views

Consecutive number of theorems, propositions, etc

I'm using \usepackage{amsthm} \newtheorem{theorem}{Theorem} \newtheorem{proposition}{Proposition} The numberings of Theorem and Proposition are not consecutive (I get Theorem 1 followed by ...
Kunal's user avatar
  • 393
24 votes
3 answers
19k views

How to Make Theorems and Equations Share Numbering

How do I make theorems and equations share numbering? The default numbering system goes like this: Theorem 1. Blah blah blah... 1=0+1 (1) Theorem 2. More blahs... Theorem 3. No more ...
user11126's user avatar
  • 629
24 votes
2 answers
32k views

Spacing before and after with \newtheoremstyle

I want to define my own theorem style for examples. I want them to be numbered the same way as theorems (so Example 2.4 follows Theorem 2.3); I want them to be formatted exactly the same as theorems ...
jamaicanworm's user avatar
  • 29.1k

1
2 3 4 5
34