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

learn more… | top users | synonyms

5
votes
1answer
346 views

Indent text after line 1

How can I accomplish something like this: Basically, I want my text to be "indented" after the first line. It would be great if somebody knew an answer. Ideally I would like to do this, because I ...
5
votes
1answer
129 views

Customize environment “proof”

I need to create (or customize) an environment "proof" that has the option to explain after the word 'proof' the name of the theorem (or environment) along with its automatic numbering of the theorem ...
5
votes
1answer
3k views

No Counter Theorem1 is defined

I got an exception in the following latex code: "No Counter Theorem1 is defined", what is the problem? \documentclass[conference]{IEEEtran} \newtheorem{definition}[theorem1]{Definition} ...
5
votes
1answer
226 views

Non-italicized text in a \newfixedcaption

This is a very specific follow-up question to this answer given to this question. I want to insert a picture, and use overpic to label it, in between two paragraphs of text in a thm environment ...
5
votes
2answers
1k views

How can I get a line break in a theorem headline?

I have a theorem title, which is longer then the page width. How do I get the title in two lines? \begin{theorem}[this title is to long for one line] the theorem \end{theorem}
5
votes
1answer
981 views

ntheorem and theoremname

I'm using ntheorem (mostly for thmmarks), and I'd like to change the font used for the theorem name. Specifically, I'd like \begin{theorem}[Name of theorem] to generate "Theorem 1 (Name of ...
5
votes
3answers
2k views

Footnote doesn't appear when put into a “definition” environment

