{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

3
votes
1answer
136 views

Horizontal spaces to the left and right of theorems

How do I get horizontal spaces to the left and right of theorems? My initial idea was to do the following bad idea: \documentclass{article} \usepackage{lipsum}% http://ctan.org/pkg/lipsum ...
3
votes
1answer
364 views

Change theorem numbering from Roman to Arabic

I am trying to number my theorems according to section number. I use the following in the preamble, which works: \newtheorem{theorem}{Theorem}[section] However, since my section is numbered as ...
7
votes
1answer
290 views

Add vertical space before and after framed-theorem environments

I want my theorem-like environments to be framed, as it's an effective way of making them stand out from the main text. According to Gonzalo Medina's answer to the question box around theorem ...
6
votes
2answers
754 views

Indent Theorem like \hangindent, but for multiple paragraphs

I would like to create a theorem style which indents the theorem exactly like a \hangindent would do, expect that the indention should continue for all paragraphs of the theorem. For example: ...
2
votes
1answer
235 views

How to port this ntheorem solution to amsthm + thmtools?

Is it possible to reproduce this pleasant theorem environment using amsthm and thmtools?
2
votes
1answer
115 views

\newpage inside of \newtheorem

Ηow to enter \newpage in the environment so that each exercise is contained in its own page. \newtheorem{exercise}{ \color{magenta} \Large \bfseries }[chapter] Something seemingly simple but ...
2
votes
1answer
250 views

Proof titles with ntheorem

I am using the ntheorem package. I have a theorem in a document where the proof appears somewhat later. When I start the proof, I'd like to indicate what exactly I am proving. Currently the code I ...
4
votes
1answer
188 views

Problem with font in theorem environment

I use LuaLaTeX, fontspec and XITS maths font. Additionally, I had a problem with theorem environment and long headers so I based my solution on this. My problem is that I now get a different font for ...
2
votes
0answers
589 views

Using a congratulatory (end of proof) box properly in LyX [closed]

I know how to enter the end of proof boxes in LyX: \square, \blacksquare. However, I don't like where it ends up in the PDF. Here's an example I want it to mock the example below (cropped from ...
0
votes
0answers
39 views

ntheorem vs. amsthm [duplicate]

As far as i know, these are alternative packages for playing with theorem-like environments. What do you choose and why? What should be the de facto standard? Regarding the same topic, are you ...
1
vote
1answer
154 views

Numbering theorems as subsubsections

I am working on a large, multi-chapter document using the memoir class. I have sections, subsections, and subsubsections within each chapter, and within the subsubsections are theorems, lemmas, ...
3
votes
1answer
73 views

cleveref: \lcnamecref fails to work with theorem names that are not pre-defined

I'm using cleveref with the capitalise option, and I'd like to use the \lcnamecref command to give the name of one of my theorems in the text. But if this is not one of the theorem types pre-defined ...
2
votes
1answer
102 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? ...
8
votes
2answers
171 views

How remove indention in theorem environment?

How is it possible to remove the indention at the beginning of the theorem text? \documentclass{article} \usepackage{amsthm} \usepackage{thmtools} \declaretheorem[thmbox=L]{boxtheorem L} ...
2
votes
1answer
286 views

How to change margin when using shadethm package?

I'm using the shadethm package in order to have gray background for theorems. However, the outcome is not satisfactory because the margin is too narrow: Can anyone show me how to change the margin ...
1
vote
1answer
415 views

the selected document class requires external files that are not available - LyX portable

I'm using LyX portable on windows, and I get this message the selected document class article(hebrew) requires external files that are not avialable. ... the following prerequisites are ...
7
votes
1answer
827 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. ...
3
votes
1answer
130 views

How can I define a new environment which limits the scope of \newtheorem commands?

I am attempting to make an environment out of the command given in one of the answers to this question: Customizing theorem name. \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} ...
4
votes
1answer
154 views

How Do I Indent My Proofs in the Following Manner?

I'm interested in indenting my proofs so that they look like this. Please note that the alignment of the word "proof" with the word "theorem" is significant. However, Google does not appear to yield ...
1
vote
1answer
62 views

How to mark a theorem not under its section?

Take an example, if a theorem written in section 1, it will be marked Theorem 1.x . In spite of those, can it be marked Theorem 2.x without moved into section 2? It sounds a bit strange, but it is a ...
1
vote
1answer
288 views

Font sizes in new theorem style?

I would like to produce a new theorem style such that the text in the body is 10pt, instead of 11pt (size of the document). I tried adding 10pt for the body font, but does not compile: ...
2
votes
1answer
160 views

Is there a theorem style with slanted headfont?

I would like to create a theorem style with slanted text in heads. What's the way? I tried with the thmtools package by \declaretheoremstyle[headfont=\textsl]{slantedhead} ...
8
votes
2answers
405 views

References to named theorems

I would like to know how to give theorem type environments names and then how to later reference them using those names. I was able to use this thread to create named theorems. However, this seems ...
5
votes
1answer
300 views

Parts numbering in Proofs

I am using proof environment from amsthm to type proofs. Some proofs are long, so it would be nice to split them into numbered parts. I have defined new theorem environment called proofpart for that ...
5
votes
1answer
149 views

Using amsthm to number examples - how do I account for altered examples (i.e. 1', 1'', etc.)

I have sought long and hard for a solution to this and experimented with a combination of http://tex.stackexchange.com/a/43351 and http://tex.stackexchange.com/a/443, but could not get it to work. I ...
6
votes
1answer
192 views

Equation Counters in and outside Theorems

I am trying to setup the counters so that the equations and theorems increment by section and there is no overlap between equation and theorem numbering. I also would like to be able to number ...
2
votes
1answer
193 views

Creating a particular environment with a left-side rule

I don't have much experience in creating environments, and my understanding of them allows me to create environments which do something at the beginning and at the end (like for instance, in a "proof" ...
6
votes
1answer
165 views

Problem regarding Errors after Theoremdefinition using thmtools

I am currently hunting for errors in my template and these two I cannot solve after reading the log and researching: First: ! Argument of \strip@prefix has an extra }. <inserted text> ...
4
votes
1answer
235 views

Examples enumerated in the margins

I am writing a paper about phonetics that contains lots of examples, usually organised in tables. What I would like is to have these examples enumerated in the margins. Specifically, I need an ...
3
votes
3answers
421 views

Enumerate inside a theorem environment

I use the enumitem package: \usepackage[shortlabels]{enumitem} And I put some numeration like this in a theorem environment with \theoremstyle{plain}: \begin{prop} We have ...
5
votes
1answer
127 views

Using environment argument inside a new environment doesn't work

I know it must be something trivial: \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{thmtools} \usepackage[svgnames]{xcolor} \usepackage{framed} ...
2
votes
1answer
128 views

Why aren't qtrees aligned horizontally if they are at the end of a theorem with qed symbol enabled?

\documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{thmtools} \usepackage{qtree} \declaretheorem[name=Example,qed=\ensuremath{\triangleleft}]{example} ...
3
votes
1answer
192 views

The statement of a theorem appearing on a new line

I'm using the amsthm package. The statement of the theorem currently appears immediately after the words "Theorem X." I'd like the statement of the theorem to appear on a new line. Is this possible?
5
votes
2answers
401 views

Common numbering with ntheorem

I have the exact same question as detailed in Common, per-section numbering of theorems, lemmas etc., but I am using ntheorem and so can't use the accepted answers code. Does anyone know how to adapt ...
3
votes
1answer
159 views

How to put a \clubsuit at the end of an example

I was wondering if there was an easy set of code that allows the standard \begin{example} \end{example} environment in amsthm to have the extra feature that it right-aligns a \clubsuit at the end of ...
5
votes
1answer
290 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 ...
7
votes
2answers
127 views

How to specify RULES in main body

I want to write RULES in main body, how to write the correct TeX code that guarantees a little larger space before and after RULES like this.
2
votes
1answer
173 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} ...
4
votes
1answer
253 views

