Skip to main content

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.

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 ...
Student's user avatar
  • 1,508
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 ...
Nolord's user avatar
  • 505
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, \...
user26316's user avatar
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 ...
CSA's user avatar
  • 47
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=...
user2379123's user avatar
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:...
BadAtLaTeX's user avatar
  • 1,251
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} ...
Teepeemm's user avatar
  • 9,771
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 ...
Jasper's user avatar
  • 10.6k
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} \...
Jasper's user avatar
  • 10.6k
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}{...
Clément's user avatar
  • 5,901
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 ...
xounamoun's user avatar
  • 285
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[...
Nicolò Bonacorsi's user avatar
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 ...
PAT's user avatar
  • 103
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 ...
XIII's user avatar
  • 135
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{...
Akira's user avatar
  • 3,307

15 30 50 per page
1
2 3 4 5
118