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
1
vote
1answer
162 views

Enumeration of theorems with beamer

How do I enumerate theorems in a beamer using \newtheorem with the amsthm package?
12
votes
2answers
1k 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} \...
2
votes
1answer
96 views

Include in header theorem-like item name with math letter in optional argument

In Put current theorem-like item's name/number in header, Gustavo Mezzetti posted an answer that allows including in the page header the current theorem-like item's name and number. The problem ...
2
votes
1answer
119 views

amsthm: Punctuation only when there is a title

So I have the following style for theorems, lemmas, etc. \newtheoremstyle{Fancyplain} {\topsep} {\topsep} {\itshape} {0pt} {\bfseries} {:} {5pt plus 1pt minus 1pt} {\thmname{...
1
vote
1answer
562 views

How change vertical space after head in theorem-like environment

Is it possible when defining either the style or declaring the "theorem" to change the vertical spacing after the head (not after the entire "theorem")? I want to do this with appropriate setting(s) ...
4
votes
1answer
48 views

How can I make a command execute exactly once in an AMS environment?

I'm wanting to create a command similar to AMS's proof environment that automatically calls a command (like AMS's \qedhere) when it gets to the end, but allows you to call the command earlier if you ...
1
vote
2answers
255 views

Place theorem number *before* theorem label in page header?

In the accepted answer to Put current theorem-like item's name/number in header, it is shown how to put in the page's header the label of the (last-on-page) theorem, lemma, etc. For example, if ...
4
votes
1answer
61 views

How can I make a command execute exactly once in an argument?

I'm wanting to create a command similar to AMS's proof environment that automatically calls a command (like AMS's \qedhere) when it gets to the end, but allows you to call the command earlier if you ...
3
votes
0answers
39 views

How to change the (horizontal) distance between “Proof” and the first enumeration symbol? [duplicate]

The following code \documentclass{scrbook} \usepackage{amsthm} \newtheorem{theo}{Theorem} \begin{document} \begin{theo} Rhabarber Rhabarber Rhabarber Rhabarber \begin{enumerate} \...
5
votes
2answers
2k 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 ...
0
votes
0answers
51 views

Changing the position of the sign at the end of proofs

In my thesis I'm using the following math related packages: \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage{mathtools} I would like to change the position of the little ...
3
votes
2answers
702 views

Remove space between “Theorem” and theorem number

I'm trying to create a dynamic numbering system for a survey, with questions that I can also reference. I would like to see Q1. What is your age? but playing around with \newtheorem all I can get ...
5
votes
1answer
453 views

\emph not working well in amsthm's “plain” style using XeLaTeX or LuaLaTeX [closed]

Consider the following MWE: \documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \usepackage{mathtools, amsthm} \usepackage{unicode-math} \setdefaultlanguage{english} \...
0
votes
0answers
171 views

Custom theorem title style

I have been trying everything to get my theorems to look like this: The best I could do was defining \usepackage{amsthm} \theoremstyle{definition} \newtheorem{hypo}{Hypomnema} in the preamble and ...
3
votes
1answer
180 views

why does proof use trivlist?

Consider the following definition of the proof environment: \renewenvironment{proof} % so we can use wrap fig in proofs {\noindent\emph{Proof.}} % close enough? {\qed\vskip\topsep} % close ...
1
vote
1answer
66 views

Modify \qed to have an empty box offset to the top left

in the MWE below, how do you go about getting the \qed box to show up like: Here is the code: \documentclass{book} \usepackage{lipsum} \usepackage{amsmath,amsfonts,amssymb,amsthm} \begin{document} \...
1
vote
1answer
184 views

\qedhere in line with the bottom of a \bigg) in a formula that ends a proof/example

This is a a follow-up question to this answer. Here there is a minor modification of the MWE provided by the user (where I put \bigg instead of \bigl/\bigr): \documentclass{article} \usepackage{...
0
votes
0answers
85 views

Well-behaved \qedsymbol like for example environment [duplicate]

I would like to have a symbol like \blacksquare at the end of the environment \newtheorem{example}{Example}. However, this symbol should be well-behaved in presence of formulae (i.e. no white space ...
1
vote
0answers
144 views

How to add right bar in proof

when i use mdframed the right bar is proof double line: \documentclass{book} \usepackage{xpatch,amsthm,xcolor} \usepackage{color} \usepackage[framemethod=tikz]{mdframed} \usepackage{polyglossia} ...
12
votes
1answer
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 ...
1
vote
1answer
275 views

Make proof reference automatically bind to theorem proven or label proofs in ascending order

I was wondering if there's a way to make every proof automatically reference the latest theorem used in my text, or, alternatively, have proofs be labeled with ascending numbers. Allow me to ...
1
vote
1answer
91 views

Strange space between proof and the next definition

I am experiencing strange vertical spacing between a proof environment and the next definition environment of the amsthm package. For example, \documentclass{article} \usepackage{amsmath} \...
2
votes
1answer
229 views

Problems with `\declaretheoremstyle` `\headformat`

I'm trying to change the headformat option in declaretheoremstyle, but I'm getting errors, even when copying the code in thmtools that allows \headformat=margin. Here's my preamble: \documentclass{...
2
votes
1answer
428 views

changing numbering depth in certain subsection

I have a document with several sections, most of which contain subsections. In all but one of the sections, I want the theorem numbering to go by section depth. In one particular section, I want the ...
4
votes
1answer
749 views

How to obtain claim numbered within proof without changing the default look

I have a problem that I could not solve, even after looking around for a while on the site. Quite simply, I do like how the following MWE looks like in terms of spacing, but I would like to have the ...
2
votes
2answers
823 views

Adding a title to theorem environment

I am trying to use the theorem environment in my work as Sample Problem. This is my MWE: \documentclass{book} \usepackage{amsthm} \newtheoremstyle{mythmstyle} {}{}{}{} {\bf} {} {\...
1
vote
1answer
272 views

Changing content of \listoftheorems and hyperlinking to text

Here's my MWE: \documentclass{report} \usepackage{amsthm} \usepackage{libertine} % allows bf sc fonts http://tex.stackexchange.com/a/98581/104449 \usepackage{thmtools} \declaretheoremstyle[ ...
2
votes
4answers
2k views

Itemizing theorem body

Using package amsthm, the desired theorem style achieved, \documentclass{book} \usepackage{amsthm} \newtheoremstyle{mystyle}{}{}{}{}{\bf}{}{\newline}{} \theoremstyle{mystyle} \newtheorem*{mythm}{...
1
vote
0answers
670 views

Problem with AMS packages [closed]

I have a problem that occurs every time I use one of the AMS packages (regardless of the document class or template I use), for instance amsmath or amsthm. In the next line after the \usepackage ...
1
vote
0answers
162 views

How do I format my theorem environment to fit the itemize?

I study by making summaries of books, and, in order to prevent constructing a narrative, I use the itemize environment to break up chapters, sections and subsections into the essential information. ...
2
votes
2answers
417 views

Padding in theorem environment with thmtools

I'm using thmtools to make shaded theorems, but there is no padding around the theorem body and that makes it ugly. MWE: \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{...
5
votes
2answers
445 views

Proof environment produces “Proof Proof: …” only when thmbox is used

I'm using thmtools. When I use the thmbox keyword in a theorem environment definition, all the proofs start with "Proof Proof: ". MWE: \documentclass{article} \usepackage{amsmath} \usepackage{amsthm}...
0
votes
1answer
88 views

Per-environment heading in thmtools theorems

I have a custom style for definitions, but I'd like to customize the heading every time: \usepackage{amsmath} \usepackage{amsthm} \usepackage{thmtools} \declaretheoremstyle[ spaceabove=\topsep, ...
2
votes
2answers
2k views

Use \newtheoremstyle to define a custom example environment

I am trying to define a custom example environment for my thesis, but with my limited knowledge of LaTeX I am not able to figure this out from the amsthm documentation. Here is a minimum working ...
3
votes
1answer
571 views

Theorems continued over multiple pages using amsthm

I use amsthm to define my own lemma, theorem, and other environments. Some are too long to display on one page, which means that they are broken onto multiple pages. When such an environment is ...
4
votes
1answer
632 views

How to typeset axiomatic logic proofs in list form?

I'm trying to typeset some axiomatic logic proofs in list form. I have tried to define a new environment such that I could combine the proof environment of the amsthm package with a table, resulting ...
1
vote
1answer
221 views

Nested Proofs and wrong vertical spacing

I have the following problem concerning nested theorems. Take the following: \begin{theorem} Bla \end{theorem} \begin{proof} Bla bla % \begin{lemma} Bla \end{lemma} % \begin{proof}[Proof of the ...
1
vote
1answer
679 views

How can I apply a custom-defined theorem environment to nested theorems WITHOUT using a proof environment?

I'd like to combine a couple of constructions I've found on this site to create a custom-defined cases environment so that each case will: be nested within a larger theorem environment; end with a ...
2
votes
1answer
633 views

autoref inside a section name, using amsthm and thmtools

The following example works well: \documentclass{article} \usepackage{amsthm} \usepackage{thmtools} \declaretheorem[parent=section]{theorem} \usepackage{hyperref} \begin{document} \section{Section} \...
3
votes
1answer
92 views

Gettting rid of ntheorem's limitation concerning footnotes in theorem's notes

As shown by the following MWE, footnotes in theorems' notes work well for amsthm's theorems: \documentclass{article} \usepackage{amsthm} \newtheorem{theorem}{Theorem} \begin{document} \begin{theorem}[...
1
vote
0answers
356 views

Numbering of sections, subsections, subsections, and all theorem-like environments in the dictionary order

I would like the numbering of sections, subsections, subsections, and all theorem-like environments to be in the strict dictionary order. Moreover, the number of a theorem-like environment contained ...
2
votes
1answer
333 views

Theorem counter does not increment

So this is my code \documentclass{book} \usepackage[utf8]{inputenc} \usepackage{natbib} \usepackage{graphicx} \usepackage{enumerate} \usepackage{parskip} \usepackage{emptypage} \usepackage{multirow} ...
1
vote
2answers
2k views

With ntheorem, thmmarks and no amsthm, defining the proof environment right

I'm using ntheorem with the thmmarks option but without the amsthm option (for reasons I won't go into). I would like to define the proof environment à la amsthm. Specifically, I want: To be able to ...
2
votes
2answers
432 views

How do I prevent an enumerate item at the second level from being split between two pages?

looks bad. How can I prevent this? I tried midpenalty, but it didn't work. The code is presented below. \documentclass[oneside,12pt]{article} \usepackage{geometry} \usepackage{microtype} \usepackage[...
3
votes
1answer
239 views

How to use cleveref names as theorem names with thmtools

I'm trying to setup a few theorem-like environments with thmtools, making it work with cleverer while trying to stay compatible with different languages. If I load cleveref after thmtools it seems ...
1
vote
1answer
40 views

The vertical margins below and above a theorem aren't the same if the theorem begins with an enumerate list

As you can see in the above picture, the "Solution" theorem's top and bottom margins are different. How can I make the same? I present the LaTeX code below. \documentclass[oneside,12pt]{article} \...
7
votes
5answers
3k 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 ...
1
vote
0answers
78 views

Theorem and formula discrepancy

I have the following theorem declaration using asmthm \newtheoremstyle{MyStyle}{\topsep}{\topsep}{\sffamily}{}{\bfseries \scshape}{ )}{ }{} \newtheorem{Theorem}{(}[section] Which, when called, ...
6
votes
1answer
102 views

How to start a list right after the heading in a redefined proof environment?

I've redefined the proof environment to make the heading boldface by adapting the code from the amsthm documentation (p. 11). I've literally just deleted \itshape and typed \bfseries instead, nothing ...
1
vote
0answers
85 views

Locally reduce space between equation and qed / placement of qed [duplicate]

If (using amsthm) I have a proof which ends on an equation, and after that some text goes on, I have something like: text / (bit of space) / equation / (bit of space which looks huge because there ...

1
3 4
5
6 7
11