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
1answer
42 views

How to write to the right of “Definition” and also enumerate within the definition?

The answer here shows how to enumerate within a definition. But what if I want to also write something to the right of Definition? For example, Definition. Let G be a group. (i) .... (ii) .... ...
0
votes
0answers
23 views

newtheorem{example} changing name in document

Preamble: \newtheorem{example}[theorem]{Beispiel} Now I want to change {Beispiel} to {Beispiele} for only one time in my document. How to do that?
1
vote
0answers
47 views

Problem with beamer and pgf for shading, related to theorem environment

I'm having problems when using beamer document class with certain themes. For example, with Warsaw theme, I get these errors: ! Undefined control sequence. \pgfsys@vertshading ...rSpace \pgf@shading@...
1
vote
0answers
37 views

Why `\crefname` command generates error?

Does anybody know why \crefname{thm}{AAAA}{AAAAs} command generates error? \documentclass{article} \usepackage{amsthm} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage[...
2
votes
2answers
31 views

How to duplicate the section based autonumbered theorems in section 2, 3, 4 in section 1?

I currently have section based auto-numbering setup for theorems in section 2,3,4 etc via the following environment variables: \numberwithin{equation}{section} \newtheorem{definition}{Definition}[...
0
votes
2answers
25 views

Define Terminology Within Document

Similar to the \newtheorem*{dfn}{Definition} statement, is there a way to define words in a document in this fashion, but instead of Definition. This is the definition being shown, it will show up ...
3
votes
4answers
79 views

Environment formatting: how to display the name of an axiom instead of its counter number

I am using the following environment to write axioms in my thesis \theoremstyle{definition} \newtheorem{myax}{Axiom} As expected, if I write \beging{myax}[Axiom of Choice] \end{myax} I get ...
7
votes
1answer
68 views

Vertical space between theorems from a distant figure

I encounter a weird vertical space in the following situation : In my .tex, I have two theorems seperated by a picture, but in the .pdf, the picture is put somewhere else (and that's ok with me), but ...
0
votes
0answers
20 views

\newtheorem not numbering in beamer latex

I've been working in a beamer file, and I'm using the \newthorem command to create an environment for definitions but the problem is that my definitions are not numbered. Here is my code: \...
1
vote
0answers
16 views

Continuous {Theorem,Lemma,…} Numbering with cleveref [duplicate]

I want to have continuous numbering for all my theorem, lemma, etc environments, which wan be achieved with using a shared counter. However this seems to break cleveref's capability of referencing ...
0
votes
0answers
25 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
49 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
42 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
50 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
36 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
23 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
56 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
78 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
35 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", ...
4
votes
1answer
70 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
85 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
70 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
89 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
54 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
22 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
50 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
57 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
202 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
162 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
162 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
161 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
40 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
90 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
242 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
253 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
210 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
77 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
646 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
279 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
74 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
175 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
995 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
623 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
31 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
477 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
802 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
994 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
165 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 ...