A package that facilitates the kind of theorem setup typically needed in American Mathematical Society publications. The package offers the theorem setup of the AMS document classes (amsart, amsbook, etc.) encapsulated in LaTeX package form so that it can be used with other document classes.

learn more… | top users | synonyms

3
votes
0answers
18 views

Creating a List of Theorems divided into Subsections with amsthm

I want to modify the listoftheorems command so that at the end of each chapter, I can give a list of the theorems or definitions within the last chapter, and I want these divided by section (it should ...
4
votes
1answer
151 views

\newtheorem{def} throws an error

The following is a piece of the code I am working on. It says that there is an error with \newtheorem{def} but I really don't understand why. Thank you very much for your help! ...
7
votes
1answer
118 views

A question on the proof environment of amsthm

I would like to alternate between two proof environments under the amsthm package, e.g. distinguished between \begin{proof1} ... \end{proof1} and \begin{proof2} ... \end{proof2}. In these I want to ...
2
votes
1answer
62 views

A question on how to change the qed-symbol of amsthm

I am using the amsthm package and get a blank square like $\Square$ at the end of proofs. How can I redefine to get the black Halmos tombstone $\Blacksquare$ instead? I want the symbol to be right ...
4
votes
2answers
43 views

How to set \qedhere properly within “alignat*” environment?

The last part of my proof is formatted in an alignat* environment. How do I make \qedhere appear correctly? The naive approach (as you would do with align*): \documentclass{article} ...
2
votes
1answer
29 views

Combining enumerate and align works in theorem environment, but not outside the theorem environment

I was using MWE 1 (which worked fine), but now I want to get rid of the theorem environment (MWE 2). However, that does not work and I get the following error. Any idea how I can make MWE 2 work? ...
5
votes
2answers
57 views

Share counter between amsthm and algorithm

I am using amsthm \usepackage{amsthm} \newtheorem{thm}{Theorem}[chapter] \newtheorem{lem}[thm]{Lemma} \newtheorem{prop}[thm]{Proposition} and algorithm \usepackage{algorithm, algpseudocode} ...
1
vote
0answers
30 views

Option thref of package ntheorem causes equation numbering problem with amsmath's split environment

See the MWE first: \documentclass{article} \usepackage{amsmath} \usepackage[amsmath, thref]{ntheorem} \begin{document} \begin{equation} \begin{split} a & b\\ c & d \end{split} ...
11
votes
3answers
8k 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, ...
2
votes
1answer
24 views

natbib citep[]{} error if used in theorem options [duplicate]

I am using natbib and amsthm. If I use \citep[Thm. 4.5]{key} in the options of my theorem environment I get the error: Argument of \NAT@@citetp has an extra }. \begin{thm}[\citep[Thm] Why can't I ...
3
votes
1answer
43 views

Redefining proof environment

How can I change the \begin{proof} environment so that the word Proof which is displayed in my document isn't italic? I tried changing \proofname, but that only changes the displayed text, not the ...
3
votes
1answer
33 views

Vertical space between “Proof” and start of proof

How can you add vertical space between the word "Proof" and the actual start of the proof? This question shows how to start the proof on a new line, but I can't add space properly.
1
vote
1answer
38 views

Number theorems with chapter number

I use declaretheoremstyle to define a theorem environment, and print a list of theorems in the end of my document: \documentclass[12pt]{book} \usepackage[english]{babel} ...
3
votes
1answer
34 views

Remove repeated “Theorem (” in the list of theorems

I use declaretheoremstyle to define a theorem environment, and print a list of theorems in the end of my document: \documentclass{article} \usepackage[english]{babel} ...
1
vote
0answers
8 views

Namespace for theorems [duplicate]

I want to make a theorem \newtheorem*{def}{Definition}. This doesn't compile because \def is already defined. How do I make amsthm use a different namespace for theorems? It doesn't make sense for a ...
9
votes
1answer
529 views

How to create a framed proof attached to a theorem?

I am trying to create a customized "proof" environment attached to a theorem. It looks like this: So there is first the theorem, and then a gray bar starts on the inner margin. It ends, when the ...
2
votes
2answers
72 views

How to manipulate theorem body text indentation (using amsthm package)?

I would like to create the following formatting for summing up hypotheses (I am using the report documentclass): Body text. Body text. Body text. Body text. Body text. Body text. Body text. Body ...
3
votes
1answer
64 views

Allowing pagebreaks for shaded theorems using thmtools

I just searched for a way of allowing pagebreaks when using shaded theorem-environments from thmtools. I found my question was, somewhat, answered here (the second solution) with a comment from the ...
4
votes
2answers
78 views

Import \chapter into amsart

I would like to create a document with the appearance of amsart, but with added \chapter command (styled as in amsbook, or differently). How can I do that? I tried to make LaTeX load both amsbook and ...
1
vote
2answers
62 views

How to adjust the QED symbol to appear just after the last word in a proof

Whenever I finish a proof I tend to put the little square just after the last word, but by using the /begin{proof} /end{proof} environment it appears always at the end of the line. It seems like its ...
28
votes
1answer
6k 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$}\ ...
6
votes
1answer
6k 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} ...
1
vote
0answers
26 views

