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
0 answers
23 views

Add text color to "proof" environment without adding extra vertical space

Consider the following MWE, in which I'm trying to change the text color of the environment proof via the hook env/proof/begin. However, the use of \color would give extra vertical space when ...
  • 6,831
3 votes
1 answer
55 views

Punctuation in amsthm Theorem headers

If I number theorems by sections, then amsthm numbers the first theorem in the first section as Theorem 1.1. How can I change this to Theorem 1-1 ?
  • 209
0 votes
1 answer
25 views

Adding a letter to a counter

I would like to number my definitions and theorems etc. "N1, N2, N3, ..." throughout my document, ignoring section numbers etc. Is there a way that I can tell amsthm to number them this way?
  • 3,327
2 votes
1 answer
66 views

Is there a way to selectively override standard theorem labeling *with* cleveref and hyperref support?

I have the following problem: Document with many different 'types' of theorem, e.g., "theorem", "lemma", "proposition", etc. These are defined in the usual (amsthm) way ...
  • 351
2 votes
2 answers
53 views

How to define a proof environment as in the picture?

First an MWS is as follows: \documentclass{article} \usepackage{lipsum} \usepackage{amsthm} \begin{document} \begin{proof} \lipsum[1] \end{proof} \end{document} What I want is as in the picture: ...
  • 3,331
3 votes
1 answer
85 views

Theorems without begin{} and end{}

My question is more a curiosity than a problem. I notice that the following text builds a valid document. I thought the only correct way to use this theorem environment would be to write the body ...
  • 153
1 vote
1 answer
46 views

Line break after theorem head

I would like to have a line break after "Theorem Head", like this: How can I do that for the Arabic language and amsart document class? I tried to add the following command but with no luck....
  • 4,200
0 votes
1 answer
25 views

\qedhere behavior in different environments

I am making use of \qedhere in proof environments in order to avoid extra space when the proof ends in an equation. I am wondering about why it behaves differently in different environments. ...
2 votes
1 answer
45 views

How to indent the first line of body text in a theorem when its style is customly defined by the user?

I have defined a new theorem style using amsthm package and I have noticed that the \parindentI have included in the definition of the style in the line of code with comment indentation amount adds ...
  • 807
1 vote
2 answers
37 views

Hanging Indentation of Theorem Environments

I wish to have my theorem environments (theorem, lemma, corollary, definition) etc have a hanging indentation as follows: Theorem 1: This is the one, It should be emphasized that an option gives the ...
  • 492
4 votes
0 answers
44 views

How to get "Theorems 1 to 6" when Theorems 3 to 6 are in the appendix rather than in the main body?

