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
17 views

Changing only the color of the default amsthm styles

As the title indicates, I am looking to change the color of the (title of the) default amsthm styles, and nothing else. Is there any way to do this without creating a bunch of new theorem styles, copy ...
0
votes
0answers
29 views

I am getting an error showing me as Paragraph ended before \@tempa was complete

\NeedsTeXFormat{LaTeX2e}[1996/06/01] \documentclass{cambridge7A} \usepackage{natbib} \usepackage[figuresright]{rotating} \usepackage{floatpag} \rotfloatpagestyle{empty} \usepackage{amsthm} \...
1
vote
1answer
19 views

Cleveref for dashes after a theorem number: e.g. Theorem 1'

I want to give two versions of a theorem and number them theorem 1 and theorem 1', like with the questions Dash after theorem number: e.g. Theorem 1' and Theorem numbering like Theorem $1'$. I later ...
1
vote
0answers
16 views

LaTeX Error: No counter 'refsection' defined generated by \listoftheorems

I was wondering if anyone could help me with this problem. Somehow I'm getting the following error message ! LaTeX Error: No counter 'refsection' defined. See the LaTeX manual or LaTeX Companion for ...
3
votes
1answer
29 views

Thmtools and \declaretheoremstyle in Beamer

I am trying to define a custom theorem environment using thmtools. It works as expected in e.g., \documentclass{article}, but in beamer I receive the error "use of \ifbeamercolorempty doesn't ...
0
votes
0answers
21 views

Link a theorem to its restatable

I have theorems, e.g., a lemma below whose proof is provided in the appendix. How to make the lemma clickable and directed to its restatable (or proof) in the appendix? Here is the illustration. Here ...
2
votes
1answer
38 views

How to remove unwanted first parskip inside tcolorbox

In the example below, how do I remove the first parskip between the top edge of the tcolorbox environment and the first line of the theorem? \documentclass[parskip=half-]{scrartcl} \usepackage{amsthm}...
0
votes
0answers
11 views

Style inheritance in thmtools

In the following MWE I'm defining two theorem styles, remark and definition, which should be identical except for a few key-value pairs. I'd like to reuse the style of remark in the declaration of ...
2
votes
2answers
35 views

How can I enumerate theorems using letters for specific sections?

For example, in the appendix, I want to enumerate theorems as Theorem A.1, Theorem A.2, etc... while in the text I enumerate theorems as Theorem 1, Theorem 2, etc... How can I do this? I am using the ...
0
votes
0answers
31 views

How to avoid parentheses + brackets in the title in amsthm when only using \cite?

This is a follow-up to this question and this one. Basically, I would like to avoid the sequence ([...]) in theorem's optional arguments, as shown below: To obtain this result, as suggested by this ...
0
votes
0answers
34 views

Indent the word 'Proof' without using xpatch?

I can't figure out how to work around this problem. I need to indent the word 'Proof' in the proof environment of amsthm without using the xpatch (xpatch is described in here Indent the word “Proof” ...
2
votes
2answers
34 views

For some occurrences of a “theorem” environment, can we remove the parentheses — “(” and “)” — from the environment's optional argument?

