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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
55 views

Dynamic references with \zcref

My objective is to have the following mechanism for numbering \item in enumerate inside a theorem environment. When a new theorem wasn't issued yet (e.g. in the proof of the current theorem), then \...
Gargantuar's user avatar
  • 1,241
0 votes
1 answer
16 views

Keep track of theorem number in colored boxes

I have the following: \newcommand{\thmbox}[2]{ \begin{tcolorbox}[colback=blue!5!white,colframe=blue!75!black,title={#1}] {#2} \begin{theorem} uhhh \end{...
stone327's user avatar
2 votes
1 answer
46 views

How to create a theorem box with multiple layers instead of just two

This is what i have so far, \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{tasks} \usepackage{tcolorbox} \tcbuselibrary{skins} \NewTotalTColorBox[auto counter]{\...
user292225's user avatar
1 vote
1 answer
27 views

Theorem Enviroment Counter

I define theorem environment counter based on section and subsection as following: \newtheorem{test}{Test}[subsection]% Counter `test` depends on `subsection` … \counterwithin*{test}{section}% … and ...
kissmemiau's user avatar
1 vote
1 answer
26 views

Beamer: reference in theorem environment,

In a beamer presentation, I would like to state a theorem in such a way that the citation appears next to the 'Theorem'. It should look something like Theorem [AB, Theorem 1] This is a theorem. ...
dicemaster666's user avatar
3 votes
1 answer
55 views

How can I change the numbering of a lemma in Appendix?

Now I use [section] to number the theorems, lemmas,... In the main body, it looks well, but in Appendix, it shows like Lemma Appendix A.1. Is it possible to have the following form? Lemma A.1. \...
Ruihao Wang's user avatar
1 vote
2 answers
51 views

Reducing the gap in the Lemma environment with enumerate

\documentclass{article} \usepackage{amsthm} \newtheorem{lemma}{Lemma} \begin{document} \begin{lemma} \begin{enumerate} \item $(a + b)^2 = a^2 + 2ab + b^2$. \item $(a - b)^2 = a^2 - 2ab + ...
RFZ's user avatar
  • 395
3 votes
2 answers
74 views

Automatically removing unused "theorem" environments in LaTeX documents

As a copy-editor, my job involves preparing the final formatting of scientific documents written directly in LaTeX, which I receive at the end of the peer-reviewing process. Often, authors send us &...
Gabriele's user avatar
  • 2,003
1 vote
1 answer
23 views

Custom numbering for `example` and `solution` environments in Beamer that resets with each example

I'm currently using the Beamer document class to create presentations and have defined two custom environments, example and solution, for my slides. However, the default numbering scheme is not what I ...
Wu Guiping's user avatar
0 votes
1 answer
44 views

Numbering exercises by chapter and printing solutions by chapter in appendix

So, I have a basic tcolorbox that I want to write my exercises in. I want the exercises to be numbered by chapter, i.e. Exercise 1.1 is exercise 1 in chapter 1 (and still be able to print the answers ...
Vebjorn's user avatar
  • 1,884
1 vote
2 answers
84 views

Tcolorbox remove part of box border

So, I want to remove small part of the border in my tcolorbox. Here is an example: If possible, I'd also like to have a small white outline around "Some title here" as showed in the picture....
Vebjorn's user avatar
  • 1,884
0 votes
1 answer
62 views

How can I get the title in tcolorbox partly framed and not framed?

So, I'm trying to make a box with the tcolorbox package that has some of the title in a colored box and some of it not inside the box. What I want is for the definition X.Y part of the title to be ...
Vebjorn's user avatar
  • 1,884
2 votes
2 answers
68 views

What is the canonical way to add theorems to the table of contents?

I am writing a math paper and I would like to have my theorems, lemmas, corollaries and definitions appear in the table of contents. My original code looked essentially like this: \documentclass{...
Smiley1000's user avatar
1 vote
0 answers
29 views

beamer: space below an equation inside a theorem environment

In the beamer class, how can I control vertical spacing above/below equations, when these equations are inside a theorem-like environment? With the current code, there is just the right amount of ...
PatrickT's user avatar
  • 3,013
3 votes
2 answers
57 views

Non-italic punctuation in theorems

With \usepackage{amsmath}, we get a theorem like: Theorem. Let $a$ and $b$ denote the legs of a triangle and let $c$ be the hypotenuse; then $a^2+b^2=c^2$ (where d^2 denotes multiplication of $d$ by ...
John's user avatar
  • 137
2 votes
1 answer
45 views

Proof Environment Inherits colour of theorem

I'm currently using the following setup with mdframed for theorems and proofs. \documentclass{article} \usepackage[usenames, dvipsnames]{xcolor} \usepackage{thmtools} \usepackage{tikz} \usepackage[...
Apollonius's user avatar
4 votes
1 answer
101 views

Wrong theorem enumeration: "Theorem Appendix A.1"

I am preparing a manuscript in the journal style ws-ijnt (see worldscientific.com/page/ijnt/stylefiles-readme-2e). The numbering of the theorems in the appendix looks strange: we get, for example, ...
Jan-Willem van Ittersum's user avatar
3 votes
1 answer
27 views

Change order of words in LaTeX tcolorbox or tcbtheorem

Along my work I have faced with the following problem: I would like to create a theorem environment with \newtcbtheorem, but the text need to be in Hungarian language. The original command creates the ...
István Andorfi's user avatar
0 votes
3 answers
31 views

Identifying definition and theorem counters halfway through document

I am currently creating a latex article for a large-scale assignment for a class. In it, the numbering system for the definitions and theorems needs to change halfway through the document. In one ...
Stephen Cook's user avatar
3 votes
1 answer
66 views

Problem with unnumbered theorem

I would like to include an unnumbered theorem in my text. According to what I read, one needs to define a theorem environment using \newtheorem* instead of the usual \newtheorem. However, this seems ...
dicemaster666's user avatar
1 vote
1 answer
32 views

Missing numbring theorem with reflabel in TcolorBox

The number of section does not appear when need referring label. This the code that use, see also the picture \documentclass[a4paper,11pt,reqno]{amsart} \usepackage{hyperref} \usepackage[T1]{...
Hariz Khaled's user avatar
0 votes
0 answers
30 views

How to numerate theorem "Threorem 2' "? [duplicate]

I need to copy the text from the textbook, which contains the theorems in this order \documentclass[a4paper, 14pt]{article} \usepackage[T2A]{fontenc} \usepackage[cp1251]{inputenc} \usepackage{amsmath, ...
WIIC's user avatar
  • 1
2 votes
1 answer
67 views

Change title of theorem in beamer

I use beamer class with style Madrid. Sometimes I want to use my own titles in a theorem-box, e.g. Assumption instead of Theorem. Everything else shall remain unchanged. How can I achieve that? I have ...
Lereu's user avatar
  • 471
1 vote
2 answers
58 views

How to pass arguments to cleveref

I am trying to write my own theorem package which wraps a bunch of functions to order my standard preamble. In doing so I got stuck with the following problem: I try to create a function to define a ...
uzer.name's user avatar
3 votes
1 answer
94 views

The action of \normalfont and \textit in the theorem heading

I want to write a document with a remark environment, and the caption "Remark" should be Italics, with no bold. I have tried three ways to declare it in the following example, namely remark, ...
Asigan's user avatar
  • 209
1 vote
1 answer
39 views

SIunitx fails with a LyX module (fancytheorems)

I use texlive with LyX, and use fancy theorems module to get customized theorem layouts. However, when I use the SIunitx package with the module, LyX throws "undefined control sequence" ...
Koin toss's user avatar
0 votes
1 answer
58 views

Put table directly under the example title

Right now, there is a table in the light blue space. I want to put this table in the darker blue box above it, just under the example. I also do not want any indent. This is what I have so far. \...
user292225's user avatar
3 votes
1 answer
61 views

How to have restatable tcolorbox theorem environments, while avoiding labels being multiply defined

I have a document where I would like to define a theorem early on, and then restate the same theorem later on when it comes time to prove it. Normally this could be done using the thm-restate package. ...
Naysh's user avatar
  • 187
0 votes
1 answer
46 views

Using cref automatically with enumerate in *all* theorem-like enviornments

This excellent answer explains how to create a new list definition to allow cleverref to refer to the items in an enumerate inside a definition as definition def# (item#). Specifically, it describes ...
Peter Gerdes's user avatar
1 vote
1 answer
44 views

How do I change the displayed name of a theorem environment locally?

I am using a theorem environment to write definitions, with the displayed text being "Definition.", but I want to make one of these to say "Definitions." This is the code I am ...
TheInidealPrakrutiGuy's user avatar
2 votes
2 answers
52 views

Redefine tcolorbox theorem to make arguments optional

I have a large document in which I've been using a lot of custom mdframed theorem environments defined using \newmdtheoremenv, for example \usepackage[framemethod=tikz]{mdframed} \mdfdefinestyle{...
Alex Bogatskiy's user avatar
0 votes
2 answers
38 views

Theorem numbering in \appendix includes "Appendix" just before the counter

I am using a bespoke document class which I have not developed. When declaring theorems or lemmas within the main body, the counter is correctly associated to the subsection number with no further ...
Daneel Olivaw's user avatar
1 vote
1 answer
29 views

How can I have common number (i.e., share a counter) between a tcolorbox theorem environment and a standard theorem environment?

I have a document where I want to have theorems formatted using the tcolorbox package, and propositions formatted using the default formatting from the amsthm package. However, I'd also like to have ...
Naysh's user avatar
  • 187
2 votes
1 answer
39 views

Number a theorem with subsection-number. thm-number, without chapter number

I wish to number theorem in a report with x.y if the theorem is the y-th number in section x (of some chapter), without chapter number. In other words, I want the theorem be numbered like \newtheorem{...
Asigan's user avatar
  • 209
0 votes
2 answers
62 views

How to get 1.1 Definition of X

\documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage[left=2.50cm, right=2.54cm, top=2.54cm, bottom=2.54cm]{geometry} \usepackage{amsthm} \usepackage{xpatch}%To add . to Def with ...
Frode Alfson Bjørdal's user avatar
1 vote
1 answer
20 views

Change reference style to include title

\documentclass[a4paper]{scrartcl} \usepackage{amsthm} \usepackage[pdftex,svgnames,hyperref]{xcolor} \usepackage{thmtools} \usepackage{hyperref} \newtheorem{defi}{Definition}[subsection] \newtheorem{...
Trommelpeter's user avatar
0 votes
0 answers
21 views

How to make the font of theorem number independent of the theorem head font

When using amsthm with the elsarticle class, font of the number after theorem head depends on its font. Here is an example: \documentclass{elsarticle} \usepackage{amsthm} \theoremstyle{remark} \...
Gau-Syu's user avatar
  • 473
0 votes
1 answer
35 views

Get Name of Theorem Environment From Label

I'm trying to create a command, say envName, with the following behaviour (where theorem and lemma are AMS Theorem environments): \begin{theorem}\label{myThm} Lorem ipsum... \end{theorem} \begin{...
Dave's user avatar
  • 317
0 votes
1 answer
68 views

How to get the colour box with theorem title

I try to do the following style of my theorem in latex: But in my code: \documentclass[a4paper, 14pt, extrafontsizes, oneside, openany, x11names]{article} \usepackage{amsmath, amsthm, amssymb, ...
Hermi's user avatar
  • 231
0 votes
0 answers
49 views

Move title box to the right side of tcbtheorem

I have the following document but would like the title ('c' is a placeholder) to be on the right hand side of the tcbtheorem only (NOT also next to the Example 1.2:). I'd also like the c on the right ...
wrb98's user avatar
  • 896
0 votes
0 answers
28 views

Printing counter options [duplicate]

I want to use \Alph{mycounter} to have my theorems labelled by capital roman letters and a short search led me to conclude that all I need to write is \newcounter{mycounter} \Alph{mycounter} \...
Lorenzo Riva's user avatar
0 votes
1 answer
58 views

Restatable theorem with difference in line breaks

I have a theorem written using restatable. However, in one part of the text I am using a two-column format requiring a linebreak in the theorem. When I restate the theorem in the single column part I ...
Seraf Fej's user avatar
  • 143
1 vote
1 answer
76 views

ntheorem with thmmarks causes strange vertical spacing with amsmath equation*

I experience a strange spacing before \begin{equation*} when using amsmath and ntheorem with the thmmarks option. It is associated with using leqno and fleqn together as general setting. How do I fix ...
PeterH's user avatar
  • 11
0 votes
0 answers
33 views

Theorem environment to start on the same line as itemize symbol [duplicate]

In my document, I want to have an itemize environment. Within this environment I want to give a definition (which was previously defined). Consider the following MWE: \documentclass[a4paper]{scrartcl} ...
moekr42's user avatar
5 votes
2 answers
447 views

How to add a "qed square" at the end of a definition?

I'm using the acmart documentclass for a conference paper submission. I've provided a simple example (code below) which currently renders to the following output: Questions: How can I change the &...
0xbadf00d's user avatar
  • 523
2 votes
1 answer
87 views

Too much space between the math expression and the symbol at the end of a statment of theorem, remark etc

I've added a diamond symbol to the end of my theorem (and other) environments: However, when I use any display math at the end of the theorem, the diamond gets set too low: Is there some way to get ...
César VB's user avatar
  • 123
4 votes
2 answers
243 views

Remove the dot after a specific theorem environment

The following code can remove the trailing dot from all theorem environments. \makeatletter \xpatchcmd{\@thm}{\thm@headpunct{.}}{\thm@headpunct{}}{}{} \makeatother See Remove dot after theorem with ...
licheng's user avatar
  • 795
0 votes
0 answers
48 views

Weird numbering system for theorems, definitions, propositions, etc

I am using many packages in my .tex file, I believe it is because of the abntex2 package that I am using for compliance with Brazilian ABNT standards that this problem is ocurring, not that as far as ...
Felipe Dilho's user avatar
3 votes
1 answer
114 views

\newcommand with tcolorbox, with 3 arguments

I want to use many examples that I had already written them in several files looking like \begin{ejemplo} {\label{ex:0xx}} {Pregunta} {Respuesta} \end{ejemplo} with tcolorbox to obtain the ...
JOM's user avatar
  • 457
2 votes
2 answers
62 views

Definition content first characters skipping to numbering box

I have the following issue of first sentence characters skipping to numbering box : Like the O in Defintion 1.6.2 The text start with : " On appelle " which explains the origin of displayed ...
Tou Mou's user avatar
  • 205

1
2 3 4 5
34