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

How can I fix compile errors?

I have the following code: \documentclass[13pt]{scrartcl} \usepackage[english,main=russian]{babel} \usepackage{amssymb, amsthm, thmtools} \declaretheoremstyle[ title=Доказательство, bodyfont=\...
0
votes
1answer
23 views

How can I properly fix the vertical alignment of the tombstone (QED sign) in list-proofs? [duplicate]

I frequently encounter the following situation: I am proving a claim which consists of multiple sub-claims, which I've enumerated in a list using the enumerate environment provided by the eponymous ...
1
vote
1answer
30 views

llncs: Upright text in theorems and lemmas

By default the llncs class defines a host of theorem-like environments, without my loading amsthm. Some of them, such as Theorem, Lemma, Corollary, set their text in italics. I think this is not very ...
2
votes
1answer
124 views

How to avoid an hyperref bug (?) in theorems

Sometimes in AMS theorems we use lists. For some reason, when the list arrives just after the \label at the very beginning of the theorem, the hyperref link is corrupted. It suffices to put a single ...
0
votes
1answer
24 views

Combination of \qedhere and \tag on the left

If I put a \qedhere in combination with \tag{2} but on the left I get an error: Package amsmath Error: Multiple \tag. The error also say to copnsult the documenation, thing I did and put a \mbox ...
0
votes
0answers
25 views

Error with amsthm package: ! Missing { inserted.<to be read again>T \begin{theorem} T

My file is: \documentclass{article} \usepackage[utf8x]{inputenc} \usepackage[english, hebrew]{babel} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{amsthm} \newtheorem{...
0
votes
1answer
29 views

Incorrect spacing between theorems when a figure is between them

I have a document with two theorems one after the other. The first theorem has a diagram to explain something. My MWE is like this. % !TeX program = lualatex \documentclass{report} \usepackage{...
4
votes
1answer
94 views

Display of references in a math document

In a math article one usually writes for a theorem (or proposition or corollary) in latex: \begin{theorem} \label{theorem1} .... \end{theorem} Now I can reference to this theorem in the article ...
0
votes
1answer
41 views

amsthm: combination of title and label gives problem

After years I have had this problem I discovered today the direct cause, but I would like to understand why it happens and how I avoid the error. I still can't make a MEW and that is the reason why I ...
7
votes
1answer
253 views

Anti-italic in an Italic Environment

I am using a theorem environment with style plain. So far, everything looks great, except that the item indices are italic. The example code is \begin{proposition} Some properties of the cdf $F$ ...
1
vote
0answers
54 views

Controlling the penalty for page-break before proof?

I would like to control the exact penalty for page-breaking between a theorem and proof. For that reason, I cannot use the needspace package as suggested here. I am using both amsthm and cleveref, so ...
1
vote
3answers
102 views

Lualatex + amsthm + polyglossia + CharisSIL = error

The following \documentclass{article} \usepackage{amsthm,polyglossia} \setmainfont{CharisSIL} \newtheorem{defi}{Definition} \begin{document} \begin{defi} Harmless definition \end{defi} \end{...
0
votes
0answers
29 views

mdframed + amsthm + marginnote hides itemize bullet

When using a marginnote inside a amsthm theorem inside an mdframed environment, the first itemize has its bullet destroyed: \documentclass{scrbook} \usepackage{mdframed} \usepackage{amsthm} \...
0
votes
1answer
29 views

Missing \item error on theorem environment!

This code produces the error "! LaTeX Error: Something's wrong--perhaps a missing \item.See the LaTeX manual or LaTeX Companion for explanation.Type H for immediate help.... \end{lem}". I ...
0
votes
1answer
40 views

Proof environment help needed

I have a bit of an issue that I want to resolve. The issue here is that I want the next line in the proof environment to also be bolded and so on, that is consider the following MWE: \documentclass[...
1
vote
1answer
22 views

Pass parrameter of custom enviroment as parameter of theorem

I want to create basically a shortcut for \begin{sometheorem}[optional parameter] \leavevmode \vspace{-\baselineskip}\vspace{-\baselineskip}\vspace{3pt} %some space adjustments \begin{leftbar} ...
2
votes
1answer
57 views

Why is \leavevmode required in this example?

In the following mwe, If I comment out \leavevmode in the redefinition of the equation* environment, the proof title disappears \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} % from ...
1
vote
1answer
22 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
45 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
21 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
48 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
43 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 ...
1
vote
0answers
27 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
52 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
14 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
39 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
37 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
43 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
73 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
182 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
183 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
46 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 ...
3
votes
3answers
101 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
55 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
38 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
44 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
37 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
25 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
26 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
87 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
44 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
746 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
70 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
72 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
24 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
53 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
22 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
26 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 ...

1
2 3 4 5
12