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.

0
votes
0answers
23 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
26 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 ...
-1
votes
0answers
59 views

How can I write this in LaTeX like image?

I'm new to LaTeX. This photo is part of my assignment, but I couldn't. How can I write like image(It has to be the same)?
0
votes
0answers
25 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
25 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
47 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
36 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, ...
2
votes
1answer
38 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
27 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
39 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.)? ...
1
vote
2answers
59 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
21 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
43 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
96 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 (...
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
32 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 ...
0
votes
0answers
26 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
36 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]...
2
votes
2answers
37 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} \...
1
vote
1answer
61 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 ...
0
votes
1answer
27 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 ...
3
votes
1answer
40 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 ...
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 ...
2
votes
1answer
76 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 ...
1
vote
1answer
49 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
43 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: ...
3
votes
1answer
106 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
71 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 ...
2
votes
1answer
55 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
49 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: \...
1
vote
1answer
66 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{...
5
votes
2answers
102 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]{...
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 ...
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. ...
4
votes
1answer
86 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*}{...
3
votes
2answers
51 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}...
1
vote
1answer
205 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
25 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, ...
0
votes
1answer
45 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
18 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} \...
0
votes
1answer
42 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 ...
1
vote
1answer
61 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 ...
3
votes
1answer
34 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", ...
2
votes
1answer
83 views

Creating a specific theorem style

I was wondering how to create a theorem environment similar to the following example: Specifically, the environment should resemble the box that contains "Claim -- The function g is linear". This ...
0
votes
0answers
12 views

Re-calling/re-printing a theorem from an external document [duplicate]

For a manuscript I need to include theorem proofs as supplementary material. So I mention the theorem in the main file and I need to re-print the theorem in the supplementary material with the same ...