Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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
vote
1answer
32 views
+50

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.)? ...
44
votes
6answers
21k 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 ...
1
vote
2answers
55 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} {} ...
0
votes
0answers
15 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] \...
2
votes
2answers
41 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 "...
2
votes
1answer
59 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 ...
2
votes
1answer
94 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 (...
0
votes
0answers
35 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 ...
0
votes
0answers
31 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 ...
3
votes
1answer
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 ...
10
votes
2answers
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 ...
0
votes
0answers
23 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{...
1
vote
3answers
34 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]...
1
vote
1answer
58 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 ...
2
votes
2answers
34 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} \...
0
votes
1answer
20 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 ...
1
vote
1answer
135 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{...
3
votes
1answer
38 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 ...
1
vote
1answer
34 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 ...
36
votes
3answers
5k views

How to place all proofs automatically in appendix?

Can I place all proofs to theorems in appendix automatically? Usually proofs are written in the LaTeX codes immediately after the theorems. Without physically moving proofs to appendix, how can I ...
1
vote
1answer
41 views

Problem with expand, all restatable theorems points to the same theorem

I'm trying to manually do a small script that let me put proofs at the end, restate theorem... But I'm having some troubles with the restate, because all the theorems have the same name, so when I ...
1
vote
1answer
48 views

How to cite a theorem when its order (and thus number) keeps changing

The \begin{theorem} command will automatically order theorems as they appear in the file. I am currently writing a paper and as I edit the paper the order of the theorems keep changing. However, I ...
2
votes
1answer
39 views

How to remove the unexpected vertical space in the theorem environment?

When I use \pause in \[ \] formula in the theorem environment, I get an unexpected extra space below the formula; see Theorem: Pause (formula). Now I remove it using \vspace{-0.60}cm, as in Theorem: ...
0
votes
0answers
22 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]{...
1
vote
1answer
60 views

Underline Theorem's 'Theorem' part, not the title

I would like to have two different styles of theorems in my LaTeX document to differentiate between original and unoriginal work. For one I would like the 'Theorem' underlined and the other I would ...
5
votes
2answers
91 views

problem with theorem, tikzpicture and center environment

I use a dialog-bubble style for some theorems, by using the code below, that works fine. \documentclass[a4paper,11pt,twoside]{book} \usepackage[a4paper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{...
2
votes
1answer
47 views

How to insert theorems to tcolorbox?

I trying to insert a theorem to tcolorbox without title. Here is MWE (with LyX): % Preview source code %% LyX 2.3.2-2 created this file. For more info, see http://www.lyx.org/. %% Do not edit ...
4
votes
1answer
36 views

Correctly order float counter (perpage.sty) while sharing eqn/thm counter

Sharing float (fig) and thm counter can be done with \newtheorem{theorem}[figure]{Theorem}. Correctly ordering float (fig) counter based on actual location in the PDF (as opposed to location in ...
2
votes
1answer
43 views

Reference Subpoints of Lemma

I have Lemmata consisting of several subpoints (basically a collection of similar formulas) and I want to reference these subpoints in text by "Lemma 1 (1)". So far my code looks like this: \...
64
votes
2answers
227k views

Theorem/Definition/Lemma problem — Numbering

I am trying to work on the numbering of the theorems/definitions/lemmas etc., and I have some problems with the numbering. I would like the theorems, propositions, corollarys, definitions, ...
4
votes
2answers
231 views

Section with answers created automatically

My question is quite similar to this one, but I think a slightly different approach is needed. I have a document with a lot of exercices and I'd like to add aswers and hints to them in a certain ...
1
vote
1answer
54 views

How to redefine proof?

I want to define a new proof environment. I have defined it as below. \documentclass{article} \usepackage[section]{placeins} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{...
0
votes
0answers
8 views

Change reference behaviour of newlist depending on theorem environment

I am using ntheorem and cleveref, and I want to reference enumerate environments inside theorems, like the following: \documentclass{article} \usepackage{ntheorem, cleveref, enumitem} % Define ...
3
votes
1answer
145 views

Automatic theorem list

In the accepted answer to Code between \begin{environment} and \end{environment} stored in an array it's shown how to create an automatic list of theorems using expl3 syntax. However the \...
5
votes
1answer
83 views

Print all theorems

\documentclass[french]{book} \usepackage[french]{babel} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \begin{document} { \newtheorem{theorem}{Théorème} \newtheorem*{theorem*}{...
2
votes
1answer
24 views

How to choose if theorem numerote

I'm currently working on a layout that is divided in article and alinea. Basically I've two functions. In each functions there is an environment dedicated to show the texts in a certain layout. ...
0
votes
1answer
28 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{...
11
votes
2answers
933 views

Intelligently Numbering “remarks” only when multiple are made

Problem. I am using the amsthm package, and have remarks after theorems. If there is only one remark between two theorems, the remark should not be numbered. If there are multiple remarks between ...
6
votes
2answers
816 views

Hide content to show later

My question appeared about this egreg's answer. I have a list of exercise-answers but I don't want to show the answers immediately but after till I'll pull with a command and fetch all the answers ...
3
votes
2answers
50 views

How can I insert picture into environment Problem and align it?

I am trying insert a picture into environment Problem and align it like this I tried \documentclass{article} \usepackage{amsmath} \usepackage{enumerate} \usepackage{amsthm} \theoremstyle{definition}...
23
votes
1answer
21k views

Numbered Definitions, Theorems in beamer

How to get numbered Lemmas, Definitions, Theorems and so on in beamer?
1
vote
1answer
155 views

How to define new environment, using proof-environment

I'm using the package amsthm and I like to define my own proof environment, where the title proof is replaced by Beweis. So far, I tried \newenvironment{bew}{\begin{proof}[\textsc{\textbf{Beweis:}}]}...
2
votes
1answer
24 views

How to get Proof of Theorem with package phfthm

I am trying to use the package phfthm to have a proof with the indication Proof of Theorem 1, and the like. I am almost exactly using the example provided in the package documentation, at page 15, ...
4
votes
1answer
411 views

tcolorbox theorem numbering

\documentclass{article} \usepackage{amsmath,amsthm,amssymb,parskip} \usepackage{graphicx,float,hyperref} \usepackage[margin=1in]{geometry} \usepackage{titling,multicol} \usepackage{tcolorbox} \...
0
votes
1answer
41 views

\listoftheorems and its alternative with tcbtheorems not displaying,

i tried to to get a list of definitions (theorems) at the end of my document in the appednix. Unfortunality, the list is empty. I tried to use the description here but it does not work (for me). The "...
1
vote
1answer
17 views

How to renumber a property in a chapter, using lowercase letters instead of Numbers

I want to insert several new propositions in my second section,and name it 'Prop s','Prop t'...,I hope that anyone can help me :) Here is my code. \documentclass{article} \usepackage{amsthm} \...
1
vote
1answer
59 views

Problem solutions at end of chapter

I'm writing a document with multiple chapters. Each chapter has problems and each problem has a solution. I want some of the solutions to be right after the problem and the others to appear at the end ...
0
votes
1answer
40 views

How to add vertical spacing between definitions

I'm trying to add vertical space between definitions, theorems, etc. For example, if set up something like: \begin{definition} blah blah blah \end{definition} %%%should be space here but there's ...
3
votes
1answer
33 views

How can I have a \newtheorem… environment refer to its thmnote?

I'm currently using \newtheoremstyle to produce the following output: Question: How can I easily modify my MWE (see below) so that the a's in my QED boxes say "Name of Thing", "A Different Thing", ...
14
votes
5answers
5k views

Is it possible to use the enumerate/itemize environment within the proof/remark environment in a nice way?

I wish to use the enumerate/itemize environment within the proof/remark environment, but when I do this the first number/bullet-point is on the same line as the word 'Remark'/'Proof' indented to the ...