Theorems with hanging indentation, also working with itemize [duplicate]

I've been trying numerous ways to have a hanging indentation in my theorems. I'm using amsthm to define my own theorem styles. What I want is the theorem to indent after line 1 like this: Text ...
0
votes
0answers
34 views

Can one define which structures are appearing in the pdf's toolbar using hyperref?

I am working on a maths document and I use (amongst others) \usepackage[bookmarks]{hyperref}<br> \usepackage{amsthm} I have basically two questions: 1) When I use texmaker, its internal pdf ...
8
votes
3answers
4k views

A theoremstyle with complete indentation using amsthm

I want to define a theoremstyle using amsthm, such that the complete environments content produced by \newtheorem with this style are indented. The following standalone example uses an adapted ...
2
votes
1answer
78 views

Problem with numbering theorem by section

I am having a problem with the numbering of the theorems (by section) in a paper. My problem is that I want to number my theorems and propositions such that they appear as something like: Theorem ...
3
votes
1answer
68 views

Indent the word “Proof” in environment proof of amsthm

I'm working with the amsthm package, especially using the proof environment. I would like just the word "Proof" to be indented (and to keep the QED symbol). Can we do that?
0
votes
0answers
21 views

Get undefined proof variable with amsthm defined

I can't get over this problem. I have \documentclass[12pt,twoside]{mitthesis} \usepackage{lgrind} \usepackage{cmap} \usepackage[T1]{fontenc} \pagestyle{plain} \usepackage{amsmath,amssymb} ...
5
votes
1answer
63 views

Keep theorem content on the same page

Currently my preamble looks like \documentclass{article} \usepackage{amsthm} \usepackage{amsmath} \usepackage{amssymb} \usepackage{enumitem} \theoremstyle{definition} \newtheorem*{theo}{Theorem} ...
0
votes
0answers
27 views

Why is trivlist used in center, theorem and other environments?

I've noticed that the trivlist environment is used in the AMS Theorem package and in the definition of the center environment. For example: \def\center{\trivlist \centering\item\relax} ...
4
votes
1answer
145 views

Mysterious Vertical Space After Theorem/Proof Environments

I have defined my own theorem style to have 0pt above and 0pt below. For simplicity I have also set all other relevant spacings to 0pt. However, when I use a theorem or proof environment I get some ...
3
votes
1answer
115 views

Copying the style of amsthm using \newcommand \renewcommand

I'm trying to exactly duplicate the layout of amsthm without using this package. I want this, because pandoc doesn't support amsthm (yet), and pandoc is used in the online LaTeX editor ...
0
votes
0answers
106 views

How to use autoref or cleveref when the theorem environments are in the class file?

The journal LMCS provides a style, lmcs.cls, that contains definition of theorems environments : %%% Theorem environments % the following environments switch to a slanted font: \theoremstyle{plain} ...
5
votes
1answer
78 views

After “Theorem”, “Definition” the actual content should start at the same indent

Since "Thm 1.2", "Def 1.33", etc. all have about the same width, I'd like to try a layout with a fixed indentation. The actual content after the label and number should begin at the same indendation ...
2
votes
1answer
107 views

