Skip to main content

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.

Filter by
Sorted by
Tagged with
104 votes
9 answers
41k 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, ...
Kim Morrison's user avatar
  • 7,683
66 votes
1 answer
45k 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
  • 785
53 votes
6 answers
45k 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,027
52 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,925
46 votes
4 answers
34k 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,341
33 votes
4 answers
38k 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
32 votes
3 answers
30k 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
31 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
27 votes
3 answers
4k 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
27 votes
1 answer
57k 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
  • 273
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,363
23 votes
3 answers
17k 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 ...
IARI's user avatar
  • 1,455
23 votes
3 answers
13k views

Cleveref and named theorems

Is it possible with Cleverref to reference not only the number of an environment but the "name" (the thing that is passed to it in square brackets? In the following example I want to replace the line ...
born's user avatar
  • 332
20 votes
7 answers
15k views

How to remove the "." in the proof environment?

Using amsthm, is there a possibility to remove the dot when typing \begin{proof}...\end{proof}? This would be typeset as "Proof." If you change your proofname \begin{proof}[Proof:]...\end{proof} you ...
Julian Kuelshammer's user avatar
20 votes
2 answers
12k views

How do I get rid of particular pdftex warning message?

Here is a minimal example that showcases my problem: \documentclass{article} \usepackage{amsthm} \usepackage{hyperref} \usepackage{cleveref} \newtheorem{thm}{Theorem} \newtheorem{lem}[thm]{Lemma} \...
tmoschou's user avatar
  • 351
19 votes
2 answers
16k views

cleveref doesn't use correct capitalized name if used with amsthm?

It seems that the cleveref package does not capitalize properly when referring to a newtheorem if both \crefname and \Crefname have been defined. Or is it just me? Here is my MWE: \documentclass[...
Peutch's user avatar
  • 2,192
19 votes
2 answers
5k views

Wrong spacing before theorem environment (amsthm)

I am using the amsthm package to have environment. I also use \usepackage[onehalfspacing]{setspace} to have 1.5 line spacing. However, when I use the the theorem environment, the spacing before is ...
Peutch's user avatar
  • 2,192
19 votes
1 answer
8k views

Including end mark in definitions and examples (using amsthm)

I am using the amsthm package, and I have this in the preamble: \theoremstyle{definition} \newtheorem{definition}{Definition}[chapter] \newtheorem{example}[definition]{Example} \theoremstyle{plain} \...
Jay's user avatar
  • 2,905
19 votes
4 answers
22k views

\qed or \qedhere at the end of split environment

While I was trying to improve my latest document with respect to its \qed symbols at the end of amsthm's proof environment i came across an interesting point. Assume the proof ends with some formula, ...
Ronny's user avatar
  • 6,120
18 votes
1 answer
6k views

How do I remove parentheses from theorem optional argument?

This is a MWE: \documentclass[12pt]{article} \usepackage{amsfonts, amsthm, amsmath, amssymb} \theoremstyle{definition} \newtheorem{Theorem}{Theorem}[section] \newtheorem*{Pythagorean theorem}{...
User X's user avatar
  • 513
17 votes
4 answers
16k views

pdfTeX warning: destination with same identifier has been already used, duplicate ignored (weird behavior)

Here is a minimal example: \documentclass{amsart} \usepackage{amsthm} \usepackage[pdftex]{hyperref} \newtheoremstyle{myexercise}{\baselineskip}{\baselineskip}{}{}{\bfseries}{.}{ }{\thmname{#1}\...
gniourf_gniourf's user avatar
17 votes
2 answers
6k views

Starting a proof with \paragraph

I would like to break a proof into paragraphs, but I don't seem to be able to start a proof with a paragraph. \documentclass{article} \usepackage{amsthm} \begin{document} \begin{proof} \paragraph{...
Roly's user avatar
  • 4,231
16 votes
1 answer
6k views

Duplicating the amsthm proof environment

I am currently writing up some lecture notes and would like to have therefore a "\solution" environment which should work basically as the amsthm \proof environment, just writing "Solution." instead ...
Stephan Sturm's user avatar
16 votes
1 answer
514 views

Why do AMS document classes incorporate amsthm rather than loading it?

Why do AMS document classes incorporate the amsthm package, rather than loading it using the usual \RequirePackage mechanism the way they load amsmath and amsfonts? The document classes even "...
Ari Brodsky's user avatar
  • 2,596
15 votes
3 answers
10k views

New theorem environment with manual theorem number

I am wondering how to create a new theorem environment / style which allows me to insert the theorem number manually. That is, I am imagining something like \begin{newtheorem}{2.3'}[title] ...
Apollo13's user avatar
  • 341
15 votes
2 answers
3k views

Why align and equation environment do not tolerate empty lines?

The following code does not compile: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} \eta_{m} = & \omega_{m1}D_{1} + \omega_{m2}D_{2} + \dots + \omega_{mT}D_{T} \...
luchonacho's user avatar
  • 4,201
15 votes
2 answers
763 views

Tombstone misplaced with `multline*` and `\qedhere`

It looks like the end-of-proof symbol is misaligned if multline* and \qedhere are used. Or am I just using them wrong? \documentclass{article} \usepackage{amsthm,amsmath} \begin{document} \begin{...
Federico Poloni's user avatar
14 votes
5 answers
8k views

Marking the end of a definition

I'm using the amsthm package to define a definition environment as follows: \theoremstyle{definition} \newtheorem{definition}{Definition} To my surprise, this provides barely any typographic ...
clstaudt's user avatar
  • 1,192
14 votes
2 answers
9k views

No indentation after theorem environment with amsthm

I use the amsthm package and dont want lines which start right after the theorem environment to be indented. I consulted the manual of the package and it said to define a new theorem style. I expected ...
John D.'s user avatar
  • 265
14 votes
3 answers
13k 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, ...
lowndrul's user avatar
  • 5,323
14 votes
3 answers
5k views

How to remove brackets from the optional title in amsthm?

This is a follow-up question of this question. when using \begin{theorem}[Open mapping]...\end{theorem}, I received Is it possible to change the format into "Theorem: Open Mapping."(boldface)? ...
newbie's user avatar
  • 1,341
14 votes
2 answers
2k views

Clash between newtxmath and amsthm packages

I'm writing a document with a book structure using only these few packages: \documentclass[letterpaper, 10pt, oneside]{book} \usepackage{XCharter} \usepackage[xcharter]{newtxmath} \usepackage[cal=...
Ignacio Correa's user avatar
13 votes
1 answer
2k views

cleveref and amsthm -- incorrect environment name

I have theorem environments that have the same theoremstyle which I define through amsthm. I want them all to share the same counter. This way, a lemma that follows theorem 1.2.6 will have the number ...
Ritz's user avatar
  • 946
13 votes
3 answers
4k views

Theorem name and number in margin, note in text

I'm using thmtools to make ultra-fancy theorems. I would like the Theorem name and number (e.g., "Theorem 1") to jut out into the left margin of the text, and the note (e.g., "The Fundamental Theorem ...
Matthew Leingang's user avatar
13 votes
1 answer
776 views

Is there an "endproof" package?

You may be familiar with the endfloat package, which moves all figures and tables to the end of your document. Is there a similar package for achieving that kind of results with proof environments (...
Anthony Labarre's user avatar
13 votes
1 answer
9k views

How to change space around theorem environments?

Is there a way to change the vertical space before/after theorem environments, without defining a new theorem style? I'm using amsthm package to define my new theorem environments.
Sigur's user avatar
  • 37.5k
12 votes
2 answers
853 views

Counting the total number of theorems

I have: \usepackage{amsthm} \newtheorem{problem}{Problem} .... \begin{problem}...\end{problem}... ... \begin{problem}...\end{problem}... In the first page of the document, how can I know the number ...
Chang's user avatar
  • 9,558
12 votes
5 answers
5k views

Reference to List Items in Theorem Environment with Label Type “Theorem”

I'm trying to set up references to list items in theorem environments. Using the thmtools and the cref-package I am able to reference theorem environments, such that the theorem type, e.g. theorem, ...
tim6her's user avatar
  • 468
12 votes
1 answer
6k views

`parskip` removes spacing before `amsthm` theorem environments?

I have a spacing problem. Whenever I include a theorem environment, \begin{theorem}\end{theorem}, the theorem appears very close to the previous line. The spacing is much less than the normal spacing ...
Anand's user avatar
  • 3,746
12 votes
1 answer
3k views

Change only the ending with renewenvironment

I have a theorem environment I've made called "ex" (using the theoremstyle "definition"), which I use for examples in a book document class. I like that I can number the examples, but I want a proof ...
Christopher Aden's user avatar
12 votes
2 answers
4k views

Italic in theorem environment

Consider the following theorem: \begin{theorem} If $x=0$, then $xy$ is equal to 0. \end{theorem} The first "0" will be typeset in upright typeface and the second one in italic. Including amsthm ...
Ben's user avatar
  • 2,619
12 votes
1 answer
2k views

texlive 2016 hyperref/cleverref incompatibility

I almost always use ShareLaTeX for my LaTeX needs, but I recently began work on a relatively large document, and so I figured I would give a local TeX distribution a try to see if I could speed up the ...
Jonathan Gleason's user avatar
12 votes
1 answer
3k views

Move QED symbol to the left, i.e. at the end of the sentence

I want to make the qed symbol at the end of a proof appear at the end of the last sentence, not at the far right of the same line. Would like to do this the simplest way possible. All I can find ...
john w.'s user avatar
  • 265
12 votes
1 answer
8k views

Remove vertical space around theorems

I'm very new to LaTeX (a couple of days ago I didn't know how to use \newtheorem) and was hoping someone could help me with the following problem. If I'm using \usepackage{amsthm}, how do I obtain ...
user32259's user avatar
  • 325
11 votes
2 answers
5k views

QED symbol on the same page as proof

I'm using the proof environment from the amsthm package. In some cases, the last line of a proof falls at the end of a page, but the QED symbol (the little white box) ends up on the following page. ...
jamaicanworm's user avatar
  • 29.3k
11 votes
1 answer
4k views

hide proof environment for restructuring

I am writing my thesis, and i am in restructuring phase - sorting theorems where they should belong thematically. And it would be helpful to have all the proofs hidden so i am not laden with the ...
epsilonhalbe's user avatar
  • 1,020
11 votes
2 answers
2k views

Intelligently Numbering "remarks" only when multiple are made

Problem. I am using the amsthm package, and have remarks after theorems. If there is only one remark between two theorems, the remark should not be numbered. If there are multiple remarks between ...
Alex Nelson's user avatar
  • 1,070
11 votes
2 answers
8k 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} \...
Ivaylo Petrov's user avatar
11 votes
1 answer
10k views

Remove dot after theorem with amsthm and hyperref

I would like to know how to remove the dot that amsthm adds after the number of the theorem (it gives Theorem 1.1. instead of Theorem 1.1 ). MWE: \documentclass{article} \usepackage{hyperref} \...
Minkowski's user avatar
  • 365
11 votes
1 answer
3k views

How can I eliminate the vertical extra space before and after the proof-environment?

consider the following code: \documentclass{scrartcl} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{amsmath} \usepackage{amsthm} \...
Deniz's user avatar
  • 664

1
2 3 4 5
15