Making a list of hypothesis and references to the hypothesis

I have some problems with making a list of hypothesis and references to my hypothesis. \documentclass[12pt, a4paper, makeidx]{memoir} \usepackage{ntheorem} % *************** hyperlinks in PDF ...
4
votes
2answers
160 views

My custom theorem/proof environments aren't playing well together

As can be shown in the following MWE, when I have a theorem environment followed by a proof environment, the proof isn't going into the next line; it's rendering right on top of the text I have for ...
8
votes
2answers
8k 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 ...
6
votes
1answer
259 views

Weird behavior of \theoremstyle

I just noticed something weird of the \theoremstyle command. Here is the code of a sample document: \documentclass{article} \usepackage{amsthm} \theoremstyle{plain} \newtheorem{thm}{Theorem}[section] ...
1
vote
1answer
473 views

Problem using enumerate environment in a proof newenvironment definition

I want to define a simple environment to enclose my proofs, actually I just wanted to put a little square right at the end. So, I made this new environment definition: \newenvironment{Proof}{ ...
2
votes
0answers
266 views

Breaking a proof between frames [closed]

I have the same question in here Proofs in Beamer In the answer, the author used beamertemplate to examine breaking the frames. But how can i change it to my paragraph? For example, i need to ...
3
votes
1answer
186 views

lineno not showing line numbers on proofs using the llncs class

Line numbers are not properly rendered on the last paragraph of a proof when using the lecture notes in computer science class llncs. Here's a minimal working example. \documentclass[oribibl]{llncs} ...
3
votes
1answer
632 views

Can't use theorems in lyx (mac)

I want to switch to lyx, but I'm having a hard time trying to use environments. I red that they are supposed to be as a class in the drop down list at the top left (If I'm nor wrong, together with ...
3
votes
1answer
709 views

Proof environment: problem with \popQED and \pushQED{\qed}

I was trying to replace . with : in the proof environment and after trying a lot of answered questions here, I got [I'm using amsmath] \makeatletter \renewenvironment{proof}[1][\proofname]{\par ...
7
votes
1answer
91 views

Change from “Theorem 10.1” to “10.1 Theorem” [duplicate]

Possible Duplicate: Numbering theorem-like environments">Numbering theorem-like environments How can I change the order in which theorems are displayed? I want 10.1 Theorem and not Theorem ...
3
votes
1answer
796 views

Numbering a “new theorem”

I have a (simple?) question. I use the ams theorem environment for most of my theorems, but I want to box my definitions and find here a nice way to do it, simpler for me than mdframed. My problem is ...
2
votes
1answer
166 views

Line break after header of theorem environment followed by multicols body causes header-body overlap

I use TeXLive 2011. I use ntheorem and multicol. In a theorem environment, I want the theorem header to be separated from the body by a line break such that the multicols-environment get's that and ...