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
1 vote
1 answer
57 views

How do we get Theorem environments without dot after the number?

The standard Theorem environments under amsthm has Theorem n. How can we have simply Theorem n and so no punctuation after n?
Sapiens's user avatar
  • 4,551
2 votes
2 answers
47 views

Long url doesn’t break in theorem optional argument (under amsthm, hyperref, xurl)

In most situations, the xurl package (presented here) ensures that long urls break across lines appropriately. However, inside the optional “caption” argument of a theorem, long urls stay unbroken, as ...
Peter LeFanu Lumsdaine's user avatar
0 votes
1 answer
28 views

Expansion in stored csname of restatable theorem

Thinking about this question, I'd like to use thmtools' restatable environment to store theorems with a number in the csname. That way one can loop through them at the end of the document to restate ...
mbert's user avatar
  • 2,521
2 votes
1 answer
85 views

Restate all theorems & definitions?

I am new to this community, and unfamiliar with advanced latex use (e.g. creating packages, custom build scripts, post-processing scripts) so I apologize if my question seems unusual or overly simple. ...
davidleejy's user avatar
0 votes
1 answer
33 views

Alternative numbering for AMS "Theorem" environment

I am currently writing a LyX document using the extended AMS package. My document consists of theorems of two types. So far, I used the standard Theorem environment (the one with numbering) for the ...
GSofer's user avatar
  • 103
2 votes
0 answers
24 views

How to restate some theorems in the preface of a thesis? [duplicate]

In a PhD thesis we have to write a preface wherein some significant theorems from the main body of the thesis are needed to be restated. The amstools or thm-restate package does not help me in this ...
Mathematical Snippets's user avatar
0 votes
1 answer
58 views

Different numeration for Theorems

