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
0 answers
14 views

Inserting a picture into the text of the theorem (using \newtheorem) [duplicate]

I need the text to wrap around the image. I tried to include \usepackage{wrapfig} and code was like this. \begin{theorem} \begin{wrapfigure}{l}{0.4\textwidth} \begin{center} \...
Mark Smirnov's user avatar
7 votes
2 answers
177 views

How to center in the definition context?

I want to have several short definitions on the same line as the definition number. With that purpose in mind, how may one center A is B in the last definition? The MWE is: \documentclass{article} \...
Sapiens's user avatar
  • 4,549
0 votes
1 answer
57 views

How to change theorem definition

Please my first theorem which I want it to be Theorem 1.1 happens to be in Chapter 2 and as thus it reads Theorem 2.1 as opposed what I want. I mean Theorem 1.1, please how can I change this? By ...
Memristor's user avatar
4 votes
1 answer
69 views

Numbering equations with same counter as theorem environment

I want to have the equations of my document numbered in the same manner as the other newtheorem environments which share the same counter [section]. The usual approach is to use \numberwithin{equation}...
N.B.'s user avatar
  • 163
0 votes
0 answers
63 views

LyX module for adding theorems, lemma etc

Math environments such as Definitions, Proofs and Lemmas in LyX builtin? What module was the answer referring to? How do I upload such a module to my LyX software? Edit: Unable to click "OK":...
Welt Rene's user avatar
0 votes
2 answers
47 views

Title on the same line as numbering with \newtheorem?