When I try to put a footnote into a definition environment (or theorem, etc.) it fails, whereas it works well in plain text... How can I fix it? (N.B. I use thmbox, I don't know if this have an ...
4
votes
1answer
92 views

mdframed: how to change the separator between the label and the title of a non-numbered thereom?

The problem There seems to be a bug in mdframed package. With the theoremseparator key, one should be able to change the text between the "label" and the title of a theorem ("Theorem" being the label ...
4
votes
1answer
112 views

Only show \NAME in \listoftheorems

I am using the thmtools package, and I want to modify \listoftheorems to only print the name of the theorem. For example, my document might look something like the one shown below. When I compile this ...
4
votes
1answer
154 views

How do I determine the name of the counter associated with a theorem-like environment

(A question related to this one and leading up to this one.) Suppose I'm using ntheorem. I would like to have a command which determines the name (not the value) of the counter associated with a ...
4
votes
1answer
868 views

Newtheoremstyle: start counting at 0

I defined a \newtheoremstyle and I want it to start counting at 0 instead of 1. How do I do that?
4
votes
1answer
2k views

amsthm: how to reduce the vertical spacing between theorem and proof?

I'm using the amsthm package to layout theorems and their proofs. How can I reduce the vertical spacing between the last line of the theorem statement and the first line of the proof? BTW, I tried ...
4
votes
3answers
380 views

References to lists in theorem-like environments/writing # symbol to files

A little warning in advance: This will be quite lenghty. I spent quite some time over the last few days trying to solve the following problem: I'm typesetting mathematical lecture notes and have used ...
3
votes
1answer
60 views

Subtheorems with alphabetic number

I would like to create a list of tasks using LaTeX. Therefore I created a theorem called task. For some tasks I would like to create additional subtheorems using alphabetic numbering. Currently my ...
3
votes
2answers
161 views

Definitions, theorems, … with description inside a box and the title above the box

I am searching for a definition (or similar) environment with the following features: Numbering Listing Definition title with number above the description Definition text inside a box with black ...
3
votes
1answer
141 views

Indicator at end of theorem

I'm writing a text with some very long theorem-environments in it and I find the italicised theorems visually not pleasing when they are rather longish. So I'm using the definition theorem style most ...
3
votes
1answer
196 views

ntheorem Box over multiple pages with continued hint?

When my ntheorem Box spans multiple pages, I want it to have a hint on each page, that it is a continuation. How can this be done? Below is some sample code, spanning a box over two pages, which is ...
3
votes
1answer
141 views

Numbering a reworded theorem

When using LaTeX for numbered theorems (or other numbered environments for that matter), if you have a theorem, and then you want to give a reformulation of the theorem, is there anyway to get LaTeX ...
3
votes
2answers
1k views

Space before proof

I am trying to make LaTeX put no additional space between theorem and proof. Here is my code: \newtheorem*{pr3}{Theorem} \begin{pr3} foo \end{pr3} ...
3
votes
2answers
2k 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
2answers
502 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
417 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 ...
3
votes
2answers
232 views

How to use an environment whose name comes from a reference?

Suppose somewhere in my long Ph.D. thesis I use a theorem-like environment (maybe it's a theorem, maybe it's a lemma, etc.), and label it. At another place I want to have an environment which is the ...
3
votes
3answers
3k views

\normalfont in new theorem-like environment

How can I get universal in my new environment normalfont instead of italic (default)? I thought it was something simple like \newtheorem{exercise}{ \normalfont}[chapter] ` but doesn't work. I could ...
3
votes
4answers
2k views

ntheorem with the [amsthm] option ignores styling of a theorem environment

I'm using ntheorem with the amsthm option, to define a theorem-like environment for stating notes. I should be getting an environment beginning with the word 'Note' in italic font, followed by the ...
2
votes
2answers
74 views

Name of the proof instead of just proof

Packages I'm using: \usepackage{amsmath} \usepackage{graphicx} \usepackage[colorinlistoftodos]{todonotes} \usepackage{amsthm} \usepackage{amssymb} \newtheorem{thm}{Theorem} ...
2
votes
1answer
125 views

Change the way theorems are numbered within a document

I'm working a document that has one (very large) chapter, in which theorems, lemmas, etc. are numbered with subsubsection, i.e. the start of the document has the command ...
2
votes
1answer
82 views

How to adust margin in listoftheorem

I have some definitions and theorems inside subsubsubsection. When latex generates the listoftheorems, the last digit of the subsubsubsection overlaps the first letter of the name of the theorem, ...
2
votes
1answer
131 views

Combining spacebelow with shaded parameter in thmtools package. Bug?

In the following example the spacebelow parameter is ignored. If you comment out the shaded parameter, the space is considered. Is it possible to use both parameters spacebelow / shaded? ...
2
votes
1answer
225 views

Automatically add theorems to index and label them

In another question (Remove math from command parameter to get only the letters) this command was elaborated to have an optional argument for sorting purposes within the index \documentclass{article} ...
2
votes
2answers
1k views

Indentation for proofs

I'm using amsbook document class and amsthm package. I want the proofs to stand out from the rest of the text by slightly indenting them, i.e. leaving some margins from left and right. How do I do ...
2
votes
2answers
571 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 ...
2
votes
2answers
329 views

theoremprework Error with ntheorem

I have defined \theoremheaderfont{\normalfont\bfseries} \theoremprework{\bigskip\hrule} \theorempostwork{\hrule\bigskip} \theorembodyfont{\slshape} \newtheorem{definition}[satz]{Definition} and now ...
1
vote
1answer
58 views

How to define different colors for different theorem-like environments in beamer

After reading section 12.4 Theorem Environments from beameruserguide I understand that all theorem like environments (theorem, lemma, corollary, ...) except example use same beamertemplate which means ...
1
vote
0answers
69 views

Custom theorem numbering … and extend to lemma etc [closed]

In Custom theorem numbering @egreg provided a way to custome theorem numbering: \documentclass{article} %\usepackage{amsthm} %% uncomment to see the difference \newtheorem{innercustomthm}{Theorem} ...
1
vote
0answers
129 views

Faint text after new theorem

This code using \newtheorem produces faint text afterwards. What's the remedy? \documentclass[xcolor=dvipsnames]{beamer} \usetheme[height=9mm]{Rochester} \setbeamertemplate{items}[ball] ...
1
vote
1answer
79 views

How to ignore proofs? [duplicate]

I'd like to print a shorter version of my paper without all the proofs, I'm thinking about something like \renewenvironment{proof}{\begin{comment}}{\end{comment}} but that activates the comment ...
1
vote
1answer
245 views

Theorem-like environments in Latexit?

I want to use Theorem-like environments in Latexit. How can I do this?
1
vote
1answer
262 views

\theoremindent adds space to left side when used with RTL languages

Trying to use ntheorem's \theoremindent seems to indent the left side rather than the right side when used with polyglossia and right-to-left languages: \documentclass{article} \usepackage{ntheorem} ...
0
votes
1answer
157 views

Customizing list of theorems (LaTeX)

Is it possible to avoid brackets surrounding the name of a theorem in the \listoftheorems from thmtools? And if so, how do I do that?
0
votes
1answer
153 views

thmtools with thmbox split in two pages

I am trying to use the thmbox=Moption from the thmtools package. But sometimes in the text when there isn't enough space for the theorem to fit in the bottom of the first page, it moves it to the next ...
0
votes
0answers
118 views

nopagebreak between rule and custom theorem env

I'm making a custom theorem environment. Here's a minimal example of my problem, with some filler text borrowed from the GPL: \documentclass{scrbook} \usepackage[dvipsnames]{xcolor} ...