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.

3
votes
2answers
753 views

How organize definitions in a thesis document

I am writing my master thesis and I would like to define each new term with a sentence starting with keyword Definition followed by a counter and corresponding meaning of the term. for instance: ...
3
votes
1answer
575 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 ...
3
votes
1answer
494 views

Subtheorems with alphabetic number

I would like to create a list of tasks using LaTeX. Therefore I created a theorem called task. For some tasks I would like to create additional subtheorems using alphabetic numbering. Currently my ...
3
votes
1answer
562 views

How to separate definitions from the following text?

Using the definition theorem style from amsthm does not enable the reader to separate between text that belongs to the definition and the text following it. Example: \documentclass{scrbook} \...
3
votes
1answer
231 views

Numbering a reworded theorem

When using LaTeX for numbered theorems (or other numbered environments for that matter), if you have a theorem, and then you want to give a reformulation of the theorem, is there anyway to get LaTeX ...
3
votes
1answer
116 views

How to adust margin in listoftheorem

I have some definitions and theorems inside subsubsubsection. When latex generates the listoftheorems, the last digit of the subsubsubsection overlaps the first letter of the name of the theorem, ...
3
votes
1answer
179 views

Hyperref warning when using amsthm and enumerate

hyperref gives the warning that something has been referenced but it doesn't exist. When I use the enumerate (or an itemize) list, I get the warning. Here is the minimal working example (MWE): \...
2
votes
2answers
340 views

Dash after theorem number: e.g. Theorem 1'

I would like to present a second version of a theorem (of, say, Theorem 1) and I would like to denote it by Theorem 1'. I reckon the best way to go about it might be to define a new theorem style or ...
2
votes
1answer
655 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
2answers
869 views

How to identify the counter of Equation, Theorem, and Section

I asked before how to identify the counter of Equation and Theorem. A simple answer suggested there is \newtheorem{thm}[equation]{Theorem} A simple variation allows me to identify the Theorem and ...
2
votes
1answer
905 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 ...
2
votes
1answer
190 views

Theorem name not making it to the aux

I posted a question. egreg answered. I applied his solution to my presentation. It worked. Then I tried it in my thesis, where I use references, and I realized the theorem names weren't making it to ...
2
votes
2answers
481 views

theoremprework Error with ntheorem

I have defined \theoremheaderfont{\normalfont\bfseries} \theoremprework{\bigskip\hrule} \theorempostwork{\hrule\bigskip} \theorembodyfont{\slshape} \newtheorem{definition}[satz]{Definition} and now ...
2
votes
1answer
166 views

How suppress number of numbered theorem?

Is there a way, with amsthm and thmtools (possibly other packages, too) to have LaTeX keep track of the numbers of a particular kind of theorem, yet not have the numbers actually appear in the printed ...
2
votes
2answers
444 views

How to add blank space in proof environment without changing the position of the word “proof”?

I LaTeX my homework, and for one problem, I want only white space in the proof environment since I'll be hand-drawing a picture. when I type in \begin{proof} \vspace{1in} \end{proof} the outcome ...
2
votes
1answer
231 views

Continuous Counter for Figures

How to float a figure counter such that it displays section than counter with figures, theorems and definitions? e.g Figure 1.1 Definition 1.2 Figure 1.3 Algorithm 1.4 Theorem 1.5 etc.
2
votes
1answer
210 views

Extra brackets appearing in styled theorem in beamer