Consider the following MWE: \documentclass[]{article} % PACKAGES LOADING \usepackage{amsthm} % THEOREM DEFINITION \makeatletter \newtheoremstyle{style1}{\topsep}{}{\itshape}{}{\scshape}{}{ }{\...
  • 2,139
0 votes
1 answer
49 views

Adding numbering to new AMS environment in Lyx

I used the method presented here to create a new environment ('Assumption') in Lyx. But this environment does not come with automatic numbering which fits with the automatic numbering of different ...
  • 103
1 vote
1 answer
28 views

Redefining proof environment without losing line break [duplicate]

I'm trying to redefine the proof environment because I want the word "Proof" to be bold, not italic. Normally, you'd get this with a nice line break after the proof is done. I've tried ...
0 votes
1 answer
28 views

arrows in mathematical expressions with words

I would like to know how I can type the following mathematical expression Notice I have the arrows pointing at the letters
7 votes
1 answer
154 views

Referring to two or many corollaries in LateX

I am using \thref{cor1, cor2} to cite two corollaries, and it provides instead of Corollaries 3.3.9 and 3.3.10. (It gives "Corollarys" as the plural of Corrolary). If I have the following ...
0 votes
1 answer
32 views

How to make hyperlink to solution in theorem/problem name cover the counter

After Ulrike Fischer helped me out at this thread, I just had one troubling aspect remaining while getting the formatting together for some textbooks that I have written. I was thinking of ignoring it,...
  • 101
2 votes
1 answer
72 views

Changing theoremstyle

I wanted to change the way "Definition 1.1" is displayed. Specifically, I want to make the name of the definition (green box in attached image) appear in bold (which I know I could do with \...
  • 35
0 votes
2 answers
35 views

Error when using hyperref and thmtools

\documentclass[12pt]{article} \usepackage{hyperref} \usepackage{amsthm} \usepackage{thmtools} \usepackage{hyperref} \theoremstyle{plain} \newtheorem{theorem}{Theorem}[section] \...
  • 15
0 votes
0 answers
28 views

Subcounter (Korollar, Beispiel(=Example), Bemerkung(=Remark) it is german) does not reset, when creating new Theorem, Satz etc

I have this environments: \theoremstyle{definition} \newtheorem{definition}{Definition}[section] \theoremstyle{remark} \newtheorem{bemerkungdefinition}{Bemerkung}[definition] \newtheorem{...
4 votes
4 answers
255 views

Restate theorem without final sentence

I am short on space for my paper, so I want to put some theorem proof in appendix, but I also want to put the sentence saying "Proof in appendix" on the same line as the theorem statement. \...
0 votes
0 answers
23 views

Add Custom Theorem Number Between Two Theorems

I hope this question is not a duplicate, I found many questions regarding theorem numbering in amsthm but none that addressed this problem. I'm writing down handwritten lecture notes in LaTeX using an ...
  • 101
1 vote
1 answer
55 views

Is there an empty value for the counter in `\newtheorem{xxxx}{xxxx}[empty]`?

I'm trying to set an optional counter in the \newtheorem command based on some input given to a .sty file. Something like \DeclareOption{empty}{ \edef\counter{} } \DeclareOption{section}{ \...
  • 269
0 votes
0 answers
34 views

How to create a class that changes the word "Theorem" according to some chosen language as input?

I'm having some problems on creating a class that changes the word "Definition" in \begin{definition} according to a chosen language. For simplicity I will consider only the English language ...
  • 269
1 vote
1 answer
46 views

Example with clubsuit (no ntheorem)

I would like an example environment which is numbered according to theorems (e.g. theorem 1, example 2, theorem 3, example 4, ...) and ends with a clubsuit. I've already seen this solution, but I ...
  • 113
0 votes
2 answers
72 views

Making a style file that defines a style for a definition

How can I include the following style for a definition in a style file? I am using the packages xcolor (with the option x11names), amsmath, amsthm, and amssymb. \newtheoremstyle{typex-definition}...
  • 213
1 vote
1 answer
70 views

Colouring headings for lemma, theorem, corollary, and definition

Would it be possible to have the headings for lemma, theorem, corollary, definition, show in colour?
  • 213
1 vote
1 answer
26 views

Seeking an explanation for the code of the theorem style "break" in the package "ntheorem"

In the package ntheorem, there is a theorem style called break, the corresponding code defining it reads: \newtheoremstyle{break}% {\item[\rlap{\vbox{\hbox{\hskip\labelsep \theorem@headerfont ...
  • 6,831
0 votes
1 answer
46 views

How to execute certain code at the beginning of every theorem?

I would like to inject certain code at the beginning of the environment theorem, defined with amsthm's \newtheorem. In my case, the code I wish to add is {\itemize\item[]\null\enditemize}\smallskip, ...
  • 6,831
1 vote
1 answer
52 views

Incorrect link to theorem with only enumerate/itemize inside

I have a bug with command autoref/ref from hyperref package. If there is nothing except enumerate/itemize link to theorem doesn't work: it goes to the beginning of document instead of theorem. How can ...
0 votes
0 answers
41 views

How to access to the exact value of the vertical space before and after a theorem?

Background I'm using a theorem style where there is a new line between the title and the statement. \newtheoremstyle{simple} {}{} {\normalfont}{} {\normalfont}{} {\newline} {{\thmname{#1}\nobreakspace\...
  • 6,831
0 votes
0 answers
17 views

Basic Numbering Question Using amsthm [duplicate]

I'm trying to learn basic usage of amsthm. Within a book chapter or an article section, I want each use of any theorem-like environment to augment the numbering, like 1.1 Theorem blah blah 1.2 ...
  • 361
0 votes
0 answers
22 views

Misplaced line number in a custom theorem style

I defined a theorem style that has a line break after the theorem title. However, the line number of the first line is then misplaced (possibly because the \medskip is placed in an inappropriate place,...
  • 6,831
0 votes
1 answer
99 views

How to increase the space between a section/subsection title and a theorem

I would like to add some space between a theorem and the preceding line. I used titlesec and amsthm to customise the spacing but when the theorem is just after a subsection, the required spacing ...
  • 6,242
0 votes
1 answer
56 views

How to use \qed in a mathematical equation in LaTeX? [closed]

I like to place a \blacksquare or a \Box at the end of a worked example. This does not pose any problem in a text sentence in LaTeX. But when I type \qed in a mathematical equation at the end, LaTeX ...
0 votes
0 answers
20 views

Literatur reference with pages in amsthm title [duplicate]

I want to reference pages in a citation used in the title of an amsthm: \documentclass{article} \usepackage[backend=biber]{biblatex} \begin{filecontents}{mybib.bib} @BOOK{Rice2017, AUTHOR = {...
  • 113
1 vote
1 answer
28 views

Setting theorem environment fonts when using multiple fonts with unicode-math

\documentclass{article} \usepackage{unicode-math} \setmathfont[version=xcharter]{XCharter Math} \setmathfont[version=fira]{Fira Math} \newfontfamily\xcharterfont{XCharter} \newfontfamily\firafont{...
0 votes
1 answer
35 views

Theorem environment number beneath figure if figure inside environment

I'm trying to set up my theorem environments so that when you have a figure the number for the theorem/example etc. should go above the figure itself. For example: Example 1.1 tikzpicture Currently it ...
  • 1
6 votes
3 answers
540 views

Changing the color of word "Proof"

I'm using \begin{proof}... \end{proof} of amsthm package for demonstrations environment. How I can change only the color of word "Proof"? Thank you. R.S.
  • 61
1 vote
1 answer
34 views

Is it possible to use a place holder as the counter name in \crefname?

When \cref a theorem, in order to show the referencing name corresponding to the original appearance in its context (i.e., if you write a theorem in English context, and later refer to it in French ...
  • 6,831
2 votes
0 answers
30 views

Reference a theorem with its name "as is" using cleveref (in searching of a new way of implementing of the "originalref " mode in ProjLib)

When writing multi-language documents, if a theorem title has different name corresponding to different languages, then there are two ways to refer to them: Using the original name as it appeared. ...
  • 6,831
0 votes
1 answer
79 views

Changing theorem numbering from chapter.section.number to chapter.number later in document [duplicate]

For most of my document (using document class "report" and using the amsthm package), I am happy with the theorem numbering that \newtheorem{thm}{Theorem}[section] produces, i.e. Theorem 1....
  • 1
2 votes
1 answer
67 views

Cleveref produces incorrect labels when I cross-reference theorem-like environments

If I set the counter of corollaries to follow theorem, cleveref incorrectly uses the label theorem in the text, rather than corollary. How can I correct this? Minimum working example: \documentclass{...
1 vote
0 answers
60 views

Floating Theorem amsthm

I have an environment thm defined with newtheorem of amsthm, and one of my theorems has multiple small codes (lstlisting) and text in between. This theorem takes about 2/3 of a page and I would like ...
  • 73
1 vote
1 answer
280 views

Error: LaTeX Error: Something's wrong--perhaps a missing \item for theorem like environment within the questions environment

I have used the exam document class with amsthm package. I have defined \lemma as follows - \newtheorem{theorem}{Theorem} \newtheorem{lemma}[theorem]{Lemma} And it has been used as - \begin{questions}...
1 vote
1 answer
64 views

Rename amsthm proof environment but retain dot

I am following the directions from this SE question to change the text in an amsthm "Proof" to 증명, which is the Korean word for the same. If I put in Latin text, it works just fine. \...
  • 305
0 votes
0 answers
33 views

Indent entire theorem environment

I am looking not for a hanging indentation on a theorem/definition, but for an entire theorem/definition to be indented an amount \indent. Here is essentially what I am looking for (with 3pt replaced ...
2 votes
1 answer
132 views

Is there a way I can refer to propositions using amsthm?

I am using \usepackage{amsthm} to create propositions. Under my \begin{document}, I have \theoremstyle{definition} \newtheorem{thm}{Theorem}[section] \newtheorem{defn}[thm]{Definition} \newtheorem{lem}...
0 votes
0 answers
21 views

pdf bookmarks for proof environment

I want to create bookmarks for my proof environments. That is I want in the table of content displayed in my pdf viewer (skim), proofs be listed along with my subsections. I have the following set up: ...
1 vote
1 answer
50 views

Insert enumerate items inside a theorem environment, in LyX [duplicate]

I want to create the following code in LyX: \begin{exercise} Prove that blah blah, and show that: \begin{enumerate} \item first item \item some second item \end{enumerate} \end{exercise} I ...
  • 384
0 votes
0 answers
35 views

Non italics for specific maths inline in theorem environment

I would like to write \text{ABC} as part of a math inline in the theorem environment, such that the ABC is not in italics (as it would render in regular math mode outside of the theorem environment). ...
  • 1

1
2 3 4 5
14