\documentclass{article} %\documentclass[16pt]{report} \usepackage[a4paper,text={16.5cm,25.2cm},centering]{geometry} \usepackage[utf8]{inputenc} \usepackage{amsfonts} \usepackage{hyperref} \usepackage{...
RFZ's user avatar
  • 323
0 votes
0 answers
60 views

Referencing proposition in LaTeX at some point

In LaTeX, I have a proposition in the first page of my file and I have referred to it in the first page as Proposition 1. By: \begin{prop} \label{P:prop 1} \end{prop} Now, later on in the file, I ...
Some Person's user avatar
0 votes
1 answer
20 views

Error using bracket argument of \cite within theorem titles

This error shows up only in Overleaf (plain online version), so either my local editor (TeXstudio) does not report it, or it is related to the editor. I have a fix to share if anyone encounters the ...
germinael's user avatar
1 vote
2 answers
133 views

Good practice with \DeclareKeys

I'm trying to make a "one-off" theorem environment for theorems with custom names that shouldn't be numbered at all. The goal is to copy the behavior of thmtools \declaretheorem[thmbox=M]{...
mbert's user avatar
  • 2,521
1 vote
2 answers
46 views

Why are my theorems not numbered by letters?

I'm trying to enumerate the main theorems from my paper using letters instead of numbers. I've tried using the following code but it's not working (at least the counter is!) \documentclass[11pt]{...
Marra's user avatar
  • 225
1 vote
2 answers
30 views

How to use a variable in a thmnote

I'd like to have the "theorem name" of a theorem be populated using a variable. It isn't working as I had hoped, see below. I'm especially confused because I can successfully get the "...
macbeth's user avatar
  • 111
1 vote
1 answer
31 views

Force indenting at beginning of theorem environment

When I do my math homework, I use a theorem environment with custom theorem style via the amsthm package to enumerate my problems. I would like the first paragraph inside the theorem environment to be ...
August's user avatar
  • 23
1 vote
0 answers
41 views

No indent inside tcb theorem

How would I disable the indents inside my theorem and example boxes which are made by tcbtheorem? Any help would be greatly appreciated. \documentclass{book} \RequirePackage[dvipsnames]{xcolor} \...
xyz04's user avatar
  • 143
1 vote
1 answer
79 views

\newtcbtheorem Automatically put Theorem Title in the Index

I had frozen my LaTex in April, 2020, since I always seemed to be in the middle of projects. With a bit of a break, I just updated my setup, installing Tex Live 2023. So far, I have only found one ...
TMurphy's user avatar
  • 195
2 votes
2 answers
126 views

Make Theorem header a link to proof environment

I have a similar question to (Making a theorem into a link) but I was not able to adjust it accordingly. I have some proofs in an appendix and I would like to have a theorem environment where the ...
bast3456's user avatar
0 votes
1 answer
44 views

Theorem counter overwrites the (sub)section counter

I have to change my counter level from 4 to 2 and now the theorems increase the section counter. I am using amsmath and amsthm packages, my old counter code is: \usepackage{amssymb,amsmath,amsthm,...
sp8cky's user avatar
  • 51
1 vote
1 answer
40 views

What is the best way to have different thm environments have different proof end markers?

Is there a good way to make it so that the proof end marker (i.e., the \qedsymbol) looks one way for proofs of theorems, and a different way for proofs of lemmas? I know I could locally change the ...
Naysh's user avatar
  • 133
3 votes
1 answer
69 views

Add argument to theorem environment

I want to have a theorem environment with an additional required argument: \begin{mylemma}{text1, text2} It holds that True. \end{mylemma} \begin{mylemma}{text1, text2}[Name] It holds that ...
Jakob W.'s user avatar
  • 187
1 vote
0 answers
48 views

Theorem style Format

I am curious how I can make a similar format of definition and theorem as shown in the picture? Moreover, can I separate two kinds of definition or theorem format so that whenever I see fit, I use the ...
Andrew Leung's user avatar
1 vote
2 answers
50 views

I want the theorem in beamer not italics

I want the theorem tag and the contents in theorem of beamer not italics. Currently it shows like I want "This is a theorem" not italics. \documentclass{beamer} \makeatletter \...
Harry's user avatar
  • 179
4 votes
1 answer
574 views

"Unknown theoremstyle" warning with Springer Nature template

As displayed in the table below, the Springer Nature journal article template (available through Overleaf here or from the Springer Nature website here) is supposed to have three predefined theorem ...
user143410's user avatar
0 votes
1 answer
39 views

In "informs3" cls, why theorem caption enable break line?

In "informs3" cls, why does the theorem caption enable break line? template: https://www.overleaf.com/latex/templates/template-for-manufacturing-and-service-operations-management/...
Chin Ching CHAN's user avatar
1 vote
1 answer
36 views

Numbering theorem-like counters whitin each section, subsection and subsubsection independently [duplicate]

I'm trying to enumerate the different theorem-like counters within each sections independently. I'm using the code I found on this link. However, theorems, lemmas, and definitions are not numbered in ...
Bluerose's user avatar
1 vote
1 answer
44 views

Put current section number in name of thereom-like environment

The following source numbers exercises consecutively across sections. It successfully adds, for each exercise set,an entry to the table of contents that includes the current section number. Question: ...
murray's user avatar
  • 7,650
0 votes
1 answer
38 views

How to change that the numbering of theorem and definitons stays consistent?

Basically I have the problem that theorem, examples, lemmas etc. are numbered with the same numbering, while definitions have a numbering of their own. E.g. typing \begin{definiton} gives me ...
Zedssad's user avatar
1 vote
1 answer
61 views

\textfrench causing no chapter numbers in theorem numbering

I am dealing with a bilingual document using polyglossia: Arabic (main) and French (secondary, mostly math only). \usepackage{polyglossia} \setdefaultlanguage{arabic} \setmainlanguage[locale=algeria]{...
Hamza Nouar's user avatar
0 votes
1 answer
68 views

Theorem Style (like in image) [closed]

How can make style of theorem like this?.Honestly, I took this picture from the internet because I couldn't do it in latex, and I modified it to show what I want to do in the environment of the ...
kuu huu's user avatar
1 vote
1 answer
64 views

continue example repeating the title given the first time

I have several examples (using the theorem environent in amsmath) that must continue along the text and I would like to referece them by "example number" + "name given the fist time&...
Eric's user avatar
  • 13
0 votes
0 answers
30 views

No Space between theorem and proof [duplicate]

When I end a theorem and start a proof, there is a gap between them. Like here: I don't want this gap. Is there a proper solution so that I can just deactivate this behavior for the whole document? ...
mathquester's user avatar
0 votes
1 answer
52 views

reset counter of theorem after unnumbered section [closed]

At the moment I'm working on a bigger paper in which there will be exercises and solutions of these exercises at the end. The exercises are counted within chapters and the solutions will be in a ...
C'est La Tex's user avatar
6 votes
1 answer
169 views

Theorem/Example numbering in LaTeX

I want Theorem/Example with the following numbers: Theorem 1.1. Example 1.2.1. Example 1.2.2. Theorem 1.3. However, I am only able to obtain: Theorem 1.1. Example 1.1.1. Example 1.1.2. Theorem 1.2. ...
Kevin Zheng's user avatar
2 votes
1 answer
77 views

Confusion about \@afterheading, \@afterindentfalse and paragraphs inside other environments

I am a package author writing a package for my company. I am trying to provide theorem-like environments using amsthm for easy use. I need to find a way to realize the following behaviour: If content ...
marc's user avatar
  • 576
0 votes
0 answers
17 views

Theorem style and spacing between the lines

I am using the general overleaf typeset to write my mathematical Thesis. The style looks good unless there is an environment where Theorem, Corollary, Remark, Lemma, Example, etc. is being used. The ...
user511110's user avatar
0 votes
1 answer
36 views

Having a different numbering for sections, subsections and theorems in appendix

I am using the elsarticle class. It defines: \def\appendixname{Appendix } \renewcommand\appendix{\par \setcounter{section}{0}% \setcounter{subsection}{0}% \setcounter{equation}{0} \gdef\...
Labo's user avatar
  • 101
0 votes
0 answers
18 views

Custom Environment for Multi-Part Question that Appear in Frontpage in Article Class

I want to do a multi-question environment in LaTeX. I'll share my current setup and would lie help to achieve my goal. I have the following: \documentclass[12pt]{article} \usepackage{thmtools} \...
lucas belasque's user avatar
2 votes
1 answer
63 views

Restating Theorems while Changing its Name (Title)

We all know that "restatable" package can help repeat theorems in exactly the same format. However, what I need is to restate a theorem while changing its name in the parentheses. For ...
Renfei Zhou orbitingflea's user avatar
1 vote
1 answer
45 views

How does one make the latex compiler stricter with '\item's missing an enumerate or itemize environment?

When \item is inside a theorem-type environment, but not inside an enumerate or itemize environment, LaTeX does not give an error. Is there a way to make compiling stricter so that one receives an ...
Anthony Pulido's user avatar
1 vote
0 answers
39 views

Repair spacing at the start of theorem-like environments in svmono?

Running pdflatex on \documentclass{svmono}% version 5.10 (08-Sep-21); cf. http://www.springer.com/gp/authors-editors/book-authors-editors/your-publication-journey/manuscript-preparation#toc-49268 or ...
AlMa0's user avatar
  • 439
1 vote
2 answers
55 views

Theorem style personalization

I use this personalization of the theorem style: \documentclass{article} \usepackage{amsthm} \swapnumbers % optional, of course \newtheorem{thm}{Theorem}[section] % the main one % for specifying a ...
Damuna Taliffato's user avatar
4 votes
2 answers
195 views

Formating theorems

This is my best attempt to achieve the format that I want in LaTeX: \documentclass{article} \usepackage[a4paper, total={160mm, 247mm}]{geometry} \usepackage{color} \definecolor{medred}{rgb}{0.75, 0, ...
Hubert Schölnast's user avatar
0 votes
0 answers
71 views

With svmono, how to introduce more horizontal space between a theorem head and the theorem contents without occasionally introducing vertical space?

Continuing http://topanswers.xyz/tex?q=3768 , for all the theorem-like environments in our document, we wish to have a little bit more horizontal space (than the default space) separating the head of ...
user avatar
0 votes
1 answer
43 views

svmono: introduce more horizontal space between a user-given theorem name and the theorem contents without occasionally introducing vertical space?

Continuing How to suppress vertical space between theorem heads and enumitem environments? (as opposed to them, we use a Springer class here), for all the titled theorem-like environments in our ...
user avatar
0 votes
1 answer
67 views

Multiple theorem titles

I want to display 2 titles of theorem and but only want to automatically refer one title of them This is my code, it automatically refer the whole title \documentclass{minimal} \usepackage{amsthm,...
HsiL's user avatar
  • 33
1 vote
1 answer
73 views

Independently numbered theorem-like environments

I want to use several types of text sections/theorem-like environments in my document (e.g. axioms, definitions and lemmas), which should be automatically numbered independently by LaTeX, and to which ...
Hubert Schölnast's user avatar
3 votes
4 answers
618 views

Diamond-Symbol at the end of an environment

I want that theorems, lemmas, examples... are ended with a diamond. Like this: I found out that I can use \hfill\mbox{$\diamond$}. But I already wrote my document with 100s of examples, lemmas... I ...
mathquester's user avatar
2 votes
1 answer
47 views

inline theorems and theorems within captions

I'm trying write a paper where I have a sequence of autonumbered pieces of inline quotes. I defined a \newcommand to do this and all worked well until the point that I tried to save the current number ...
LeedsLatexUser's user avatar
1 vote
0 answers
42 views

Removing the ".1" part in the numbering of a remark, if it is the unique remark following some theorem

I'm using the amsthm package and thmtools package to format my manuscript. I'm numbering remarks within theorems, that is, having Remark 2.1., Remark 2.2. and so on after Theorem 2. However, when only ...
Dustrain's user avatar
0 votes
1 answer
50 views

newsiamthm without a sibling?

I am using the SIAM Latex template, and I wanted to create a thm-like environment which has distinct numbering from all the other tho-like environments (which are all siblings by default). I cannot ...
Sid Jain's user avatar
3 votes
1 answer
95 views

Adding a rule to a theorem environment

I have a document full of examples that I created with a simple theorem. The problem now is that I try to modify the examples' appearance by adding rules at beginning and end. This turned to be harder ...
aaragon's user avatar
  • 3,049

1
2 3 4 5
33