{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

2
votes
1answer
18 views

cross-references for previous lemmas and theorems

I'm new with LaTex and I'm having trouble with the enumeration given when I cross-reference, It doesn't match the one given by the section. \documentclass[10pt,letterpaper]{book} \usepackage[utf8]{...
1
vote
2answers
25 views

Place theorem number *before* theorem label in page header?

In the accepted answer to Put current theorem-like item's name/number in header, it is shown how to put in the page's header the label of the (last-on-page) theorem, lemma, etc. For example, if ...
3
votes
1answer
28 views

Latex errors with \begin{theorem}

I am trying to create a new theorem in a tex document, but I keep getting an error. Here is the code I am currently using \documentclass[11pt]{article} \usepackage{amsmath} \usepackage{amsfonts} \...
3
votes
1answer
32 views

Theorem and chapter with Dot at the end

I'd like to have dot at end of the number of chapter and at the end of the number of theorem. I tried to use something like that: \documentclass{report} \usepackage{amsthm} \newtheorem{definition}{...
3
votes
2answers
49 views

Theorem environment : interaction with enumerate/itemize

My question is related to this one : Is it possible to skip the first line in a theorem environment? Actually, I am looking for a way to implement the solution given there in a somewhat systematic ...
4
votes
2answers
214 views

Remove space between “Theorem” and theorem number

I'm trying to create a dynamic numbering system for a survey, with questions that I can also reference. I would like to see Q1. What is your age? but playing around with \newtheorem all I can get ...
0
votes
0answers
18 views

Custom theorem title style

I have been trying everything to get my theorems to look like this: The best I could do was defining \usepackage{amsthm} \theoremstyle{definition} \newtheorem{hypo}{Hypomnema} in the preamble ...
1
vote
1answer
38 views

How to get the theorem name in the same font as `theorem'

When writing a theorem with some name I use the command, \begin{theorem}[Paramjit] Hello there I am Paramjit \end{theorem} And this is what I get. How to change the font of the name of the ...
2
votes
2answers
79 views

Get Definition and Theorem numberings to “follow”

I currently have the following set up: \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage{amsthm} \usepackage{amsmath,amssymb,amsfonts} \theoremstyle{definition} \newtheorem{...
1
vote
0answers
24 views

Theorems in italic, but not examples [duplicate]

Is there are way to make theorems, lemmas and definitions in italics, but not examples? E.g., Theorem: This is a theorem. Example: Here is an example. So far, I am using the plain theoremstyle, i.e....
0
votes
0answers
18 views

Theorem does not work after MikTeX update; no counter defined [duplicate]

The following stopped working after I updated MikTeX today: \documentclass{article} \usepackage{amsthm} \usepackage{hyperref} \usepackage{cleveref} \newtheorem{definition_}[equation]{...
2
votes
1answer
21 views

How to provide a citation call-out in a definition?

i have used following \documentclass{report} \newtheorem{df}{Definition}[chapter] \begin{document} \begin{df} \cite{wilson} The join of two function... \end{df} \end{document} and the output is ...
3
votes
2answers
60 views

tcolorbox: theorem numbering in the margin is too close to text

I'm using tcolorbox to draw boxes around my theorems. This package also has the option of puting the theorem numbers in the margin as you can see in my MWE below; see page 342 of the manual for more ...
4
votes
1answer
55 views

How do I show the theorem body in thmtools \listoftheorems

I would like to add a list of theorems to my document so I have included thmtools. This gives a list of theorems but in the following format. 1.1 Theorem . . . . . . . . . . . . . . . . . . . . . ...
4
votes
1answer
43 views

Using regular theorem environments along with tcolorbox theorems

I am using tcolorbox to draw coloured boxes for my theorems, however for things like a remark, or an example, I would like to have the usual amsthm kind of environment, without any colored boxes. If ...
1
vote
1answer
58 views

Mdframed for theorems: how to make fonts similar to amsthm and change title format?

I am making a custom book style for my thesis, and I came up with a style for the theorem environments that I like, as you can see in the image below. However I have two problems: I would like the ...
2
votes
1answer
31 views

changing color when lemma or theorem is cross-referenced

So, using hyperref I know how to change the color of "1" to blue when I say "using Theorem 1". But I want the entire "Theorem 1" to be blue. Similarly when I recall a lemma/theorem/proposition/...
5
votes
1answer
53 views

Theorem environment doesn't behave the way it was supposed to

I'm using the following template to make a poster. What I want is to enunciate a theorem with the theorem environment provided by the amsthm package. The problem is, there's some kind of "structure" ...
1
vote
1answer
28 views

Make proof reference automatically bind to theorem proven or label proofs in ascending order

I was wondering if there's a way to make every proof automatically reference the latest theorem used in my text, or, alternatively, have proofs be labeled with ascending numbers. Allow me to ...
1
vote
0answers
45 views

Using enumerate within theorem environment [duplicate]

I defined myself a \newtheoremstyle a \newtheorem + \newenvironment as in the following %Theoremstyle with \newline \newtheoremstyle{break} {\topsep}{\topsep}% {\normalfont}{}% {\bfseries}{}% {\...
2
votes
1answer
34 views

Number theorems with subsections: “Theorem 1.2.3.4”

I would like my numbering of theorems to be like "Theorem 1.2.3.4" where 1 is the chapter, 2 is the section, 3 is the subsection, and 4 refers to the fourth theorem in this subsection. A solution is ...
3
votes
1answer
27 views

Using/Forcing upright text within theorem environment

I would like to write an equation within a theorem that involves an integrand and the upright symbol $ \textrm{d} $ which I have abbreviated in my preamble with \newcommand{\dmath}{\textrm{d}} (...
2
votes
0answers
46 views

How to make examples without italic font? [duplicate]

I'm doing a project and in my LaTeX file the examples are in italic. I want to know if there is something I can do to avoid it and put the examples in normal font. I did put the examples as "...
3
votes
0answers
37 views

Hidden Theorem Style

i'm using the theorem environment to write edition notes or commentaries in an article. \declaretheorem[ style=myexamplestyle, name={\ding{46} Note }, unnumbered ]{note} Is there a way ...
1
vote
2answers
26 views

Problem with cross-referencing using hypertarget

I have some problems related to the application of an answer that I received to a previous question of mine, that can be found here. Below there is a MWE, where I used \clearpageextensively, because ...
1
vote
1answer
27 views

Theorem Numbering problem - Lettered subsections

I am trying to write theorems that will number based on section and subsection. I know this is the default when you enter, for example: \newtheorem{defn}{Definition}[subsection] but when I do ...
2
votes
1answer
27 views

hyperref and theorems counted by subsection- “pdftex warning (ext4) destination with same identifier”

I have got some problems with hyperref and theorems labeled by subsections: To get the theorems labeled correctly I manually reset the thm counter also at the beginning of new sections. But then I ...
2
votes
2answers
62 views

Adding a title to theorem environment

I am trying to use the theorem environment in my work as Sample Problem. This is my MWE: \documentclass{book} \usepackage{amsthm} \newtheoremstyle{mythmstyle} {}{}{}{} {\bf} {} {\...
1
vote
1answer
19 views

Changing content of \listoftheorems and hyperlinking to text

Here's my MWE: \documentclass{report} \usepackage{amsthm} \usepackage{libertine} % allows bf sc fonts http://tex.stackexchange.com/a/98581/104449 \usepackage{thmtools} \declaretheoremstyle[ ...
2
votes
1answer
38 views

Alternative theorem numbering separator

I'm using amsthm and I want to have this numbering format for my theorems: Chapter-Section-Theorem The main difference with the default version is the use of "-" instead of "." . Can I do this by ...
1
vote
2answers
58 views

Itemizing theorem body

Using package amsthm, the desired theorem style achieved, \documentclass{book} \usepackage{amsthm} \newtheoremstyle{mystyle}{}{}{}{}{\bf}{}{\newline}{} \theoremstyle{mystyle} \newtheorem*{mythm}{...
1
vote
1answer
30 views

Label of theorems

Is there an equivalent of \figurename for theorems and lemmas? For instance, given that I've defined \newtheorem{theorem}{Theorem} \newtheorem{lemma}{Lemma} \newtheorem{example}{Example} and in ...
2
votes
1answer
22 views

Missing spacing above theorem name

The following MWE \documentclass[10pt,a4paper]{amsbook} \usepackage{amsthm} \usepackage{parskip} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \newtheoremstyle{pcap} % name {\topsep} ...
1
vote
1answer
59 views

How can I remove rectangular brackets around definition optional title?

I am fairly new to latex, so i am using a "base" i got, to write my thesis in. At the beginning of the tex file, the following lines are placed, to define theorems and definitons: \newtheorem{theorem}...
3
votes
2answers
71 views

theorem and subtheorem hierarchical numbering

I want the numbering of claims, subclaims, subsubclaims, etc to be hierarchically numbered. Is there a way to do this without having to make those extra "subclaim" environments? For example: \...
2
votes
1answer
32 views

Continuous numbering of theorems in report

I have a report class document with sections and chapters: \documentclass[a4paper,12pt]{report} And I need to add theorems \newtheorem{theorem}{Theorem} under chapters \begin{theorem} Let $f$ be a ...
3
votes
2answers
56 views

Padding in theorem environment with thmtools

I'm using thmtools to make shaded theorems, but there is no padding around the theorem body and that makes it ugly. MWE: \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{...
7
votes
2answers
92 views

Fixing overfull \hbox with mdframed containing an equation

When creating a boxed environment with mdframed, I ran into an issue with a line with an equation, that also happens to be the first line of a definition. Is there a way to fix the problem ...
2
votes
2answers
58 views

Use \newtheoremstyle to define a custom example environment

I am trying to define a custom example environment for my thesis, but with my limited knowledge of LaTeX I am not able to figure this out from the amsthm documentation. Here is a minimum working ...
4
votes
1answer
48 views

beamer with numbered theorems not working with cleveref

A want to use cleveref in a beamer presentation. The document defines multiple theorem environments sharing the same counter as follows: \documentclass{beamer} \usepackage{cleveref} \newtheorem{thm}...
2
votes
1answer
54 views

For two column article (ACM template), why does the newtheorem environment (definition) not span into one column?

I am trying to put a definition using the newtheorem environment for an ACM template. After it execution, it is not placed in the single column, rather it span towards the next column. I have attach ...
3
votes
1answer
56 views

Theorems continued over multiple pages using amsthm

I use amsthm to define my own lemma, theorem, and other environments. Some are too long to display on one page, which means that they are broken onto multiple pages. When such an environment is ...
2
votes
1answer
301 views

What is the symbol of end of a proof?

I'm trying to put a black square at the end of a proof, but is not the same as LyX gives me (when I choose "proof" at the menu). It's different from the \blacksquare command (see pic below). The ...
1
vote
1answer
26 views

Nested Proofs and wrong vertical spacing

I have the following problem concerning nested theorems. Take the following: \begin{theorem} Bla \end{theorem} \begin{proof} Bla bla % \begin{lemma} Bla \end{lemma} % \begin{proof}[Proof of the ...
2
votes
1answer
37 views

How can I apply a custom-defined theorem environment to nested theorems WITHOUT using a proof environment?

I'd like to combine a couple of constructions I've found on this site to create a custom-defined cases environment so that each case will: be nested within a larger theorem environment; end with a ...
2
votes
1answer
62 views

Cite a theorem by its name and number

I don't know if this is possible to do in Latex, but here's what I'd like to do. I want to cite a theorem using its label, but what should appear is both its theorem number and its name (the text in ...
1
vote
2answers
79 views

How to cross reference theorem lemma etc as for example “Theorem 1” in LyX

I have loaded the theorem by type and theorem by type within Chapter (TIP for learner:add the first in order to add the second). So I use theorem environment for different types: proposition, ...
1
vote
0answers
36 views

How to stop \begin creating a line break

Basically I've created a math theorem called definition At header of the document, declared as \newtheorem{defi}{Definition}[section] Now i've laid out some text and stuff basically what I have ...
1
vote
1answer
26 views

Getting a citation on the same line as an equation, in theorem environment

Just wondered if anyone could help me with this issue. I'm trying to reference a theorem using \cite{ref}, but the theorem finishes with an equation, so the citation move onto the next line. This is ...
0
votes
1answer
83 views

Theorem numbering as subsections and automatic solutions

I have a problem environment where the counter is coupled to the subsection counter. However this doesn't work with automatic solutions. I tried to couple the solutions counter to the subsections as ...