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
5 votes
2 answers
109 views

Two crefname for the same item

I would like to make this procedure faster. I have a theorem with its crefname. In this theorem, I have an enumerated list. I want to associate to each item two different labels, in order to produce ...
5 votes
2 answers
122 views

sub-examples in amsthm

I'm using the newtheorem macro in amsthm for example environments. Is there a way for a sub-example? I don't need anything fancy like indenting, just a new counter level would do. So that within say ...
  • 53
0 votes
1 answer
37 views

Integral sign produces error if AMS theorems module is'nt used

I have a document in LyX Tufte-book class with the following preamble: \usepackage{xcolor} % for colour \usepackage{physics} \usepackage{caption} % add numbers to chapters, sections, subsections \...
1 vote
1 answer
44 views

Cleveref and tcolorbox for theorems that share a counter

I'd like to have different theorem environments share the same counter using tcolorbox in beamer. However cleveref doesn't seem to pick up their names correctly. Can anyone point me to what I'm doing ...
0 votes
0 answers
27 views

`enumitem` with two different references

My goal is the following: Suppose I have an enumerated list inside a theorem environment using amsthm. Then I would like to reference the items inside the theorem itself or in the following proof via ...
1 vote
1 answer
24 views

Line break after definition

I use the following to have shaded definitions: \colorlet{shadecolor}{orange!15} \declaretheoremstyle[ headfont=\normalfont\bfseries, notefont=\mdseries, notebraces={(}{)}, bodyfont=\normalfont, ...
  • 15
2 votes
1 answer
59 views

Define a thmtools theorem in beamer

I want to use thmtools inside a beamer document, to style theorems. The MWE below gives the following error: Command \theorem already defined. Or name \end... illegal, see p.192 of the manual. How ...
  • 718
5 votes
2 answers
163 views

Letterspace theorem head: “T h e o r e m 1” (perhaps with amsthm, textls)

I’m trying to reproduce some old typography (a German article from 1925). In particular, its theorem and proof heads are distinguished by increased letterspacing, as for “Satz 1” here: In text, this ...
2 votes
2 answers
30 views

Remove citation from nameref

I have some theorems/lemmas which have a reference in their name, like this: \begin{lemma}[Park's Lemma~\textnormal{\protect{\cite{park}}}]\label{lemma:parks-lemma} This is Park's Lemma \end{lemma}...
  • 97
0 votes
0 answers
14 views

Reference Theorem with Listitem with cref and amsthm

I am trying to use use the packages from the title to reference list items in a theorem/definition environment. I have been trying this for hours now and cannot seem to get it to work. This is my MWE: ...
  • 97
1 vote
3 answers
49 views

A theorem style with only a parenthesized number label

I am looking to create a theorem-like environment using the AMS LaTeX system which consists of just a parenthesized number: no other declaration like theorem, lemma, etc. Other properties (spacing ...
3 votes
1 answer
71 views

How to create a proof environment with a different typeset name in addition to the original proof environment?

Picking up on this comment, how can I define a proof environment with a different typeset name than "Proof" (say, "Explanation") in such a way that the new environment coexists ...
  • 10.5k
0 votes
1 answer
32 views

LaTeX Error: Too many symbol fonts declared. when I try to include newtx

I am using following complete-template at overleaf Elsevier's CAS LaTeX Double-Column Template - Overleaf. Whey I try to add newtx package using \usepackage{newtx}, I get a compilation error. bare ...
  • 1,103
0 votes
0 answers
30 views

option parbox=false broke in itemize within tcolorbox within proof between tcolorbox and 4.42 and 5.1.1

Thanks to make text invisible I use an environment hidebox based on tcolorbox, that hides material in the handoutversion of my lecture notes. This worked fine in TeXLive21 but I just noticed it broke ...
  • 67
0 votes
1 answer
29 views

Symbol for end of proof in enumerated proof envioronment [duplicate]

With a simple proof environment as follows, \documentclass{article} \usepackage{amsmath, amsthm} \vspace{-5pt} \begin{document} \begin{proof}~\\ \item First line \item ...
  • 3,941
1 vote
0 answers
34 views

How to make a copy of counter with amsthm package?

So there're 3 classes: ex, exa and exb. I would like exa and exb inherit the counter/index of ex but they two should be separated. I've tried this \newtheorem{ex}{Exercise} \newtheorem{exa}[ex]{...
1 vote
0 answers
33 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 ...
  • 7,135
3 votes
1 answer
59 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
27 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,477
0 votes
1 answer
81 views

how to skip the title of a theorem?

I'm having problems with latex: I have a snippet that opens the theorem environment directly to me as in the code I published. That's when I am in "çç1" (this is a symbol I wrote to help you ...
2 votes
1 answer
71 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 ...
  • 361
2 votes
2 answers
64 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,464
3 votes
1 answer
87 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 ...
  • 168
1 vote
1 answer
57 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,236
0 votes
1 answer
37 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
53 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 ...
  • 1,819
1 vote
2 answers
41 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 ...
  • 504
4 votes
0 answers
45 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,191
0 votes
1 answer
89 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
42 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 ...
  • 198
1 vote
1 answer
35 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
181 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
39 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
95 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
46 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
33 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
271 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
57 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
56 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
54 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
112 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
92 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
28 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 ...
  • 7,135
0 votes
1 answer
49 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, ...
  • 7,135
1 vote
1 answer
64 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\...
  • 7,135
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 ...
  • 371
0 votes
0 answers
29 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,...
  • 7,135
0 votes
1 answer
162 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,384

1
2 3 4 5
14