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
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
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
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
9 votes
3 answers
4k views

Theorem environment : interaction with enumerate/itemize

My question is related to this one : Is it possible to skip the first line in a theorem environment? Actually, I am looking for a way to implement the solution given there in a somewhat systematic ...
user75362's user avatar
  • 141
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
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
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
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
7 votes
2 answers
22k views

Example/Solution Environment

In my document I wish to provide example questions with solutions. I am currently doing this using the amsthm package as follows: \documentclass{article} \usepackage{lmodern} \usepackage{amssymb,...
Freddie Witherden'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
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
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
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
9 votes
1 answer
3k views

Shaded theorems (thmtools) spanning pages

When the thmtools package is used to create theorem environments with a shaded background, it does not allow separate theorems to span more than one page. This is a rather severe problem if the ...
TSGM's user avatar
  • 2,362
3 votes
1 answer
3k views

Theorem style with name as argument

Is there some way to get a theorem type which will make a theorem with the name passed as a parameter? In other words, is there a way to define "named" such that \begin{named}[NAME] text \end{named} ...
yrudoy's user avatar
  • 477
3 votes
1 answer
2k views

Footnote outside theorem environment

I tried to add a footnote in a tcolorbox based theorem environment, which is showing right inside the theorem box. How to position footnote at the bottom of the page? \documentclass[a4paper]{article} ...
147875's user avatar
  • 145
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
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
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
9 votes
3 answers
3k views

enumerated list in proof - margin, qed symbol

I have two questions. 1. Can I delete the red-colored space? 2. If I use enumerate in proof, QED symbol appears the next line of the end, as above. If I do not want to type manually \qedhere, should I ...
Gobi's user avatar
  • 203
8 votes
4 answers
5k views

Itemizing theorem body

Using package amsthm, the desired theorem style achieved, \documentclass{book} \usepackage{amsthm} \newtheoremstyle{mystyle}{}{}{}{}{\bf}{}{\newline}{} \theoremstyle{mystyle} \newtheorem*{mythm}{...
Shaqpad's user avatar
  • 197
7 votes
1 answer
4k 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 ...
RBS's user avatar
  • 419
4 votes
1 answer
323 views

Automatic theorem list

In the accepted answer to Code between \begin{environment} and \end{environment} stored in an array it's shown how to create an automatic list of theorems using expl3 syntax. However the \...
noibe's user avatar
  • 2,094
4 votes
1 answer
108 views

Odd interaction between tabularx and some list-like environments

After posting this answer to the query How to increase the width of one column and decrease the width of the other one by the same length?, I thought about how to generalize (and simplify) the OP's ...
Mico's user avatar
  • 512k
2 votes
1 answer
501 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} \theoremstyle{...
Gabe Conant's user avatar
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
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
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
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
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
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
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
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
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
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
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
10 votes
1 answer
8k 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 ...
kjo's user avatar
  • 861
10 votes
3 answers
5k views

AMS theorems in table of contents

I am using the amsthm package. I defined some enviroments like \theoremstyle{plain} \newtheorem{theo}[subsection]{Theorem} \newtheorem{satz}[subsection]{Satz} the numbering works as expected, ...
Haatschii's user avatar
  • 710
7 votes
1 answer
144 views

\selectlanguage in the middle of text causes extra vertical space

Consider the following example: \documentclass{article} \usepackage[french]{babel} \usepackage{amsthm} \begin{document} Some text \begin{proof} \end{proof} \begin{proof} \end{proof} Some text \...
Jinwen's user avatar
  • 8,578
5 votes
1 answer
960 views

Horizontal spacing issue in \listoftheorems using amsthm + thmtools

I am using the command \listoftheorems with packages amsthm and thmtools. The problem is that the theorem's head and its optional title overlap. How can I make this space bigger to avoid overlapping? ...
varun's user avatar
  • 55
3 votes
1 answer
2k views

Misplaced QED symbol with \qedhere inside align* environment

I have an align* environment finishing a proof. The environment has three columns. I tried to place the QED symbol using \qedhere, but the symbol collides with the right column. Is this a bug, or ...
Bruno's user avatar
  • 1,975
3 votes
1 answer
879 views

Theorem name, number and note in margin column with amsthm

My question is related to Theorem Name/Numbering in Margin and Theorem name and number in margin, note in text , but the answers to these previous questions do not fully solve my problem. I use ...
Matthias's user avatar
  • 1,966
3 votes
2 answers
1k views

Theorem style like (1.1 Theorem) and custom theorems like (1.2 Intermadiate Value Theorem)

I'm searching for a theorem style like that the one that is used in this book: Elementary Analysis by Ross I've got already most things working, except that I want to get a custom theorem like this: ...
Kasper's user avatar
  • 911
2 votes
3 answers
2k views

Can I change the dot to a colon after Proof in amsthm?

I want to write Proof: in front of a proof instead of Proof. How may I achieve this? Here is a MWE for the set up I have now: \documentclass{article} \usepackage{amsthm} \begin{document} \begin{...
Frode Alfson Bjørdal's user avatar
1 vote
2 answers
639 views

Making a cleveref String Lowercase

I'm using cleveref to cross-reference my theorems throughout my document. However, since certain theorems are so popular, I much prefer to refer to them by names as opposed to their theorem numbers; ...
Luke Collins's user avatar
  • 1,940