For some occurrences can we remove the parentheses -- ( and ) -- from a theorem's optional argument? I'm ready to use a command such as \nobracket, as shown below: \documentclass{article} \usepackage{...
1
vote
2answers
58 views

Theorem environment with hanging indentation, again

I would like to have formatting of theorem environment (and only this environment) with indentation, like this It is exactly the same question as Theorem environment with hanging indentation The ...
4
votes
2answers
164 views

Need to create an unnumbered 'conclusion' environment

I need to write conclusion in my thesis without a number. I used \newtheorem{conclusion}{Conclusion} \begin{conclusion} \end{conclusion} and got as a output Conclusion 1; however, I need only ...
0
votes
0answers
22 views

How to prevent cleveref from using ranges [duplicate]

I'm using the cleveref package with amsthm. \Cref{thm:a,thm:b,thm:c,thm:d} becomes Theorems 1 to 4 I want it to become Theorems 1, 2, 3 and 4. How can I do this? I want it this way because I'm also ...
1
vote
2answers
87 views

How to change dot to colon after theorem in amsthm?

How do I change the dot to a colon in a theorem environment? Minimal Working Example: \documentclass{book} \usepackage{amsthm} \newtheorem*{test}{Test} \begin{document} \begin{test} \end{test} \end{...
1
vote
1answer
40 views

Theorem numbering over chapter [duplicate]

I have a problem with theorem numbering. If anyone has solutions, please help me. My document has two chapters. In 2nd chapter, one theorem is written and numbering like Theorem 2.1.1. Now I want to ...
2
votes
3answers
72 views

Amsthm, Tcolorbox, and lists

In trying to debug a (bigger) indentation problem I have with lists, I came to this MWE. I cannot understand why the definition's caption appear inside the box, and in the same line as the first item ...
0
votes
0answers
54 views

This simple code just won't compile

This is the code: \documentclass{article} \usepackage{amsthm} \begin{document} \begin{proof} \end{proof} \end{document} This is the error I get: This is pdfTeX, Version 3.14159265-2.6-1.40.19 ...
2
votes
1answer
29 views

Theorem box extending over footnote causing page split

I have a document where I'm using amsthm and thmtools (particularly thmbox) for formatting some definitions. The document also contains some footnotes, which are reasonably-sized (i.e. not more than ~...
2
votes
1answer
28 views

tikz-cd inside restatable environment causes a compilation error

I'm trying to include a tikz-cd diagram inside a restatable theorem environment, but this gives me a compilation error. Is there a way to avoid this? Minimum working example: \documentclass{article} ...
0
votes
0answers
34 views

TeX4ht: broken hyperlinks when using internal counters for `\newtheorem`

MWE: \documentclass{amsart} \usepackage{hyperref} \newtheorem{lemma}[equation]{Lemma} \begin{document} We see Lemma~\ref{lem:test} \begin{lemma} We have \begin{equation} i^2=-1 \end{...
1
vote
1answer
23 views

Section number and theorem number are not separated by the period

While writing with Springer latex template in https://www.springer.com/gp/livingreviews/latex-templates, I realized that it doesn't separate the section number and theorem number automatically. For ...
0
votes
0answers
25 views

Theorem environment font [duplicate]

I'm new in LaTeX and I want to use normal font in theorem, lemma, definition and other math environments and just remark some word in italic. I want to preserve the style when I put $ $ but not in all ...
2
votes
1answer
58 views

How to more visibly indicate that a tcolorbox has broken?

I have a tcolorboxenvironment around an AMS theorem that I would like to be breakable. The problem is that I would like a more noticeable indicator for the break than the defaults seem to provide. ...
0
votes
3answers
27 views

Change color of amsthm environment

I have defined a new environment called sltn and want the text Solution to be green. The text working fine but the . after Solution also needs to be blue but I couldn't find any way to do that. \...
0
votes
1answer
369 views

Command \proof already defined. }

I am getting error command \proof already defined here is my thesis.tex file \documentclass[oneside,mtp]{iiitg} \let\mydegree\degree \let\degree\relax % % The rest of the class options are the same ...
0
votes
1answer
41 views

Numbering theorems in decimals instead of whole numbers [closed]

Please,theorems are numbered in whole numbers like 1,2 ...., but I want it to be numbered in decimals like 1.0,1.1... How do I achieve this?
2
votes
2answers
68 views

Boxing the contents of all theorems but not the theorem heading

I created a theorem environment for examples and I want to have them boxed underneath the heading. \documentclass{book} \usepackage{amsmath} \usepackage{amsthm} \newtheoremstyle{break} ...
1
vote
1answer
22 views

Add new parameter to header format in theorem style

I’m using the amsthm package to have theorem environment. I would like to display something like Axiom 1 = BA 1 (Some text) where BA is the reference to axioms of another paper. So I tried this: {\...
1
vote
1answer
39 views

Missing number, treated as zero; Illegal unit of measure (pt inserted)

I just encountered this problem Missing number, treated as zero. [ \begin{Cauchy} ] and this Illegal unit of measure (pt inserted). [ \begin{Cauchy} ] I know that somebody has already met this problem ...
0
votes
0answers
20 views

how to set left and right vertical rule in theorem having floats

\documentclass{book} \usepackage{amsmath,amsthm} \newtheorem{example}{Example}[chapter] \begin{document} \chapter{Overview of Hydromechanics} \label{ch02:chap02} This chapter provides a broad ...
0
votes
0answers
23 views

Two different `proof' environments with different headings and qed symbols

In my book, I am using two different proof environments. The original proof environment in the AMS packages has been modified to the following: \renewcommand{\qedsymbol}{$\blacksquare$} \makeatletter ...
0
votes
0answers
37 views

Defined new theorem (amsthm) and new environment (Environ). Document won't compile if I use theorem inside environment. How can I fix this?

As the title says, I have defined a new theorem (example) and a new environment (revision). they both work fine, but if I use the theorem inside the environment I get the following errors (copied ...
2
votes
2answers
64 views

How to rename theorem when * is added

I have the following in amsthm: \newtheoremstyle{thm} {} % Space above {} % Space below {} % Theorem body font % (default is "\upshape") {} % ...
0
votes
0answers
49 views

How to set multiple counters in LaTeX?

Suppose I defined theorem-like environments in amsthm: problem, exercise, solution. I want something like this: Problem 1. Solution 1. Solution 2. Exercise 1. Solution 1. Solution 2. However, ...
1
vote
1answer
41 views

New environment issues arguments xargs.Missing Number and Illegal unit of measure

I'm trying to make a general environment for delineating sections of math with indented bodies, (proofs, definitions, etc). I found that using the 'adjustwidth' environment in the 'changepage' ...
2
votes
0answers
42 views

How to *not* define command when a package option is called [closed]

I've recently written my own personal package (let's call it mypkg), which contains all the math macros I use on a regular basis. I would like to get this package to work with beamer. My package loads ...
2
votes
0answers
162 views

Why does `\usepackage{cleveref}` fix the conflict between (new) hyperref, amsthm, and lastpage when using tikz externalize?

This is not a duplicate of this question. Why does adding \usepackage{cleveref} solve the conflict between lastpage, hyperref, and amsthm during externalization? The known answer proposes \...
2
votes
1answer
43 views

amsthm, thmtools: Put Theorem-Notes into the Index and not

I want to put the notes \begin{defi}[<note>] to the index as default, but not in some cases. So I would like to use a shifter like \noindex, that means \begin{defi}[<note> \noindex]. ...
2
votes
1answer
28 views

thmtools - Align theorem header

How to prevent LaTeX from creating stretching space inside theorem headers, using a thmtools theorem? In this example, I want "Theorem 1. " to be aligned with "Theorem 2. ". \documentclass[12pt, ...
2
votes
1answer
41 views

Distance between text and footnote mark

Sometimes I add footnotes to my proofs e.g. to specify where I took it from, such as in the following: \documentclass{article} \usepackage{amsthm} \begin{document} \begin{proof}[Proof\footnotemark] ...
7
votes
2answers
159 views

thmtools - Theorem does not change the title when I change the command that defines it

Here is the example of a code: \documentclass[11pt, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsthm} \usepackage{thmtools} \newcommand\testTitle{Theorem} \declaretheorem[title = \...
0
votes
1answer
21 views

Citations in theorem environment [duplicate]

In the body of my document, I am able to refer to do the following without any problems: \cite[Lemma 2]{ABC} renders as [ABC, Lemma 2] (with the appropriate hyperlink to the bibliography). However, ...
2
votes
1answer
51 views

How to fix an odd interaction between the tabularx and ntheorem packages?

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 ...
0
votes
0answers
40 views

Label and hyperref for newenvironment

I have created a \newenvironment that defines an assumption that allows the user to input their own index (e.g., Assumption A1). I later reference the assumption using \ref{labelname}. The intention ...
3
votes
1answer
56 views

How can I get a line break in a theorem headline using the ieeeconf class?

This is a follow-up question to this question, as suggested by Ioannis Filippides. The question is about the fact that a long theorem title may be longer than the column width, and it is not ...
1
vote
1answer
39 views

bold slanted numbers in custom theorem environment

Using the amsthm package, I have customized a theorem environment for my notes. The theorem head is bold and slanted. But I also want the number slanted. (It is already bold, but it's upright.) In ...
0
votes
2answers
73 views

Need help cleaning my code

\documentclass{article} \usepackage{amssymb,amsthm} \begin{document} \begin{proof} Given $\epsilon<0$,$\left|\frac{1}{\sqrt[3]{n}}-0\right|<\epsilon \Leftrightarrow\frac{1}{\sqrt[3]{n}}<\...
0
votes
1answer
31 views

undesired extra space above `\proof`

In Theorems 1 and 2, there is extra space between the equation and the proof. In Theorem 3, there isn't. What is causing this in the case of Theorem 2 and how can I get the \proof command not to ...

1
2 3 4 5
12