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
7
votes
1answer
272 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
70 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
149 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
38 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
201 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
67 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
29 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} ...
1
vote
1answer
71 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
32 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
83 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
29 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
284 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
107 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
34 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 ...
3
votes
1answer
78 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}...
1
vote
0answers
29 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
60 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
64 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
41 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
58 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
180 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
289 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
466 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
61 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
205 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
64 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
64 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
93 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
43 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
29 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
32 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 ...
3
votes
1answer
173 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
134 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
2k 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
139 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
88 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
36 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
161 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
29 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
29 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
76 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
129 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
93 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
102 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
45 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 ...
4
votes
0answers
322 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
93 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
55 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
53 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] ...

1
2
3 4 5
13