{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.

learn more… | top users | synonyms

14
votes
2answers
665 views

How to create *local* labels/refs in LaTeX?

Concise question: Is there any way to limit the scope in which a \label is visible to a \ref? Motivation: My current goal is to create a rather large document, containing many exercises and their ...
4
votes
5answers
102 views
+50

Marking the end of a definition

I'm using the amsthm package to define a definition environment as follows: \theoremstyle{definition} \newtheorem{definition}{Definition} To my surprise, this provides barely any typographic ...
1
vote
1answer
64 views

How can I add this code in local layout in lyx

I want to add this code in local layout in lyx: \usepackage{multicol} \usepackage{etoolbox}%إطار النظريات \usepackage{blindtext}% \usepackage[theorems,skins,breakable]{tcolorbox}% %% ...
2
votes
1answer
28 views

How to print out only statements (theorems, lemmata, etc) from a tex file?

Suppose that I have a long tex file with a lot of things. In order to read the logic structure only, I want to print only text inside \begin{theorem}..\end{theorem} and \begin{lemma}..\end{lemma}. ...
2
votes
1answer
29 views

How to remove “.” in the definition [duplicate]

I want to add a definition in my LaTeX file. However, I have a dot after the word definition. How can I remove it? I want: Definition Here is the definition NOT Definition. Here is the ...
2
votes
1answer
23 views

How to align theorem cases with table?

apologies if this is already answered somewhere, but I can't seem to find it (or how to ask the question properly). I have a theorem with several cases. In each case I'd like to align my assumptions ...
1
vote
1answer
28 views

Easylist is incompatible with theorem environment

I noticed that the package "easylist" is incompatible with theorem environment. Here is an example. There is unusual space at the left of theorem 1. Could you fix this strange behavior? This is a ...
0
votes
1answer
16 views

Can I put a figure with caption and label inside a theorem (newmdtheoremenv)?

The following MWE doesn't compile if I uncomment the commented lines: \documentclass[a4paper,10pt]{book} \usepackage{amsmath} \usepackage{mdframed} \usepackage{graphicx} \usepackage{xcolor} ...
3
votes
1answer
60 views

How to Make Claims and Proofs start on the same page if possible?

I have a document where sometimes proofs start on a separate page than where their associated claims were stated. Is it possible to force is so that (unless the statement of the claim is more than ...
2
votes
1answer
16 views

Issue Passing an Optional Argument through Theorem Name with thmtools [duplicate]

I am using thmtools to create theorems, and I sometimes want the theorem name to include math symbols. In this particular project, I have used xargs to create a command that uses an optional argument, ...
2
votes
1answer
75 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 ...
6
votes
2answers
24 views

Typesetting a slight variation to a theorem by adding a * after the numbering of the theorem

Suppose I have a theorem with numbers and everything like this: Theorem 1.2.3: Blah Blah Blah... Sometimes you want to do a slight variation to the same theorem, or write it with a different ...
0
votes
1answer
30 views

Frame only around theorem in scientific two column poster

I am creating a poster in beamer, I would like to have frame only around my theorem, not to the end of the page (especially having two columns), if anyone know how to modify the code to do that? ...
1
vote
1answer
26 views

Custom QED Alignment with thmtools

I am trying to create a custom theorem format using the thmtools package. However, I am running into problems with the alignment of the QED symbol. When I end the theorem with normal text, it placed ...
2
votes
1answer
35 views

How to renumber a theorem environment with mdframed package?

I have the next document, which compiles fine. I want to change the numbering of theorems according to the number of section or chapter (view image). I wrote: ...
0
votes
1answer
33 views

Recall a theorem in a different section of a chapter

I am aware that this question has been asked before and I did refer to the previous answers given unfortunately I keep getting errors when I compile. Here's my minimum preamble ...
2
votes
1answer
30 views

How to insert a paragraph (which works only in the “ltxmdf” class) into a class “book” document?

I have the next document (in ltxmdf class ), which compiles perfectly (view image). I want put in a document book class. ¿is posibble?. I've already tried but get 4 errors. How do I change the ...
4
votes
1answer
36 views

(AMS)TeX proclaim environment

AMSTeX has a \proclaim macro that goes like this: \proclaim{Theorem 10} Text of the theorem \endproclaim which results in Theorem 10. Text of the theorem. In other words, this environment adds a ...
5
votes
1answer
287 views

Theorem Numbering in beamer

I have separate tex files for my different lecture slides. I am trying to number my theorems by the lecture number. I am using the following: \setbeamertemplate{theorems}[numbered] But it starts ...
2
votes
1answer
46 views

Custom theorem numbering italicized

In Custom theorem numbering @egreg gave us a way to put custom labels on theorems. However, when I compile my latex document with that new command, the text of the theorem is in regular text. If I ...
0
votes
0answers
24 views

Relation between \cref and \newtheoremstyle

In two previous questions (i.e. Distinguishing \ref and \cref through different colors, and ''Proof of Theorem x'' header trough modification of \ref) I addressed some problems I had with hyperref ...
3
votes
2answers
40 views

Equip a theorem with margin bar

Using PDFLaTeX, I am trying to equip theorem-like environments with a colored bar in the outer margin of the document. These theorems are already using the (nice) thmbox formatting. After trying the ...
1
vote
0answers
30 views

\newtheoremstyle above space does nothing in beamer

I would like to change the space above and below a \newtheorem in beamer. I tried to use \newtheoremstyle, but nothing happens. Here is an example showing above space set to 3000pt which has no effect ...
1
vote
1answer
98 views

Why doesn't my \newtheorem definition of the “definition” environment work?

This is not my command but I copied from some other Latex help website. But when I write \begin{definition} YOLO \end{definition} I get the error message \usepackage{bm} \usepackage{xcolor} ...
7
votes
2answers
81 views

Why don't I get non-italic, normal font inside theorem environment using newmdtheoremenv and mdfdefinestyle?

The theorem text is written in italic even if I set font=\normalfont\normalsize. Maybe related to that, Portuguese "-ção" is not properly recognized in that text. \documentclass[a4paper,10pt]{book} ...
0
votes
1answer
34 views

How can I create a problem environment where I specify the problem number?

The ams package's \newtheorem{prob} doesn't work here (without resetting the counter every time I want to skip a problem}. It would be nice if I could use something like \begin{prob}{2-5} Some ...
0
votes
1answer
92 views

how to add begin lemma, corollary, theorem in my template?

I am using INFORMS template and it has only \begin{Proposition} option, but I want to add lemma, corollary, theorem etc. How can I do this?
5
votes
1answer
5k views

Theorem/Definition/Lemma/etc independent numbering in Lyx

I am using the Koma-script book class in Lyx. By default, theorems, definitions, lemmas, and so on, follow the same numbering. So after "Theorem 1" comes "Definition 2", then "Lemma 3", and so on, ...
2
votes
1answer
20 views

Fraction in first line of Example overlaps onto Example header

I'm writing an example where the question says to find what the Legendre symbol of a few numbers are equal to. The theorem style I'm using is 'nonumberbreak' as I like to have my examples start on ...
2
votes
1answer
47 views

Definitions and theorems in beamer

I have several questions regarding the use of definitions and theorems in the beamer package. Here is an example: \documentclass[mathserif]{beamer} \usepackage{graphicx} \usepackage{tcolorbox} ...
2
votes
1answer
40 views

Auto-generating labels for theorems

I'm using package amsthm to define a "Definition" environment as follows: \theoremstyle{definition} \newtheorem{definition}{Definition} In brackets, a name for the definition is supplied: ...
3
votes
1answer
108 views

Eyeglasses as item bullet

I would like to Customizing lists itemize and title of theorem to looks like that : as usual in order to Switch chip, size and color for itemize i use \usepackage{pifont} or we can use Math ...
3
votes
1answer
72 views

Unintended Numbering of Theorems

It is difficult for me to put a good MWE as I do not know what supporting packages are. Anyway, below are the code: \documentclass[11pt]{report} \usepackage[inline]{enumitem} ...
0
votes
1answer
29 views

Use upright font (no italics) with svjour3 (springer)

I cannot find how to do that automatically for all the theorems in my latex document with the class svjour3 (provided by Springer). I use amsmath too in my document.
4
votes
2answers
175 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 ...
6
votes
1answer
62 views

Having regular text within a lemma

I want the following lemma: Given k\"ahler metric $g_{\al \overline{\be}}$ with associated Ricci curvature $ \text{Ric} =R_{\al \overline{\be}}$ the Ricci form defined by \begin{equation*} \p ...
2
votes
2answers
34 views

How to produce theorems in which the color of heading and body of the theorem my differ?

I have tried the following code, \documentclass{article} \usepackage{amsthm,amssymb,xcolor} \theoremstyle{plain} \newtheorem{thm}{Theorem} \begin{document} ...
3
votes
2answers
179 views

amsthm in clean

I am looking for a good latex template for my phd. I did not like the classicthesis because of the huge margin and the collapsed table of contents. I found the cleanthesis to be just what I was ...
2
votes
1answer
28 views

How do I vertically align a theorem environment at the top?

The following code renders the picture below. \documentclass[oneside,12pt]{book} \usepackage[a4paper]{geometry} \usepackage{microtype} \usepackage[T1]{fontenc} \usepackage{enumitem} ...
3
votes
1answer
77 views

How to equalize the spaces above and below the theorem?

When I use the following code, \documentclass{amsbook} \makeatletter \def\ps@spheadings{\ps@empty \def\@evenhead{\normalfont\scriptsize \rlap{\thepage}\hfil \leftmark{}{}}% ...
4
votes
2answers
2k views

Resetting newtheorem counter

This one is probably straightforward, but I'm not missing something with the newtheorem environment and using newcounter. I would like a new environment on its own counter like "Environment M.1", but ...
1
vote
1answer
23 views

beamer - Theorem - Extra (descriptive) text after (…)

I want to put some extra text (green color text in the picture) after the Theorem (...), NOT inside the parenthesis, but still at the same (top) line. How to set the options to achieve this? Please. ...
2
votes
1answer
33 views

How to prevent \parpic from cutting into every paragraph inside a proof environment?

When using \parpic to put an image next to a short theorem it will cut into every paragraph in the next proof environment if the picture spans beyond the theorem. The following MWE and its output ...
2
votes
1answer
43 views

cleveref and amsthm — incorrect environment name

I have theorem environments that have the same theoremstyle which I define through amsthm. I want them all to share the same counter. This way, a lemma that follows theorem 1.2.6 will have the number ...
1
vote
2answers
30 views

How to remove the dot in the proof environment (using ntheorem package)?

\begin{proof} something \end{proof} produces Proof. something and I want Proof: something The solution suggested here produces an error if one uses the ntheorem package instead of amsthm ...
4
votes
2answers
1k views

AMS theorems in table of contents

I am using the amsthm package. I defined some enviroments like \theoremstyle{plain} \newtheorem{theo}[subsection]{Theorem} \newtheorem{satz}[subsection]{Satz} the numbering works as expected, ...
0
votes
1answer
25 views

rename theorem environment to proposition

How can I rename the theorem environment to proposition? In other words, I would like to print: Proposition 1 instead of Theorem 1/Lemma 1, etc Thanks in advance PS: I am using koma-script article ...
3
votes
1answer
44 views

Unable to get a framed title using mdframed

\documentclass[12pt,twoside,notitlepage,reqno]{amsbook}% \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{xcolor} \usepackage{thmtools} ...
0
votes
0answers
15 views

Shadowboxing theorem environment

This is how I would like to redefine my theorem environment. %\newenvironment{sbtheorem} % {\shabox{ \begin{minipage}{0.8\textwidth} \begin{theorem}} % {\end{theorem} \end{minipage} }} ...
1
vote
1answer
22 views

mdframed: bug (with roundcorner) when a style for theorem is used within an environment without topline, rightline, etc

When a style for theorem is used within an environment and that this environment a line but topline=false, rightline=false, etc. then some attributes of the theorem are not used. Here, an MWE for ...