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 [newtheorem]

The `newtheorem` package is used to create environments appropriate for typesetting theorems, lemmas, corollaries and similar structures, which are used in mathematical texts.

0
votes
0answers
11 views

Consecutive numeration in a newtheorem

in my document I have numerated all the theorems; but at one point I found myself in need to declare a new type of theorema (let's call him Teorema*). Since my last theorem is numbered like this: ...
1
vote
1answer
27 views

Dot after theorem/exercise and text in same line

I would like to have the "Exercise xx." (with a dot) in italic bold red in the same font size and the exercises text that would follow in the same line. Exercise 1. Solve x+1=2. Exercise 2. Solve x-1=...
0
votes
1answer
17 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
51 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 ...
0
votes
1answer
19 views

Define \newtheorem environment using jheppub.styt

I am using the JHEP style for writing a paper in latex. I would like to define new theorem\definition... environments, for example \newtheorem{thr}{\color{Blue} Theorem}\numberwithin{thr}{section} ...
0
votes
0answers
19 views

Theorem counter with missing text

Currently, I have the following Theorem definitions: \newtheorem{Thm}{Theorem}[section] \newtheorem{Lem}[Thm]{Lemma} \newtheorem{Prop}[Thm]{Proposition} \newtheorem{Exa}[Thm]{Example} etc. So when I ...
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 ...
2
votes
1answer
40 views

Coloring the numbers of the theorems

Can anyone please help me to do how to become blue the number 1.12?
5
votes
1answer
33 views

How to number a lemma in reference to the next theorem?

In a document I'd like to be able to write lemmas and theorems such that I always write lemmas before the theorem they support and those lemmas are numbered in reference to the theorem they support. I ...
4
votes
2answers
62 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 ...
7
votes
3answers
929 views

Creating a nice-looking box without using minipage

I would like to create the following box and title without using minipage With : small box before Title Title with counter \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{...
1
vote
2answers
106 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 ...
1
vote
1answer
29 views

Using the apxproof package and \newtheoreprep, my theorems don't show up in the appendix.

Problem A theorem environment was defined with apxproof's \newtheoremrep command. The theorem however, doesn't show up in the appendix, and neither does the subsequent \proof as claimed by the ...
2
votes
0answers
55 views

\begin{proof} and \begin{problem} don't work in new section

I've encountered with the following problem. So in my document, I defined the new theorem environment problem, using the following preamble codes \theoremstyle{plain} \newtheorem{eg}[theorem]{Example}...
1
vote
1answer
27 views

Definition with word to be defined instead of counter

I know the title is a bit weird but I'll try to explain it in a better way here. In the beginning of a chapter I'd like to define some basic terms. Currently I'm using \newmdtheoremenv{mydef}{...
0
votes
1answer
47 views

Newline after theorem doesn't work if it starts with \begin{enumerate}

This method to have a newline after the exercise heading usually works: \newtheoremstyle{break}{}{}{}{}{\bfseries}{}{\newline}{} \theoremstyle{break} \newtheorem{exercise}[theorem]{Exercise} \...
2
votes
1answer
98 views

counters of \declaretheorem and \newtheorem differ

I want to use thmtools in order to state questions, that I want to repeat at a latter point of my text. I declared the question-environment using \declaretheorem, but I also use theorem-environments ...
2
votes
1answer
90 views

Aligning text in the theorem environment

So, I am kind of new to LaTeX and I have a problem that I found no solution for in the internet (it might be just me not knowing how to describe this). I want to align the text of my theorems like ...
0
votes
0answers
27 views

Font style in newtheorem

I have the following MWE \documentclass[12pt, A4paper]{article} \usepackage{amssymb} \usepackage{amsmath} \usepackage{amsthm} \newtheorem*{solution}{Solution} \begin{document} This is a proof: \...
1
vote
0answers
34 views

Space around theoremes

I have defined a newtheorem style and I want to shift the theoreme a little bit below from the rest, but I don't get it right. I have something like this : \documentclass{book} \usepackage{xcolor} \...
0
votes
2answers
50 views

Newtheorem adds a space before theorem name

How do I remove the space inserted prior to the theorem name? That is, the space to the left of the bracket. I want the bracket to align to the left. For some reason I'm not able to understand the \...
3
votes
1answer
260 views

tcolorbox theorem numbering

\documentclass{article} \usepackage{amsmath,amsthm,amssymb,parskip} \usepackage{graphicx,float,hyperref} \usepackage[margin=1in]{geometry} \usepackage{titling,multicol} \usepackage{tcolorbox} \...
1
vote
1answer
172 views

Changing the labelling of the assumptions in the middle of the text

I have the following document where I specify Assumptions 1,2 in the section "Main". \documentclass[12 pt,a4paper, oneside, openany, notitlepage]{article} \input epsf \usepackage{subcaption} \...
1
vote
1answer
36 views

Newtheorem and pausing

I'm working through the Beamer tutorial at http://web.mit.edu/rsi/www/pdfs/beamer-tutorial.pdf, partly because it has enough errors in it to force me to learn things a bit more deeply. My current ...
0
votes
1answer
100 views

Is there a way to modify the theorem environment in order to have an horizontal rule immediately before and immediately after the statement?

I've just seen this solution for the proof environment and I really liked it. How to draw a horizontal line at the end of proofs? I'm wondering if is there an elegant way to do it also with the ...
3
votes
2answers
410 views

New theorem environment with manual theorem number

I am wondering how to create a new theorem environment / style which allows me to insert the theorem number manually. That is, I am imagining something like \begin{newtheorem}{2.3'}[title] ...
0
votes
2answers
344 views

set example and definition in Texstudio (Ubuntu)

I want to set the example and definition numbering and also their font style. I found the code given below: \documentclass[letterpaper,12pt,titlepage,oneside,final]{thesis} \usepackage{lmodern}...
0
votes
0answers
143 views

How to get around ! Package xkeyval Error: `tt' undefined in families `fxl'

I get the error - ! Package xkeyval Error: `tt' undefined in families `fxl'. pointing to this block of code - \makeatletter \newtheorem*{rep@theorem}{\rep@title} \newcommand{\newreptheorem}[2]{% \...
1
vote
1answer
25 views

Misplacing theorem header when followed by a prooftree

When I put a prooftree immediately after \begin{solution} it places the header of the solution environment neither aligned to the left or above the prooftree. When there is some text preceeding the \...
3
votes
2answers
265 views

Theorem number section wise when there is no subsection

I am using article class. There is no any chapter. It has some sections only. In my first section there are five subsections. I want the Theorem and Definition numbers as per section wise, like ...
1
vote
1answer
476 views

tcolorbox's newtcbtheorem strange numbering by using of several newtcbtheorem

I am new with tcolorbox's newtcbtheorem. I get it work to define an own theorem block based on newtcbtheorem but if I use several tcbtheorems the numbering is strange. I paste a working example where,...
1
vote
1answer
513 views

Enumerate within a definition

I have a macro that is used for math definitions, which adds a line-break after the word 'Definition', it works well except when I start a definition with an enumeration. Is there a way to add a line-...
0
votes
2answers
139 views

Numbering of Theorem and Definitions on LaTeX

I'm currently trying to make the final amendments to a paper I've written and wondered if anyone could help. I have a theorem and a number of definitions in a section (Section 4, for reference) and I ...
1
vote
2answers
72 views

Adding section numbering to boxed environment

I have the following boxed environment in with I would like to add section numbering. It should say "Bevis #.#" instead of just "Bevis". Image of what I currently have The code I'm using \...
1
vote
1answer
687 views

Define new theorem style in beamer

I want to define new theorem style in beamer class. I mean, I want to create a new block for the "claim"envinronment. For that, I use this command: \makeatletter \def\th@claim{% \normalfont % body ...
1
vote
1answer
111 views

How to put a line break between the label and the title of a theorem created with `newmdtheoremenv`?

I want to put a line break between "Text 1" and "This is the title" (see figure). \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{xcolor} \usepackage{mdframed} \mdfdefinestyle{textSty}...
2
votes
1answer
204 views

Writing theorem conditions with automatic numbering and labels

I'm trying to write conditions that are required for a theorem to be valid such that the condition is automatically numbered AND is able to be referenced at a later time (e.g. a link can be used to go ...
0
votes
1answer
88 views

How to remove the punctuation mark in a single newtheorem environment

I know how to do this globally, by including the: \newtheoremstyle{dotless}{}{}{\itshape}{}{\bfseries}{}{ }{} \theoremstyle{dotless} commands. Is there any way to do this locally, for an individual ...
1
vote
0answers
118 views

How to put a cite command next to a theorem with square brackets and no parentheses?

In my bachelor thesis, I use a theorem from another author. I have to cite him. When I use \newtheorem{proposition}{Proposition}[chapter] \begin{proposition}\textup{\cite[Proposition 4.7]{LPW}} I ...
4
votes
2answers
264 views

Theorem default names

I am trying to produce the following effect: \begin{theorem} \end{theorem} creates 1.2 Theorem. and \begin{theorem}[Uniform Boundedness Principle] \end{theorem} creates 1.2 Uniform ...
2
votes
2answers
220 views

Give definitions and examples the same counter

I want an example to have the same number as the current definition. So if the last definition is definition 2, the example should be example 2. (Is this a good idea?). Currently with the following ...
3
votes
2answers
323 views

Defining a double star (**) for theorem environment

This is a follow-up question of QED symbol after statements without proof, and I am really not sure whether this is the right approach to solve the problem raised there. But it seems to solve all ...
4
votes
1answer
677 views

QED symbol after statements without proof

I use the amsbook document class and I would like to show \qed symbols at the end of statements without proofs (using the theorem environment, such as theorem, proposition, lemma, ...) to indicate ...
0
votes
1answer
690 views

Undefined control sequence with ntheorem and shaded theorems

I am working with ntheorem and have the following definition of a shaded theorem: \theoremclass{Theorem} \theoremstyle{break} \shadecolor{red} \def\theoremframecommand{% \psshadowbox[fillstyle=solid,...
3
votes
2answers
402 views

\newtheorem with qed-symbol

Is there a pre-defined theorem-environment for a theorem having the qed-symbol at its end? Something like the proof-environment but with the \theoremstyle{plain}? \documentclass{scrartcl} \...
3
votes
3answers
433 views

ACM sig-alternate document class — How to create unnumbered theorem-like environments

The command \newtheorem in the ACM sig-alternate document class takes two arguments. The first is the name of the environment and the second is the header, rendered in small-caps letters, that appears ...