Is it possible to get \newtheorem to keep the "title" on the same line as the numbering? And give the title and the body different styles? I would like to do something like this: \begin{...
GuyMatz's user avatar
  • 101
1 vote
1 answer
21 views

Symbol aligned with an equation does not work

I want my theorems be ended by a diamond. It works fine, except when there is an equation at the end, then the diamond is in a new, empty line. With the following MWE, I get this: Here is my MWE: \...
mathquester's user avatar
3 votes
1 answer
95 views

Adding a rule to a theorem environment

I have a document full of examples that I created with a simple theorem. The problem now is that I try to modify the examples' appearance by adding rules at beginning and end. This turned to be harder ...
aaragon's user avatar
  • 3,049
0 votes
1 answer
32 views

Define unnumbered theorem with template ws-ijnt.cls

The obsolete latex template ws-ijnt.cls (see here) is incompatible with amsthm, ntheorem and part of thmtools. How can I define an unnumbered theorem environment with this template?
Yijun Yuan's user avatar
0 votes
1 answer
38 views

newtheorem wrong name error

Hello I wrote this new theorem into new blank overleaf project. \newtheorem{graf}{Def} \begin{graf} \end{graf} I dont know why but i get some weird error: LaTeX Error: Something's wrong--perhaps a ...
Numb3r's user avatar
  • 1
0 votes
1 answer
170 views

How to get Theorem numbering as per section.subsection.subsubsection.number in Latex

I'm not very familiar to Latex. The numbering of my theorems, definitions, remarks etc. appears like 1.0.0.1 for first definition. I don't want zeroes to appear if there are no subsections or ...
Ashraf's user avatar
  • 3
0 votes
0 answers
63 views

Change definition title to textsc?

How may one change the following MWE (which is useful for including enumeration), so that we instead of the title Definition 0.1. have \textsc{Definition} 0.1.? \usepackage{amsmath, amsthm} \...
Sapiens's user avatar
  • 4,549
3 votes
1 answer
221 views

Restating a theorem environment created using \newtcbtheorem

The first post I saw telling me about the restatable environment: Recalling a theorem. Several questions have been asked about things like this: Making a restatable boxed theorem says to use \...
D.R's user avatar
  • 721
1 vote
1 answer
128 views

No counter theorem defined

I am getting the following error, but cannot figure out the problem yet ! LaTeX Error: No counter 'theorem' defined. I have \newtheorem{galex-theorem}{Theorem}[section] \newtheorem{galex-corollary}{...
Veak's user avatar
  • 645
2 votes
1 answer
37 views

Newtheorem lemma reference

I want to create lemmas with my own enumeration, e.g. Lemma A.1, A.2, ..., using \newtheorem. However, when compiled and referenced, the number is wrong for what seems a simple reason. LaTeX ...
JBH's user avatar
  • 55
0 votes
2 answers
45 views

How can I fix the spacing between text and numbering in newntheorema

I'm using a newtheorem to create the numbering of an example, but the spacing has been very different from one number to another. I've already tried using \hspace after Ex. (and before numbering). I'...
Leonardo Gonçalves's user avatar
2 votes
0 answers
52 views

Two counters for same environment?

I am unable to figure how to set up the Corollary environment so that the counter restarts after BOTH a new theorem and a new lemma. The environments for theorems and lemmas are defined so that they ...
Tanay's user avatar
  • 121
1 vote
0 answers
14 views

How to number a newtheorem the same as one written before [duplicate]

In one section I wrote some numbered hypothesis, for which I created a theorem environment as follows: \newtheorem{ipotesi}{Ipotesi}%[section] \renewcommand{\theipotesi}{A\arabic{ipotesi}} In another ...
Gabrielekk's user avatar
7 votes
1 answer
279 views

Referring to two or many corollaries in LateX

I am using \thref{cor1, cor2} to cite two corollaries, and it provides instead of Corollaries 3.3.9 and 3.3.10. (It gives "Corollarys" as the plural of Corrolary). If I have the following ...
Dimbi Rabearivony 's user avatar
2 votes
1 answer
49 views

Customizing Theorem Enviroment using Psvectorian

I was wondering if there is a way we can customize theorem environment using Psvectorian. To clarify, consider the following code: \documentclass[12pt]{book} \usepackage[utf8]{inputenc} \usepackage{...
SPARSE's user avatar
  • 298
1 vote
1 answer
34 views

Temporary Custom Theorem Label

I would like to create a temporary custom label for a theorem in Latex, without using \newtheorem in the preamble. I want my output to be something like Principle of Mathematical Induction Lorem ipsum ...
Jojo Calabaza's user avatar
1 vote
1 answer
27 views

Help with newenvironment for unnumbered theorems

First I tried this \newenvironment{axioma}[2]{\newtheorem*{#1}{#2} \begin{#1}}{\end{#1}}. It did not work. Then I tried \newenvironment{axioma}[1]{\newcommand{\axiomhead}{\newtheorem*{kkk}{#1}} \...
Rodrigo Tavares's user avatar
0 votes
0 answers
96 views

How do I remove the number in front of the Theorem

I am trying to remove the number in front after the theorem (after Newton, 1687) seen below: This is the code corresponding to the whitebox: Any thoughts? Minimum Working Code: \documentclass[.....]{...
Aden's user avatar
  • 1
0 votes
2 answers
218 views

Making a style file that defines a style for a definition

How can I include the following style for a definition in a style file? I am using the packages xcolor (with the option x11names), amsmath, amsthm, and amssymb. \newtheoremstyle{typex-definition}...
Veak's user avatar
  • 645
1 vote
2 answers
77 views

Issues using newtheorem

I'm trying to use \newtheorem. Here's my small sty file mystyle.sty \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \newtheorem{action}{$\checkmark$ Action} \newtheorem{law}{$\bigodot$ ...
Rusi's user avatar
  • 353
0 votes
1 answer
200 views

Numbering examples independently

I created a theorem command defining example sections, definitions, etc. the same way like so \newtheorem{example}[thm]{\protect\examplename} Of course, the numbering of this is consistent with the ...
Lex_i's user avatar
  • 193
0 votes
0 answers
24 views

How to ignore theorems when creating a pdf?

I am writing a document which includes exercises and their solution. To do distinguish them nicely, I used the amsthm package and the following code: \newtheoremstyle{dotlessP}{}{}{\color{black}}{}{\...
Baba's user avatar
  • 61
4 votes
2 answers
147 views

AUTOREF error [italian] with \todonotes

The \autoref keeps writing "sezione" (section) instead of "Teorema" (Theorem), I've tried different solutions (even the "%" one) but they simply don't want to work for me....
314159265358979323846264's user avatar
0 votes
2 answers
304 views

How do I create a new environment like proof in amsthm package which reads as 'solution' instead of 'proof'?

Using the \newtheorem command, I know how to create similar type of environments like 'Examples', 'Remarks', 'Lemma' etc. in class notes. For Theorems, we use \begin{proof} ......... \end{proof} to ...
Dr. Sundar's user avatar
0 votes
2 answers
268 views

How to make "Theorem 1.1" into "1.1 Theorem"? [duplicate]

Usually when using amsthm, we get something like Theorem 1.1, Corollary 1.2, Definition 1.3, etc. But how can I put the number before the name "Theorem" and "Corollary", that is to ...
Hetong Xu's user avatar
  • 103
0 votes
1 answer
41 views

Problem with suppressing chapter number in theorem environments

I think I may be having a specific issue due to changing the numbering of chapters with Roman (instead of Arabic) numerals, though I could be wrong on that. I have used \newtheorem{definition}{...
Tom Johnstone's user avatar
0 votes
1 answer
269 views

Changing theorem numbering from chapter.section.number to chapter.number later in document [duplicate]

For most of my document (using document class "report" and using the amsthm package), I am happy with the theorem numbering that \newtheorem{thm}{Theorem}[section] produces, i.e. Theorem 1....
Sané's user avatar
  • 1
3 votes
2 answers
74 views

Target of \label placed inaccurately by hyperref

I have a line like '\begin{thm}\label{tPrimes}', where thm is defined using \newtheorem. It generates a line starting with 'Theorem 1.2' in bold. It seems that the target defined by \label is always ...
Vitek's user avatar
  • 31
1 vote
1 answer
64 views

How do I change the behaviour of enumerate inside certain theorem environments

I would like to change the behaviour of enumerate inside certain theorem environments. In particular. I would like enumerate to number using the letters "a." "b." "c." ...
Andrew Bacon's user avatar
1 vote
1 answer
73 views

simplify the environment newtheorem

Is there a way to simplify the following newtheorem environment \newtheorem{definition}[theorem]{Definition} instead of using it as follows \begin{definiton}[xxx] yyy \end{definiton} is it ...
user547654's user avatar
0 votes
0 answers
39 views

Non italics for specific maths inline in theorem environment

I would like to write \text{ABC} as part of a math inline in the theorem environment, such that the ABC is not in italics (as it would render in regular math mode outside of the theorem environment). ...
Sané's user avatar
  • 1
-1 votes
1 answer
277 views

Formatting examples: newtheorem

I am using the \newtheorem command for several things: theorems, lemmas, propositions,... But also examples. By default, \newtheorem writes everything in italics. I want everything in italics but the ...
kubo's user avatar
  • 143
3 votes
1 answer
201 views

How can I achieve this theorem style (a very common one)?

Consider: How can I achieve this style for definitions, theorems, ...? I only know the standard or "plain" style (bold for header, italics for body) for theorem-like environments.
Descrates's user avatar
  • 243
1 vote
1 answer
86 views

how make a Custom theorem with upright body tex

I need a theorem environment with a custom numbering, so I did \newtheorem{innercustomgeneric}{\customgenericname} \providecommand{\customgenericname}{} \newcommand{\newcustomtheorem}[2]{ \...
Xaviere's user avatar
  • 232
1 vote
2 answers
123 views

Adding a newline in \newtheorem

I'd like to define a theorem environment called sol in order to write solutions to exercises. I've done so through \documentclass[a4paper]{article} \usepackage{amsthm} \newtheorem{ex}{Exercise}[...
Patricio's user avatar
  • 285
0 votes
1 answer
466 views

Numbering of Equations and Theorems in Appendix does not start from fresh

When my Appendix starts, the equations and theorems in it should start from (1) and not from the number which ended in the main paper. That is, if the last equation in main paper was numbered (7), ...
aks's user avatar
  • 1
1 vote
1 answer
81 views

Using \newtheorem with the standalone document class

Is it possible to create a small file containing a theorem? (possibly using the standalone document class) Using the following code with the standalone fails: \documentclass{standalone} \newtheorem{...
shnnnms's user avatar
  • 51
2 votes
2 answers
355 views

Is there an LNCS alternative to \newtheoremstyle of amsthm?

I find the \newtheoremstyle of amsthm very handy. As far as I know, LNCS class have only \spnewtheorem which allows to change only the head font and the body font. In contrast, \newtheoremstyle allows ...
Cyriac Antony's user avatar
0 votes
0 answers
68 views

Print list of theorems and their labels (using self-defined theorem environment using \newtcbtheorem)

Suppose I have defined \newtcbtheorem[number within=section]{mytheo}{Theorem}% {colframe=blue!35!black,enlarge top by=0.15cm,fonttitle=\slshape,breakable}{th} \newtcbtheorem[number within=section, ...
D.R's user avatar
  • 721
1 vote
0 answers
21 views

How to add a letter to the numbering of lemmas [duplicate]

I would like two of my lemmas to be numbered additionally by letters, e.g. Lemma 2a. and Lemma 2b, while the all other lemmas (and theorems etc.) are numbered normally by numbers. \newtheorem{lemma}{...
MATHX's user avatar
  • 13
2 votes
1 answer
1k views

How to change the numbering of lemas, theorems, propositions... etc.?

So actually, I am working with the class of MastersDoctoralThesis whose info you can find here. In it, I defined the theorem, lemmas, examples, definitions, corolaries, etc. format as \newtheorem{theo}...
leplata's user avatar
  • 123
2 votes
3 answers
243 views

Display theorem and axiom more compact

I would like to make my axioms a little more compact by removing the empty spaces. It is possible to reduce the space I’ve filled with red lines on the following picture. I have in my work some axioms,...
Lepticed's user avatar
  • 139
0 votes
1 answer
92 views

Restating a part of the definition

I am repeating a single definition several times, and I use restatable to do so. But I want the first occurrence of a definition to contain a qualification which is not repeated in the next ...
bozidarka's user avatar
  • 950
0 votes
1 answer
302 views

Theorem-Lemma-Proof environment

Here is the code: \documentclass{article} \usepackage{amssymb,latexsym,amsmath} \usepackage{ntheorem} \theorembodyfont{\upshape} \newtheorem*{theorem}{Theorem:} \newtheorem*{lemma}{Lemma:} \...
User's user avatar
  • 127
1 vote
0 answers
65 views

How do avoid empty boxes when splitting framed Theorems over two pages

I am working with mdframed and have the following issue: I am writing some mathematical lecture notes and I am using mdframed for Theorems, Definitions and so on. Sometimes it happens, that the text ...
B.Hueber's user avatar
  • 197