Stack Exchange Network

Stack Exchange network consists of 174 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
12 views

Keep theorem heading up when followed by centered content

(I am sure this question has already been asked. I just couldn't find it.) \documentclass{article} \usepackage{amsmath, amsthm, tikz} \newtheoremstyle{solutionstyle} {12pt}{8ex}{\normalfont}{}...
0
votes
2answers
36 views

Problem with theorems numeration

Good morning members of the community. I am preparing a document and the same problem of enumeration in the theorems always arises. In this case I do not know how to do so that the first proposition ...
2
votes
1answer
22 views

Problem with definition/examples and theorem numbering

I have a problem with my theorem and examples/definitions numbering. For my theorem environment I used the mdframed packages but for my definitions/examples I used \newtheorem{}{}. Here you can see ...
2
votes
0answers
51 views

How do I get a definition and theorem environment like these?

I tried using the mdframed package but I failed, how can I get that output?
1
vote
1answer
40 views

Same counter for different tcolorbox theorems

I have two different types of tcbtheorems: theorem and lemma, defined as below. \newtcbtheorem[number within=section]{theorem}{Theorem}{some config options}{thm} \newtcbtheorem[number within=section]{...
2
votes
2answers
76 views

Create a new environment with the same numbering as \newtheorem

The setup \theoremstyle{definition} \newtheorem{definition}{Definition}[section] \theoremstyle{plain} \newtheorem{theorem}[definition]{Theorem} \newcounter{nremarkctr} \newcommand*{\nremarkname}{...
0
votes
1answer
43 views

Change theorem color using theorem notes in the amsthm package

When defining a new theorem style in the amsthm package, you can specify what's called (according to http://web.mat.bham.ac.uk/R.W.Kaye/latex/thm.pdf) a custom head specification. In there, you can ...
2
votes
1answer
35 views

Automatic theorem list

In my need of writing a list of theorems I wrote the following code: \documentclass[b5paper, twoside, 12pt]{memoir} % packages \usepackage{amsmath, amsthm, fancyhdr, geometry, hyperref, palatino, ...
1
vote
1answer
27 views

Repeat content of environment

Sometimes you want proofs of theorems to appear in an appendix. The appendix must then include the theorem claim exactly as it was stated in the main body of the paper add a proof to it. It would ...
3
votes
2answers
56 views

Customize counter using tcolorbox?

By now I've spend a lot of hours to find a way to customize the "Counter" inside tcolorbox package. I wanted to put a definition in a tcolorbox as below. In order to get this formation for ...
0
votes
1answer
25 views

beamer.sty: modify block template

I would like to redefine a detail of the block templates for Beamer's theorem environment. The title should contain the additional text not in rounded brackets, but in another format. The fine manual ...
4
votes
2answers
57 views

Theorem numbering in starred sections

Let me start with an MWE which illustrates my question. \documentclass{book} \usepackage{amsthm} \newtheorem{theorem}{Theorem}[section] \begin{document} \chapter{Some title} \section{Another title}...
0
votes
1answer
18 views

Organize counter (newtheorem)

I'm writing some notes and I have a problem with the organization. I defined the theorems as follows: \documentclass[12pt,a4paper]{book} \theoremstyle{plain} \newtheorem{teo}{Teorema}[chapter] \...
1
vote
1answer
52 views

Writing a theorem inside a theorem

I want to write couple of theorems inside a main theorem body. In particular I want to write something like the following: I tried using the command \newtheorem to create Main Theorem and then used ...
3
votes
1answer
53 views

Background color of the title of a theorem, including its numbering

I am starting with a classical theorem environment from amsthm, it has the numbering I want. What I would like is to color the background of the name of the theorem. I have tried to do a color box in ...
1
vote
0answers
32 views

different types of exercises, theorems etc [closed]

I need to categorize theorems like School Book Theorem, Important Theorem, Interesting Theorem etc with different numbering. The same at the exercises. How can I do it?
1
vote
0answers
38 views

Tcbtheorem with crosslinking

I had created a document with problems. Some feature I implemented is a click on the problem number, which leads to the answer at the end of the document and vice versa (look MWE). My ...
2
votes
1answer
29 views

Indented theorem and proof environemnts

I would like to be able to recreate the following theorem style, where the main body of a theorem/proof/definition etc. is indented by a variable amount. I would also like to end a theorem proof with ...
5
votes
3answers
92 views

Missing vertical space around a theorem environment when using enumitem

When a theorem environment (defined via amsthm) is used inside of an enumerate environment, then some vertical space around the theorem environment seems to be missing. \documentclass[a4paper,10pt]{...
3
votes
1answer
48 views

Numbering sublemmas

I would like to have sublemmas numbered after the corresponding lemmas, which in turn would be numbered after theorems, like this: Theorem 2.1. 0=0. Lemma 2.2. 0=1. The proof of Lemma ...
1
vote
2answers
50 views

Numbering a,b-variants of assumptions (or other theorem-like environments) without using `amsthm`

I would like to have variants of assumptions (sub-assumptions, if you like) labeled and referenced as 1a, 2b, etc., without using the amsthm package which is known to conflict with the publisher's ...
1
vote
1answer
30 views

Delete some Theorems without destroying the numbering

I wrote some math lecture notes with ongoing numbering of definitions and theorems. Now i want to create a shorter version to use as handout, without proofs, examples.. But if i remove some, the ...
0
votes
0answers
12 views

Why does my proof not indent new paragraphs? [duplicate]

Sorry if this is a repeated question - I have been unable to find a solution on stackexchange. Here is my code \documentclass[12pt]{article} %\usepackage[margin=1.5cm]{geometry} \usepackage{...
3
votes
1answer
44 views

How can I change the space between lines in theorem?

I am using the amsthm package. I need to change the space between the lines of the paragraph in the body of the all theorems only in the theorem environment and not in the other parts of my report.. ...
2
votes
1answer
20 views

Is there a way to reference theorems which are inside intertext commands?

I am trying to reference a theorem that is inside an intertext: \documentclass{article} \usepackage{amsmath,amsthm} \newtheorem{theorem}{Theorem} \begin{document} \begin{align*} \intertext{\begin{...
2
votes
1answer
33 views

Regular non-italic font in theorems

What can I do if I want a regular non-italic font character in the theorem environment? Neither text{} nor textit{} seem to work, and similar questions all ask about changing the style of the entire ...
1
vote
1answer
43 views

Consecutive numbering in theorem enviroments, inside framed boxes

I want to write propositions, lemmas, theorems, corollaries inside the chosen boxes and definitions NOT inside boxes, all of them with consecutive numbering. I searched for similar posts and I found ...
2
votes
1answer
21 views

Italics in theorem environment only for text but not for equations

I have got the following problem, I would like to keep the text in italics in my theorems but to not allow for italics in the equations (math mode, align, equation environments etc.) inside the ...
1
vote
0answers
20 views

How to get correct 'nameinlink' in 'cleveref' when using 'newtheoremstyle' and custom numbering for lemmas and similar environments? [duplicate]

I am using slightly customized theorem styles and have defined the theorem environment to follow the section numbering and lemmas, propositions, and conjectures environments to follow the theorem ...
1
vote
1answer
16 views

How to properly use the align environment within a theorem environment in Tex while handling whitespace issues?

I currently am trying to use the align environment to display equations within a lemma using a theorem environment. My code goes like: \documentclass[10pt]{article} \usepackage[utf8]{inputenc} \...
0
votes
1answer
30 views

Cleveref equation to match italic local style.

This question is similar to \eqref in italic math environnment, but I think all the cross referencing tools from cleveref justify a separate question. I would like cleveref to produce the equation ...
3
votes
1answer
147 views

Auctex: Prompt for required arguments when Auctex inserts a theorem environment?

So I have defined a theorem environment/style in a separate structure.tex file, and I want to add this theorem environment to the set of Auctex environments when using C-c C-e. However, I also want ...
1
vote
1answer
25 views

Inserting a figure after a numbered element

The following code produces a figure at the top of the page, and a heading 'Example 1.1.2.' just below the figure. How can it be done to place the heading above the figure? Have also tried with \...
0
votes
1answer
13 views

Reading Theorem counter from another file

I am preparing a two part document (two separate TEX files, two separate PDF files), where the second part is a continutation of the first part. As such, numbering of Theorems, Lemmas etc. are resumed ...
2
votes
2answers
25 views

Additional Vertical Spacing When Using \begin{quote} \begin{thm}

I wish to place one of my theorems inside a quote, in the following way. \begin{quote} \begin{thm}[My Theorem] statement... \end{thm} \end{quote} However, this causes erroneous white space to ...
1
vote
1answer
38 views

Definitions and theorem numbering

I am new to theorems and definitions of the amsthm package and what I am trying to achieve might be really simple. I have the following theorems: \theoremstyle{definition} \newtheorem{matriceDef}{...
3
votes
1answer
57 views

Theorems are blue, Definitions are yellow, Examples are green,in latex

I am trying to type my notes. I found many lecture note which uses a different colour for a different environment. Like, theorems are blue, definitions are yellow, etc. Can anyone tell me how to do ...
1
vote
0answers
39 views

How to change the style of a theorem at LyX?

As a continue to this question - Why the amstools doesn't work here? - I think to ask it from a different view: I'm using this at Lyx and I want to change the style of the theorems like here: ...
4
votes
2answers
72 views

Indent the new line in a theorem environment

I have been looking after a solution to this for a while and have found none. I'm trying to create a Theorem environment, through amsthm, such that there will be a linebreak (just like the break ...
2
votes
0answers
31 views

How would I make a custom environment to accomplish the following [duplicate]

\documentclass[12pt]{article} \usepackage{amsmath,amsthm,amssymb,amsfonts} \usepackage{enumitem} \newenvironment*{exercise}{} \begin{document} \begin{exercise}{1.10.} Hello World\\ Hello world\\ ...
2
votes
1answer
69 views

How to gather tcolorboxes at the end of a document

I want to add remarks at different places in a document, using tcolorbox (which I found a very nice package) and at the end of the document to get a compilation of all the remarks added along the ...
1
vote
0answers
56 views

Citation inside comments of Theorem leads to `! Argument of \@citex has an extra }.` [duplicate]

I am trying to obtain an output such as Theorem 4 (see [1, Theorem 12]). Statement of the theorem. Separately, the commands \begin{Theorem}[comments]... and \cite[comments]{refname} work fine, ...
0
votes
0answers
30 views

theorem's title with footnote AND xr package

Note. This is not the usual problem with theorem's title with footnote. This is the special situation where additionally the package xr (or in my case xr-hyper) is used If I put a footnote in the ...
5
votes
2answers
85 views

Odd custom theorem behavior when trying to set default value of optional argument

MWE: \documentclass{book} \usepackage{amsthm} \usepackage{enumitem} \usepackage{xparse} \usepackage{hyperref} \usepackage{lipsum} \newtheoremstyle{fctaylor}% name {\topsep}% Space above {\...
2
votes
2answers
155 views

Redefine the theorem environment to save its contents

This post is born from a very practical reason: I find that in many documents that contain a lot of mathematics there is of course a lot of cross-referencing, but sometimes it is difficult to even ...
2
votes
1answer
86 views

Inaccurate hyperlink to customly defined theorems

I used the answer here to help me create a document where numbering for theorems and the like appears on the left. But I would like to be able to reference and hyperlink back to these theorems/...
2
votes
1answer
36 views

Non-italicized enumerated list inside theorem?

I want not-to-italicized an enumerated list within the theorem environment. Any help in getting this done is much appreciated. \documentclass{article} \usepackage{enumerate} \newtheorem{thm}{Theorem} ...
0
votes
1answer
42 views

Error about missing Begin of Document using \declaretheorem[]{}

when i'm using codes like numberlike= or sibling= in \declaretheorem[]{} appear the missing \begin{document} error and i don't understand why(i want the same numeration for theorems, definitions, ...
1
vote
2answers
116 views

Adding Overhang to Theorems

I am new to LaTeX, so I apologise if this question seems too simple to you. I am currently trying to write a paper and I would like to add an overhang to Theorems and Definitions (like the picture ...
4
votes
1answer
60 views

Beamer proof with comment

In the following MWE, the comment [to be known] for the proof environment makes the "proof" word disappear, while there is no problem with definition, theorem... \documentclass{beamer} \usepackage[...