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.

Filter by
Sorted by
Tagged with
0
votes
0answers
24 views

Set up an environment with multiple counters

I am writing solutions for a textbook and the exercises are labelled as [chapter].[section].[exercise] (ex: 6.4.32 would be exercise 32 from section 4 of chapter 6). How do I create a theorem ...
3
votes
4answers
39 views

How to change the headfont of newtheorem environments to match komascript font?

I'd like to change the theorem environment headfont to match komascript's fonts in chapters and sections. Particularly I'm interested in knowing how to do this using packages like thmtools. Here's ...
0
votes
1answer
40 views

How can I write a “definition” like this?

The theorem of the picture is written in bold, I mean: Theorem 1.2 (Pythagorean theorem). I want to write a definition with that format. Also, it would be better if it's written with small capitals. ...
0
votes
1answer
40 views

Hiding brackets after a definition

I use amsthm package to define the environment as \documentclass[a4paper,11pt,twoside,openright,notitlepage]{book} \pdfobjcompresslevel 0 \usepackage[a-1b]{pdfx} \usepackage[utf8]{inputenc} \...
1
vote
0answers
21 views

How to define an environment for a boxed and named theorem?

The environment below gives a boxed theorem with normal font (non italic text). \documentclass[11pt]{article} \usepackage[tikz]{mdframed} \usepackage{amsthm} \newtheorem{thm}{Theorem}[section] \...
0
votes
0answers
21 views

Vertical space after the environment lost when the environment splits between two pages

I defined a personalized theorem environment, such that, there should be a vertical left bar aligned with the environment and the length of the vertical bar should be exactly as long as the text ...
1
vote
2answers
49 views

Prevent new paragraph after theorem environment

Using the theorem style as in the example below, a new paragraph is produced after the Remark. Can I prevent this? (and using the amsthm package at the same time)? \documentclass[english]{scrartcl} ...
1
vote
1answer
64 views

Problem solutions at end of chapter

I'm writing a document with multiple chapters. Each chapter has problems and each problem has a solution. I want some of the solutions to be right after the problem and the others to appear at the end ...
3
votes
1answer
34 views

How can I have a \newtheorem… environment refer to its thmnote?

I'm currently using \newtheoremstyle to produce the following output: Question: How can I easily modify my MWE (see below) so that the a's in my QED boxes say "Name of Thing", "A Different Thing", ...
2
votes
1answer
57 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 ...
1
vote
1answer
63 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
47 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
75 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
47 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} ...
1
vote
0answers
21 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
48 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
46 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
160 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
1k 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
143 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
128 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
121 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}...
2
votes
1answer
37 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
82 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
194 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
202 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
142 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
35 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
70 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 \...
4
votes
1answer
507 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
249 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
60 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 ...
2
votes
1answer
156 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 ...
5
votes
2answers
770 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
556 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}...
1
vote
1answer
28 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 \...
2
votes
2answers
406 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
716 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
846 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
158 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
78 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
942 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
174 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
289 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
120 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
214 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
309 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
360 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
404 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
820 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 ...