Here is my code: \documentclass[slidescentered]{beamer} \usepackage{amsthm,thmtools,xparse} \makeatletter \newif\if@namespace\@namespacefalse \newcommand{\contrel}[2]{ \if@namespace Continua da \...
2
votes
1answer
857 views

How to define different colors for different theorem-like environments in beamer

After reading section 12.4 Theorem Environments from beameruserguide I understand that all theorem like environments (theorem, lemma, corollary, ...) except example use same beamertemplate which means ...
2
votes
1answer
67 views

How to create two environments that refer to each other in the page margin?

I would like to create two environments: one for exercises and one for their solutions. Each exercise should refer to the page of its corresponding solution and vice versa. The problem is not quite ``...
2
votes
1answer
701 views

pagebreak and amsmath theorem environment issue

In the example below, you'll notice that when a \pagebreak is used right after the theorem, an unwanted vertical blank space is added after the theorem environment while it should not. \...
2
votes
1answer
218 views

Change the way theorems are numbered within a document

I'm working a document that has one (very large) chapter, in which theorems, lemmas, etc. are numbered with subsubsection, i.e. the start of the document has the command \newtheorem{theorem}[...
2
votes
2answers
646 views

Definitions, theorems, … with description inside a box and the title above the box

I am searching for a definition (or similar) environment with the following features: Numbering Listing Definition title with number above the description Definition text inside a box with black ...
2
votes
1answer
208 views

Combining spacebelow with shaded parameter in thmtools package. Bug?

In the following example the spacebelow parameter is ignored. If you comment out the shaded parameter, the space is considered. Is it possible to use both parameters spacebelow / shaded? \...
1
vote
1answer
561 views

Theorem-like environments in Latexit?

I want to use Theorem-like environments in Latexit. How can I do this?
1
vote
2answers
850 views

citation square brackets upright in theorems

How to set up the citation square brackets and numbers in upright in theorems while keeping other stuffs slanted? (This style is suggest by my professor.) The usual appearance is the following ...
1
vote
1answer
428 views

\theoremindent adds space to left side when used with RTL languages

Trying to use ntheorem's \theoremindent seems to indent the left side rather than the right side when used with polyglossia and right-to-left languages: \documentclass{article} \usepackage{ntheorem} ...
1
vote
0answers
393 views

nopagebreak between rule and custom theorem env

I'm making a custom theorem environment. Here's a minimal example of my problem, with some filler text borrowed from the GPL: \documentclass{scrbook} \usepackage[dvipsnames]{xcolor} \usepackage{...
1
vote
2answers
347 views

How to use mdframed to number by chapter, section and else (MWE)

I am trying to modify the following code to get: (a) Definitions numbered as Definition CHAPTER.SECTION.ALPH --- FANCY DEFINITION TITLE and (b) Propositions numbered as Proposition CHAPTER.SECTION....
1
vote
1answer
240 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 ...
1
vote
0answers
1k views

Custom theorem numbering … and extend to lemma etc [closed]

In Custom theorem numbering @egreg provided a way to custome theorem numbering: \documentclass{article} %\usepackage{amsthm} %% uncomment to see the difference \newtheorem{innercustomthm}{Theorem} \...
1
vote
2answers
2k views

With ntheorem, thmmarks and no amsthm, defining the proof environment right

I'm using ntheorem with the thmmarks option but without the amsthm option (for reasons I won't go into). I would like to define the proof environment à la amsthm. Specifically, I want: To be able to ...
1
vote
1answer
286 views

How to ignore proofs? [duplicate]

I'd like to print a shorter version of my paper without all the proofs, I'm thinking about something like \renewenvironment{proof}{\begin{comment}}{\end{comment}} but that activates the comment ...
1
vote
2answers
433 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
1k views

Confusing usage of chngcntr package

I'm not fully understanding how chngcntr works. I've attached an example that hopefully explains my confusion, along with the source code, of course. What I want is for the first section to be ...
1
vote
3answers
242 views

Using a theorem-based environment inside a list

When I include a theorem-based environment right after the start of a list item, a linebreak is inserted that looks a little funny. \documentclass{article} \usepackage{amsthm} \newtheorem{claim}{...
0
votes
0answers
154 views

How to make “Theorem 1” and not “Theorem 0.1” [duplicate]

It includes the command \newtheorem{teo}{Theorem}[section] in my code, but theorem 0.1 appears when I do \begin{teo}, how to change?
0
votes
2answers
139 views

Horizontal spacing of the 'logicproof' environment

How do I control the placement of this logicproof on the page? I want it to stretch horizontally across the page regardless of the content. The spacing should be between the statement and the ...