Questions tagged [theorems]
{theorems} are environments which are commonly numbered. They are extensively used in math texts. Examples of such environments are theorems, corollaries, lemmas, propositions, remarks and definitions. Popular packages are {amsthm}, {ntheorem}, and {thmtools}. Covers discussion on proofs too.
1,767 questions
3
votes
1
answer
67
views
How to remove automatic theorem counter from tcolorbox title while keeping manual counter in theorem body?
I'm using tcolorbox with \tcolorboxenvironment to style my theorem-like environments. However, I'm getting duplicate numbering: the box title shows one number (e.g., "Definition 1.0") and ...
5
votes
1
answer
141
views
\ref theorem hyperlink jumps to the wrong theorem
Hyperlinks created by \ref referencing thmtools theorems will print out correctly, but will jump to the first reference with the correct sub-number, without taking account the section number.
Here's a ...
5
votes
3
answers
131
views
Numbering tcbtheorem's and normal theorems continuously [duplicate]
I have a fairly big document with a mix of tcbtheorems and normal theorems. So far, the tcbtheorems are numbered separately (within chapter). How can I number all of them continuously? Also, \...
1
vote
1
answer
33
views
cite[][]{} on first line of lemma and français natbib style
I am using a theorem/lemma style with a line break on first line.
I would like to use \begin{lemma}\cite[][]{Aitchison75} lemma statement \end{lemma} with the Bibliographystyle francais and have the ...
3
votes
1
answer
69
views
Tcolorbox - How to label theorems correctly using the tcolorbox and hyperref packages?
This is my code:
\documentclass{standalone}
\usepackage[most]{tcolorbox}
\usepackage{hyperref}
\tcbuselibrary{theorems}
\NewTcbTheorem[number within=section]{Definition}{Definition}%
{label type=...
5
votes
2
answers
382
views
Fix cleveref in TeXLive 2025
Like others I have run into cleveref problems and found only this solution by Ulrike Fischer to be helpful. Consulting the cleveref documentation I found that I need to do something like the following:...
8
votes
2
answers
242
views
marginalia causes a blank line before theorem
The following code:
\documentclass{article}
\usepackage{marginalia,showframe}
\newtheorem{theorem}{Theorem}
\begin{document}
\marginalia{margin}
\begin{theorem}
content
\end{theorem}
\end{document}
...
3
votes
2
answers
158
views
Turn off numbering in ConTeXt theorem environment, or force it to stay the same number, or alternatively use a title
Chapter 19 of the ConTeXt MkIV Excursion describes how to create numbered definitions in ConTeXt, as does Chapter 7.3 of https://www.pragma-ade.nl/general/manuals/mathincontext-screen.pdf.
I am making ...
3
votes
1
answer
105
views
What would be the way to produce a clean theorem and proof setup in ConTeXt?
I want to know if it is a good idea to make a custom theorem environment in ConTeXT, and if it is a good idea, how it is accomplished?
For instance, a theorem in amsthm:
\documentclass{article}
\...
2
votes
2
answers
154
views
How to use numbering for second occurrence of a restated theorem?
Consider the following:
\documentclass{article}
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}[section]
\usepackage{thmtools}
\begin{document}
\section{Introduction}
\begin{restatable}{theorem}{...
1
vote
1
answer
119
views
Strange behavior of internal references
In a long document (memoir format) I am writting I have some trouble with some internal hyperref references (e.g. Theorem 1.4 etc). When trying to extract from my .tex file a minimal (not) working ...
0
votes
0
answers
48
views
How can I get the Definition and Theorem environment like these in LaTeX [duplicate]
How can I get the Definition and Theorem environment like these in LaTeX?
My original setting in the preamble is
\documentclass[binding=0.6cm,twoside]{sapthesis}
\usepackage{microtype}
\usepackage[...
0
votes
1
answer
72
views
Theorems causing same identifier warnings [duplicate]
I wanted to edit a text I last updated about one or two years ago - back then everything was working just fine. Now I get weird "same identifier" messages, references to the wrong pages and ...
0
votes
0
answers
48
views
Repeat a theorem throught the text, with the same number [duplicate]
Suppose you have a statement; for instance, Theorem 1, on page 1 of your article. Is it possible to repeat the Theorem elsewhere in the paper with the same Theorem number? I mean to have the whole ...
0
votes
1
answer
67
views
amsthm: modify indentation of theorem head
I have a tex file
\documentclass{article}
\usepackage{amsthm,mathtools,amssymb,enumitem}
\usepackage{zref-clever}
\zcsetup{cap=true,comp=false,sort=false}
\newcommand{\addtheorem}[2]{%
\AddToHook{...