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
0 votes
0 answers
24 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{...
user avatar
4 votes
4 answers
244 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. \...
user avatar
0 votes
0 answers
16 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 ...
user avatar
  • 101
1 vote
1 answer
51 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}{ \...
user avatar
  • 269
0 votes
0 answers
32 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 ...
user avatar
  • 269
1 vote
1 answer
38 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 ...
user avatar
  • 113
0 votes
2 answers
54 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}...
user avatar
  • 103
0 votes
1 answer
51 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?
user avatar
  • 103
1 vote
1 answer
22 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 ...
user avatar
  • 4,515
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, ...
user avatar
  • 4,515
1 vote
1 answer
31 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 ...
user avatar
0 votes
0 answers
40 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\...
user avatar
  • 4,515
0 votes
0 answers
14 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 ...
user avatar
  • 205
0 votes
0 answers
18 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,...
user avatar
  • 4,515
0 votes
1 answer
39 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 ...
user avatar
  • 6,130
0 votes
1 answer
48 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 ...
user avatar
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 = {...
user avatar
  • 113
1 vote
1 answer
23 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{...
user avatar
0 votes
1 answer
31 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 ...
user avatar
  • 1
6 votes
3 answers
514 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.
user avatar
  • 61
1 vote
1 answer
29 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 ...
user avatar
  • 4,515
1 vote
0 answers
24 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. ...
user avatar
  • 4,515
0 votes
1 answer
33 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....
user avatar
  • 1
2 votes
1 answer
64 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{...
user avatar
1 vote
0 answers
50 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 ...
user avatar
  • 73
1 vote
1 answer
89 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}...
user avatar
1 vote
1 answer
39 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. \...
user avatar
  • 273
0 votes
0 answers
28 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 ...
user avatar
2 votes
1 answer
87 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}...
user avatar
0 votes
0 answers
18 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: ...
user avatar
1 vote
1 answer
35 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 ...
user avatar
  • 298
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). ...
user avatar
  • 1
2 votes
3 answers
138 views

microtype won't work in theorem environment, using Times New Roman

I'm using microtype package in my document. However, it won't fit to margin the text into the definition environment. Here is the code: \documentclass[letterpaper]{article} \usepackage[protrusion=true]...
user avatar
4 votes
3 answers
242 views

Creating a solution label for an exercise using \declaretheoremstyle

I am writing a book with exercises scattered throughout the text, for which solutions are presented at the end of each chapter. I want the layout to be as follows: An exercise environment is ...
user avatar
  • 298
5 votes
2 answers
106 views

New environment with a glyph before its head

I want to create the following exercise environment, for exercises: That is, insert a black triangle right symbol, ▸, before the header of the exercise. To accomplish this, I would prefer to use the ...
user avatar
  • 298
2 votes
1 answer
73 views

Forbid qed symbol to go on next page

I'd like to forbid the \qed symbol to go on the next page in a proof, as the result is ugly: Any idea how I could solve the problem, ideally by only modifying the proof and/or subproof environments? (...
user avatar
  • 5,043
0 votes
3 answers
71 views

Help understanding a list of commands to define a Hebrew environment

I want to define two new theorem-like environments in my LaTeX document, based on the amsthm package, to produce a Hebrew heading for an "example" environment with the word "דוגמה" ...
user avatar
  • 298
1 vote
1 answer
34 views

How to change the contents of a theorem-like environment from italic to upright lettering?

\documentclass[12pt]{article} \usepackage{amsmath,amsfonts,mathtools,authblk,amssymb,amsthm} \newtheorem{theorem}{Theorem}[section] \newtheorem{corollary}[theorem]{Corollary} \newtheorem{lemma}[...
user avatar
  • 933
1 vote
1 answer
32 views

tex4ht: strange rendering of inline math in subsection

MSE: \documentclass{amsart} \begin{document} \section{Test C} \subsection{Test Ca} \begin{proof} \end{proof} Let $x\in\mathbb R$ be a real number, then we have $x^2\ge0$. \end{document} The output ...
user avatar
  • 669
0 votes
0 answers
35 views

Theorems in itemize/enumerate do not align with bullets

I am starting off enumerate bullets with some custom theorem environments using amsthm and thmtools. Here is the misaligned example along with the code. Notice how the "proof" environment ...
user avatar
  • 139
0 votes
1 answer
284 views

Journal Springer nature 2021 latex template and proof environment

I am using the latex template of Springer Nature from here. Even though \usepackage{amsthm} is defined, \begin{proof ... \end{proof} is not recognized and gives this error: Missing $ inserted. \end{...
user avatar
  • 139
0 votes
2 answers
73 views

How do I get the name right with alignment?

I have a code like \begin{aligned}{\emph{Culling}} \forall x(\Sigma(x)\leftrightarrow & \Pi \wedge\\ & \forall m,n((m, y)\})\end{aligned}, and amsmath & amsthm are among the packages....
user avatar
  • 3,631
4 votes
1 answer
126 views

Reduce font size within all proofs

I'm working on some notes with plenty of proofs. I'd like to reduce the font size of the proofs, while holding constant the size of the rest of the text. Here is some code that achieves this by ...
user avatar
  • 43
2 votes
1 answer
46 views

Theorem-like environment with optional title

I'm using the amsthm packages for theorems. I would like to define an environment paragraph which should resemble the look of a theorem environment (definition theoremstyle), but it shouldn't say 1.1 ...
user avatar
1 vote
1 answer
76 views

Collect duplicates of all environments of certain type

I'm writing a workbook for students with homework exercises and their solutions contained. For the ´´homework-exercise´´ and homework-exercise-solution I defined custom environments using amsthm. ...
user avatar
  • 187
0 votes
1 answer
126 views

Newtcbtheorem with 3 entries (#1,#2,#3)

For example, if I have a newtcbtheorem in which I have a first entry#1=name of corollary and a second entry=label of corollary, could I add a third entry=Corollary of Theorem \ref{th:#3}? See this ...
user avatar
  • 793
1 vote
0 answers
28 views

Citation inside amsthm definition causing compilation problems [duplicate]

Directory contents These are the contents of my directory: . ├── bibliography.bib ├── Makefile └── template.tex I outline the contents of each file below. bibliography.bib @misc{ ...
user avatar
  • 1,372
0 votes
1 answer
53 views

Proof without numbering

I am trying to remove the number from proof, but I could not. When I used amsthm package I got several errors. How to remove numbering of proofs without using amsthm package? \documentclass[11pt]{...
user avatar
  • 1
2 votes
2 answers
185 views

remove the dot after Theorem while using the cleveref package

I want to remove the dot after the numbering of theorems, definitions etc. within the amsthm package. (So I get Theorem 1.1 instead of Theorem 1.1.) (EDIT: I want to remove the dot from the theorems ...
user avatar
  • 101
0 votes
2 answers
170 views

How can I limit how much LaTeX can stretch the vertical spacing between definitions, theorems, lemmas, corollaries, proofs, etc.?

I am working on a long document that includes numerous definitions, theorems, lemmas, corollaries, and proofs. These are defined in the preamble using the amsthm package as follows: \usepackage{...
user avatar

1
2 3 4 5
13