Questions tagged [amsthm]
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.
733 questions
5
votes
2
answers
199
views
Unexpected behaviour of vertical space/glue between theorems (with amsthm)
I was developing a macro to insert some material "in the background" while preserving the layout of the rest of the page.
I noticed an unexpected behaviour when the insertion point was ...
2
votes
0
answers
68
views
indented line after list in theorem bug
When theorem starts with a list (without triggering \par) then the line after list is indented like in the new paragraph. Is this a bug? Can it be fixed in the sources?
\documentclass{article}
\...
3
votes
3
answers
128
views
How to put the QED symbol of a proof at the right place inside aligned?
When a proof ends with a aligned* environment, putting \qedhere after the last equation would cause the QED symbol to appear near the last equation not in the end of the line. How it appear in the end ...
3
votes
0
answers
36
views
How to remove the additional space above and below a `l3coffin` that was combined from an `amsthm` environment and a figure horizontally?
As the title described, I define an environment via l3coffins that can combine two parts horizontally. I used this environment to combine an amsthm and a figure, but there exists a gap before and ...
7
votes
3
answers
288
views
\cref refers to lemmas as theorems
I think I found another problem with \cref after the November update. I defined two \newtheorem environments called plemma and ptheorem. Now, I let the numbering of plemma depend on ptheorem. If I ...
3
votes
1
answer
82
views
\newtheorem problems if I don't label chapter
I discovered a very strange behavior. If you run the following code, you will get an error (I use TexStudio and TexLive on a Mac M1):
\documentclass{book}
\usepackage{amsthm}
\usepackage{hyperref}
\...
1
vote
1
answer
43
views
Place each proof on its own page in appendix
In my document, I am wanting some of my proofs to live in the body of the text, and others to be deferred to an appendix, along with their corresponding theorem statements. In attempt to do this, I am ...
2
votes
2
answers
78
views
Is there a theorem package that works with tagpdf?
As described in this post the amsthm package is not compatible with the tagpdf package/project. I browsed the list of supported packages and didn't see a theorem package that is compatible, but I ...
0
votes
1
answer
48
views
How to make enumerate adjust to nested margin?
I have my own .cls class for taking notes during lectures. In there i have my own command for a theorem. Whenever i try to make a nested enumerate list it completely ignores the margin, putting the ...
0
votes
1
answer
32
views
decrease height of separator in custom theorem style
I have made a definition of a separator custom theorem style in LaTeX. The separator separates the header of the theorem from the body. I would like the full line of the separator to be thinner. ...
1
vote
1
answer
52
views
Why is LaTeX counting solution as is a theorem?
\documentclass[12pt,twoside]{book}
\usepackage[utf8]{inputenc}
\usepackage{a4wide}
\usepackage{amssymb,amsthm,amsmath}
\usepackage[compact]{titlesec}
\usepackage[square,numbers]{natbib}
\usepackage{...
0
votes
2
answers
41
views
Proof style with babel
Long ago I used this solution to Changing style of Proof to make the work proof bold. Over time babel got used and I've just noticed that it has now reverted back to the original style (contrary I ...
2
votes
1
answer
70
views
Putting QED symbol lower when using \qedhere in a formula with large subscripts
When ending a proof (from the amsthm package) on a formula that extends quite a bit below the baseline, e.g. when there are stacked subscripts, I find that the \qedhere-command places the box too high ...
2
votes
1
answer
150
views
change the appearance of the equation by several levels
I use this code to change the appearance of the equation, but it is full of errors even if at the end it gives a result, please help me to correct it. Thank you .
\documentclass{article}
\usepackage{...
1
vote
1
answer
35
views
swapping and not swapping numbers in the document
I want to print the following two types of statements in my document:
(i) Theorem 1.1
(ii) 1.2 Theorem
I understand that (i) is the conventional numbering scheme type, and I can get type (ii) scheme ...
2
votes
2
answers
80
views
Newline after theorem
I am writing a document which contains solutions for exercises from a mathematics textbook. The exercises are usually split up into separate parts and sometimes there is an introductory text before ...
1
vote
1
answer
40
views
Use arabic numerals for amsthm section numbering when sections are numbered with roman numerals
For reasons of internal consistency, I have labeled the sections in my document using lowercase roman numerals followed by a dot, using the following command in the preamble:
\renewcommand{\thesection}...
0
votes
1
answer
45
views
Indentation of text inside a \newtheorem environment for multiple versions of \newtheorem
MWE
\documentclass[a4paper, 12pt]{exam}
\usepackage{amsthm}
\usepackage{thmtools}
\begin{document}
\newtheorem{definition}{Definition}
\newtheorem{example}{Example}
%\newtheorem{proof}{Proof}
\...
1
vote
1
answer
43
views
While using the declaretheoremstyle command, what is the argument for the body to be Roman font?
I am using the thmtools package to declare a theorem style.
I want to declare a theorem style with body font the Roman font (like the body font in \theoremstyle{definition}).
I have read that the ...
1
vote
1
answer
39
views
Theorems display error with hyperref
I have a problem with display theorem counter (see below) and I cant just update everything because of corporate policies, so I am trying to find exact simple solution.
I've already found that problem ...
1
vote
1
answer
100
views
Possible compatibility issue between tagpdf and amsthm?
\DocumentMetadata{testphase=phase-III}
\documentclass{article}
\usepackage{amsthm} % causes error. Compiles fine if either this line, or the first line, or both, is commented out.
\newtheorem{thrm}{...
2
votes
2
answers
90
views
What is the canonical way to add theorems to the table of contents?
I am writing a math paper and I would like to have my theorems, lemmas, corollaries and definitions appear in the table of contents. My original code looked essentially like this:
\documentclass{...
3
votes
1
answer
114
views
Problem with unnumbered theorem
I would like to include an unnumbered theorem in my text. According to what I read, one needs to define a theorem environment using \newtheorem* instead of the usual \newtheorem. However, this seems ...
3
votes
1
answer
114
views
The action of \normalfont and \textit in the theorem heading
I want to write a document with a remark environment, and the caption "Remark" should be Italics, with no bold.
I have tried three ways to declare it in the following example, namely remark, ...
2
votes
1
answer
79
views
Problem defining environments using \newtheorem
I'm writing my thesis and I encountered a problem while trying to use amsthm and particularly trying to define new environments using \newtheorem.
\documentclass[12pt]{report}
\linespread{1.5}
\title{...
0
votes
2
answers
61
views
Getting a rule on the left side of text that skips the first line of the environment using mdframed
I'm trying to get a definition environment where there's a rule on the left side of the text, except for the first line. I currently have the MWE below using mdframed, but I don't know how to skip the ...
2
votes
2
answers
46
views
How can I have common number (i.e., share a counter) between a tcolorbox theorem environment and a standard theorem environment?
I have a document where I want to have theorems formatted using the tcolorbox package, and propositions formatted using the default formatting from the amsthm package.
However, I'd also like to have ...
0
votes
1
answer
43
views
svproc and amsthm incompatibility
I am writing a paper that requires the document class svproc
When running a MWE
\documentclass{styles/svproc}
\usepackage{amsthm}
\begin{document}
Hello
\end{document}
I get the following error: ...
1
vote
1
answer
64
views
namecref With theorem* Environments
I'm trying to refer to the name of an amsthm theorem* environment using cleveref's namecref command.
However
\documentclass{article}
\usepackage{amsthm}
\usepackage{cleveref}
\newtheorem*{note}{Note}
...
2
votes
1
answer
46
views
Number a theorem with subsection-number. thm-number, without chapter number
I wish to number theorem in a report with x.y if the theorem is the y-th number in section x (of some chapter), without chapter number.
In other words, I want the theorem be numbered like \newtheorem{...
3
votes
2
answers
172
views
How to remove the space after the amsthm caption and the dot?
I've create an unnumbered amsthm environment problem, and a numbered amsthm environment example. Then I want to make the numbered example environment be unnumbered, so I typed \let\theexample=\relax (...
0
votes
1
answer
57
views
Brackets after Theorems, Propositions... with amsthm, potential conflict with another package
I need to use the class indicated (you may find it here) for a paper submission. However, this class has a weird syntax for the proofs in Theorems, Propositions, etc. (this is a known fact.) The usual ...
0
votes
1
answer
33
views
How to remove the extra space between the mdframed environments?
In contrast with the amsthm environments, the gap between mdframed environments are larger than that of amsthm.
The MWE is the following
\PassOptionsToPackage{svgnames}{xcolor}
\documentclass{book}
\...
4
votes
1
answer
115
views
Delete word "Proof" and punctuation in latex proof environment
I want to eliminate the word "Proof" that appears right after
\begin{proof} ... \end{proof}
The basic ideas:
\renewcommand{\proofname}{} and
\begin{proof}[] \end{proof}
Do not work because ...
1
vote
2
answers
66
views
Refering to a theorem by its name [duplicate]
So I've seen here that you can actually have a personnalized theorem environment name but I was wondering if there was a way to refer to it as is. I've chosen the solution
\documentclass{article}
\...
5
votes
1
answer
134
views
\cref : "Argument of \textsf has an extra }."
So I have this bit of code
\begin{ex}
The prototype for an abelian category is $\Mod_R$, in fact every abelian category is equivalent to a full subcategory of $\Mod_R$ as we will see in \cref{FMET}...
1
vote
1
answer
65
views
Using small caps in counters with `amsthm`?
I want to use lowercase small caps for all section titles. I also want to use old style figures, and in this case I'm using mathpazo. Now, suppose I add an appendix to a document and number theorems ...
3
votes
2
answers
99
views
Custom proof environment: spacing issue with when optional argument given
Consider the following code, the purpose of which is to have a proof environment in which the "Proof." bit is bold.
\documentclass{article}
\usepackage{amsthm}
\renewenvironment{proof}[1][...
4
votes
1
answer
124
views
Is possible to decrease the text margin of a theorem automatically?
I am writing a LaTeX document where I formatting a mathstatement environment as into the following code.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
3
votes
1
answer
159
views
`section` is reset upon changing a chapter?
The amsthm documentation states:
If any theorem elements are numbered by section, and (in a book) the first such element in a chapter comes before the first section, numbering will continue from the ...
4
votes
2
answers
254
views
How to recreate the "dangerous bend exercise" in TeXbook with `amsthm`
I'm typing a document right now and have a warning theorem environment, created with amsthm. What intrigues me is that Knuth's The TeXbook managed to put the "dangerous bend" symbol in front ...
0
votes
1
answer
79
views
draftwatermark picks up italics from the top of the next page and produces Postscript, and no large smallcaps italics fonts are available in fix-cm
Feeding latex with
\RequirePackage{fix-cm}
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{amsthm}
\usepackage[text={\textsc{Confidential \ Draft}}, angle=53.2, fontsize={92.4pt}]{...
1
vote
1
answer
82
views
Analogue of \proofname but for the word "Theorem" [duplicate]
Let's say I'm writing a macro which defines a proof-like environment for beamer. then I can use \proofname inside the definition, and the macro works fine with the default ("english") ...
2
votes
3
answers
155
views
Count theorems like Theorem part.chapter.number
I'm using the scrreprt documentclass, which provides parts and chapters. While I found solutions to enumerate theorems like Theorem chapter.section.number, I did not manage to obtain Theorem part....
4
votes
1
answer
181
views
Unwanted horizontal space with Cref command from cleveref and amsthm
I have a problem with the presence of an unwanted space when I use amsthm and cleveref.
The following is a MWE that highlights the issue.
\documentclass{article}
\usepackage[english]{babel}
\...
5
votes
1
answer
717
views
LNCS proceedings template Command \proof already defined
Trying to put my paper into LNCS format and I don't know what the source of the error here is
\documentclass[runningheads]{llncs}
\usepackage{amsmath,amsthm,amssymb}
\usepackage[algosection,ruled,...
2
votes
1
answer
65
views
Removing Unnecessary Space from Equations within Custom Environments in thmtools
I'm facing an issue while writing my thesis. Whenever a theorem ends with an equation, an additional line is added. I have to use thmtools, and I'm unsure whether I should remove this space from the ...
0
votes
1
answer
32
views
Start the example on a new line
I'm using the following code to write out examples and solutions in my book. However, I'd like to start the example in a new line after the heading. Currently, this is what I have as the output.
\...
0
votes
0
answers
47
views
The name of my Theorem is not bold when I use default amsthm package settings [duplicate]
here is what I have done. I am only doing this minimal example just to make sure that I have not done any customization to override the default setting. However, in the output I get the name of the ...
1
vote
2
answers
61
views
Redefining theorem breaks nameref
I'd like to define a command \keyifythm{<envname>} which redefines an amsthm theorem environment to take a key-value optional argument. My approach below works, but for reasons I don't ...