# 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,252 questions
Filter by
Sorted by
Tagged with
31 views

### Sub-numbering for Theorems, but the sub-theorems as separate blocks

I would like to have letters as sub-numbering for some theorems, similarly to this question, but I would like to have the two sub-theorems ''separately'', to be able to include anything between them. ...
24k views

### How do I repeat a theorem number?

Often in my papers I want to mention theorems in the introduction that are introduced in more detail and proved in a later section. I'd like to include the statement of these theorems twice over, ...
13 views

### Automatic theorem referencing in MathJax [closed]

I am writing some webpages containing math content (using MathJax), and I am looking for a way to do the equivalent of the LaTeX theorem referencing, as in the following example: \begin{theorem} \...
151 views

### Recall an hypothesis

I actually started to use Latex in order to prepare better works. After that, there is a problem. This is my code actually: Determine Hyp 1 and 2 \newtheorem{hypothesis}{Hypothesis} \begin{...
28 views

### How do you make different theoremstyle

When preparing some manuscript, I noticed it is required that theorem, definition and remark have different formats. vi) Theorems etc. The words “Theorem”, “Lemma”, “Corollary”, “Proposition” and ...
21 views

### Theorem name and number

I want a code that can provide a link (ref) to a theorem with text that follow those conditions: If the theorem have a name (like \begin{theorem}[name]\end{theprem}), the text will be name Theorem. ...
21 views

### cleveref: How reference several items in an unnumbered theorem-like environment?

I want the output from the command \cref{prob:third-problem,prob:fourth-problem} on the first line of the content of the first chapter — the one whose output (with two ??s) is marked in the ...
1k views

### How to nicely split proofs into different parts?

I often break long proofs into smaller pieces, in order to make it easier to read and understand. I'm doing that by adding a fbox with "Part X: ...". However, this doesn't work out very well all the ...
71 views

### How to obtain non Italic theorem text

Please believe me this is not an Off Topic in TEX. Wait and see that I SEARCH the web and go deeply into questions for this but nothing found: Can we equip ‎AtBeginEnvironment with two option ...
34 views

### Distance of footnote number from theorem title