How to Nest Proofs in a Useful Way

I am using amsthm and amsbook and nesting claims and proofs. I would like to have two things: 1) Proofs that are in a deeper layer should be indented. 2) There should be a semi-box (only left and ...
5
votes
2answers
49 views

Adding optional arguments to environment

I'm trying to understand and modify this code: \newtheorem*{nonamethm}{\nonamethmname} \newcommand{\nonamethmname}{} \newenvironment{genthm}[1] {\renewcommand{\nonamethmname}{#1}\nonamethm} ...
6
votes
1answer
152 views

How to put Theorem Numbers in Boxes?

I'm using amsthm and amsbook. I was wondering how to put theorem numbers in rectangular boxes, both when they first appear as well as when citing them. Here is a picture of what it looks like now: ...
8
votes
1answer
179 views

Remove Indentation of Theorems

I am working with amstheorem and amsbook, and I'm trying to remove the indentation before the numbers of theorems so that they are aligned exactly to the left. Is there any way to do this? In ...
2
votes
1answer
56 views

Remove all proof environments

I have a document containing some proofs and want to create a version only containing the theorems (and corollaries and lemmas and examples and …), but no proofs at all. Is there an easy, automatic ...
6
votes
2answers
372 views

Transitioning to mathtools - environment proof undefined

I am new to LaTeX and I was using the amsthm package in order to write proofs by using the proof environment: \documentclass{book} \usepackage{amsthm} \newtheorem{theorem}{Theorem} \begin{document} ...
2
votes
1answer
59 views

\swapnumbers drops chapter

I'm trying to use \swapnumbers to get the numbering of theorems etc first in amsbook, as detailed here: \swapnumbers in lyx However, when I add \swapnumbers, it seems like the numbering scheme ...
2
votes
1answer
85 views

\swapnumbers in lyx

I'm using LyX 2.2dev on Mac together with Theorems (AMS), Theorems (AMS-Extended), Number Equations by Section and Theorems (Numbered by Sections) modules. I put \swapnumbers in my LaTeX preamble, but ...
1
vote
0answers
49 views

Best attitude regarding \newtheorem? [closed]

In amsthdoc, the documentation of amsthm, it is written: It is natural to handle [lemmas, propositions, axioms, corollaries, conjectures, definitions, remarks, and so forth] as LATEX environments, ...
3
votes
2answers
136 views

Using \tag with amsthm environments?

I would like to custom tag theorems, similar to the way \tag lets me custom tag equations in a math environment. How should I go about doing so? The amsthm package documentation is silent on doing ...
2
votes
1answer
102 views

Conflict between mdframed and amsthm packages with the use of czech babel

I would like to have theorems in boxes. I am working with amsthm and mdframded packages (I use the syntax utilized in Legrand Orange template). It works well with different babels (english, spanish, ...
2
votes
1answer
67 views

thmtools: Custom Header

I'm using amsthm and thmtools to customize theorem-like environments. I want a theorem enviroment that has a header that looks like the following: . I tried to use something like headformat = ...
2
votes
2answers
79 views

Change a amsthm theorem ending [duplicate]

I am writing a text where the editor suggested to close all the definitions with a diamond. So I was wondering, is there a easy way to automatically add a command to all the \end{definition} ? I ...
0
votes
1answer
71 views

Make `enumerate` start from a new line [duplicate]

I'd like to put enumerate on a new line, but cannot use \newline because there is no line to end! Here is the code: \newtheorem*{quoz}{Teoremi del quoziente} \begin{quoz} % \newline here does not ...
0
votes
1answer
33 views

LaTeX amsthm package - starting the 'section' number at 16

I'm taking notes from a textbook via LaTeX (as a study guide / way to learn) and I'm starting on chapter 16. I want the theorems to say "Theorem 16.1, Theorem 16.2..." etc. I am using the basic ...
3
votes
1answer
71 views

How to change theorem numbering when macro file is involved

In my macro file, I have certain theorem environments defined, for example. \newtheorem{theorem}{Theorem} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} ...