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
18
votes
1answer
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} \...
0
votes
1answer
33 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{...
0
votes
2answers
39 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'...
2
votes
1answer
26 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 ...
9
votes
4answers
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, ...
1
vote
1answer
39 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] ...
3
votes
1answer
133 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

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
27 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 ...
0
votes
1answer
26 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.
0
votes
0answers
29 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 ...
0
votes
0answers
26 views

Question regarding a special “keyword”

I wold like to know how do I get that "preposition" in bold. Is there a special command? I've seen it written like "definition" also. Thanks in advance!
0
votes
0answers
27 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?
1
vote
1answer
13 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....
4
votes
1answer
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: \...
0
votes
1answer
38 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, ...
7
votes
2answers
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} ...
2
votes
1answer
53 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. ...
0
votes
2answers
29 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, ...
0
votes
1answer
40 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. ...
1
vote
1answer
45 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.)? ...
45
votes
6answers
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 ...
1
vote
2answers
61 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} {} ...
1
vote
0answers
22 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
44 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
87 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
102 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
34 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
27 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
37 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
63 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
42 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
30 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
139 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
41 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
38 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
44 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
50 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
44 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: ...
1
vote
1answer
79 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
103 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
59 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
53 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
232k 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
238 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
72 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{...