Consider the following MWE: \documentclass{article} \usepackage{graphicx} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amsfonts} \newtheorem{theorem}{Theorem} \begin{document} \section{...
24 views

### Beamer: Typesetting theorems in upright font *and* numbering them

I want to number my theorems and typeset them in the upright font. I know there are the options "numbered" and "normal font" for the theorem template, but I can't use both at the same time. Is there ...
4k views

### How can I get a line break in a theorem headline?

I have a theorem title, which is longer then the page width. How do I get the title in two lines? \begin{theorem}[this title is to long for one line] the theorem \end{theorem}
2k views

### Cleveref with counters with same name

I am trying to use the cleveref package. I have the following counters defined (hopefully this is the right way to do it!) \newtheorem{thm}{Theorem}[section] \newtheorem{lemma}[thm]{Lemma} \...
36 views

### Restate Theorem with given theorem setup

I am given the follwoing theorem setup, which I have to use. \numberwithin{equation}{chapter} \newtheorem{theorem}{Theorem}[chapter] \newtheorem{definition}[theorem]{Definition} \newtheorem{...
43 views

### Using ntheorem with amsbook

I'm working with an amsbook document, and I want to use the ntheorem package. This is unsurprisingly causing a complaint with the amsthm package implicitly loaded for the amsbook documentclass. There'...
32 views

### Reference to List Items in Theorem Environment

I'm trying to implement and customize the solution that admits cross-referencing in the theorem environment. The following attempt is extracted from my thesis template (so some packages might not be ...
2k views

### Reference to List Items in Theorem Environment with Label Type “Theorem”

I'm trying to set up references to list items in theorem environments. Using the thmtools and the cref-package I am able to reference theorem environments, such that the theorem type, e.g. theorem, ...
42 views

### Problems with label and cref

I am having some (probably) beginner's problems with labeling I use: \newtheorem{myprop}{Proposition}[subsection] \newtheorem{mydef}{Definition}[subsection] \newtheorem{myrmk}{Remark}[subsection] ...
138 views

### Create a claim environment for nested claims inside theorem proofs using thmtools

Consider the following declarations: \usepackage{amsmath, amsthm, amssymb, thmtools} \declaretheorem[numberwithin = section]{theorem} \declaretheorem[sibling = theorem, style = definition]{...
60 views

### How to get \ref to write “Theorem 5” or “Lemma 5” Instead of just “5”?

I sometimes change something from "\begin{theorem}" to "\begin{lemma}" (I have my own commands: \newtheorem{theorem}{Theorem} and \newtheorem{lemma}{Lemma}). But if I just write \ref{theorem1}, then ...
29 views

### Wrong reference after resetting the counter of Theorems

I reset the theorem counter in every chapter by \setcounter{theorem}{0}. All theorems are labeled by unique names. By using, for example, \ref{theoremchapter5number1}, the number that is displayed is ...
31 views

### Corners for theorems and definitions [duplicate]

I was wondering if there is any package or a simple snippet I could use to get the kind of corners shown in the picture for theorems and definitions. Thanks in advance.
31 views

### Why isn't \def working?

I just learned about the "amsthm" package and I am trying to learn how to use it. As I understand it this package already has some predefined environments such as "def", but I can make new ...
29 views

### Normal text in Theorem?

How do I write normal text just for a small portion in the Theorem environment? Ive tried \text{} and nothing. Any suggestions?
19 views

### How to create sub-assumptions within an assumption chunk and be able to reference them via labels?

I currently am trying to create an Assumption with 4 parts to it. I have first declared the assumptions chunk, then enumerated A,B,C, and D within. I am then trying to create reference labels for them....
50 views

### Vertical space in theorem environment closed by an equation containing fractions

With the amsart document class, if a theorem ends with an equation containing fractions, then the vertical spacing between the theorem and the next line seems too small. Here is a working example: \...
41 views

### Label and sublabel for theorem

In my text file, I am using a theorem environment (from the amsthm package), that contains two parts (for two different cases). The theorem is often referenced as a whole, so I need a global label, ...
10k views

### Beamer newtheorem translation

Consider the following MWE: \documentclass{beamer} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \uselanguage{Spanish} \languagepath{Spanish} ...
57 views

### Reproduce the vertical margins below the environment

In short, I would like to reproduce the vertical margins below the definitions and double bar below the remarks as shown in the following picture: I've already browsed the posts without any solution. ...
32 views

### Change numbering in MD Framed

I want to change the numbering using mdframed. The code is: \mdfdefinestyle{theoremstyle}{% linecolor=black, linewidth=1pt, frametitlerule=true, frametitlefont=\sffamily\bfseries, ...
41 views

### How can I write a “definition” like this?

The theorem of the picture is written in bold, I mean: Theorem 1.2 (Pythagorean theorem). I want to write a definition with that format. Also, it would be better if it's written with small capitals. ...
46 views

### Referencing labels created for theorems inside a subtheorem environment links to the theorem before

I am currently trying to create subtheorems that are linkable. I referenced the code put forth by another post, here: How do I get sub-numbering for theorems (Theorem 1.A., Theorem 1.B., Theorem 2.)? ...
22k views

### Pushing \qed to the right within a displayed formula

In my own custom theorem environment, I'm using the \qed command to create a white box. This works wonderfully when the theorem ends with a regular paragraph -- the box is pushed to the right where it ...
63 views

### Indenting all lines in a theorem environment

I have made the following theorem environment \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \newtheoremstyle{proposition} {.5\baselineskip} {.5\baselineskip} {} ...
25 views

### How to define an environment for a boxed and named theorem?

The environment below gives a boxed theorem with normal font (non italic text). \documentclass[11pt]{article} \usepackage[tikz]{mdframed} \usepackage{amsthm} \newtheorem{thm}{Theorem}[section] \...
48 views

### theorem word in italic not in bold

I want use theorem of LaTeX but I don't want the word "theorem" in bold. After I want like image in italic but not in bold. How set this? I only want change for observation and don't want change all "...
104 views

### Ultimate proof at the end/in appendix: different sections, with references to proof/theorem, restate, and synctex

I saw lot's of different posts/answers to put the proof at the end, but none of them fully convince me. Indeed, I'd like to have the following: a way to put the proofs in different sections: some ...
107 views

### Define double environments

TLDR; How can I define a "double" environment like in theorems/proofs (with an optional proof)? I'm defining a small library that is supposed to behave more or less like theorems/proof environments (...
35 views

### Change the font size of the word “Theorem”

What should I do if I want to change the font size of the word "Theorem" but not of the body of the theorem? It doesn't seem that \newtheoremstyle has a parameter for this. It is probably a rather ...
3k views

### How do I show the labels of theorems, definitions, etc

I'm using the package showlabels which has the effect that when I label something with \label{thing1} the thing1 gets typeset in the margin of my document next to where I put the label. This works ...
2k views

### Counter for tcolorbox

I would like to create a boxes for theorem definition proposition to looks like the following image ( but with counter for each box ) : I tired with tcolorbox Here's my code: %this is created ...
29 views

### No vertical spacing between Theorems in Beamer

How to set no vertical spacing between Theorems in Beamer? Since the following code produce some vertical spacing above and below each theorem. \documentclass{beamer} \usetheme{Berlin} \begin{...
40 views

### How can I reference item (i) in Theorem 1.1 such that it displays “Theorem 1.1-(i)”?

Consider the following example: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath, amsthm, amssymb, mathtools, thmtools} \usepackage{hyperref, cleveref} \usepackage[shortlabels]...
66 views

### Using restatable with a custom environment

I want to use the restatable package with a custom environment. It almost works except when I restate with \name* it does not use the original label. Before you ask, I'm not using newtheorem because ...
50 views

### Typesetting lemmas in latex with shadethm package

I am trying to get the shadethm package to typeset lemmas in shaded boxes, but am failing so far. The following document produces \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \...
31 views

### Hanging indent in an amsthm theoremstyle [duplicate]

I'm aiming to have a theoremstyle which has hanging indentation, where all lines after the first line are indented by some amount of space. I've searched for previous answers to similar questions, but ...
42 views

### Extend theorem header with title by citation

How can I redefine the theorem style, so that I can provide two "optional" arguments (I'm fine with using \begin{Definition}[title]{} if no citation is wanted.) I guess I'm quite flexible with the ...
47 views

### How to automatically label using theorem counter?

Someone please help me! I have some custom environments and I want to label them according to theorem counter. Means, that I get a numbering like Def. 1.1, Thm. 1.2 and so on. Right now, I have to ...