Skip to main content

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
2 votes
1 answer
53 views

Connected counters

The basic idea is that I am going to have examples of english sentences and then alternative formalizations of them. I want an arabic counter (‘eg’ in MWE) for the english sentences and an ...
Ainsley Pullen's user avatar
2 votes
1 answer
122 views

Define your own “list of …”

I'm currently working on a book, and I want to create a list of examples. I tried lots of solutions available online, but none suited me well - see for example: https://texblog.org/2008/07/13/define-...
shahroor's user avatar
4 votes
1 answer
119 views

Is possible to decrease the text margin of a theorem automatically?

I am writing a LaTeX document where I formatting a mathstatement environment as into the following code. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
Antonio Maria Di Mauro's user avatar
5 votes
2 answers
447 views

How to add a "qed square" at the end of a definition?

I'm using the acmart documentclass for a conference paper submission. I've provided a simple example (code below) which currently renders to the following output: Questions: How can I change the &...
0xbadf00d's user avatar
  • 523
0 votes
1 answer
21 views

\newtheorem with blank printed output?

Is there something I can write instead of Printed output, in \newtheorem{prg}{Printed output}[Theorem], to ensure a blank output, so that only the counted number is left after writing \begin{prg} \end{...
Frode Alfson Bjørdal's user avatar
0 votes
1 answer
97 views

Is possible to use declaretheoremstyle with newtheorem for modifying theorem style?

I'm typing some lecture notes I had with some theorems, propositions, axioms, etc., and I want to modify the style for such environments: add macros, shaded backgrounds, or any simple modification (...
Manuel E's user avatar
0 votes
1 answer
109 views

Environment prop undefined and also already defined LNCS template

Trying to put my paper into LNCS format and I'm having a weird error if I comment out the line \newtheorem{prop}[theorem]{Proposition} it tells me prop is undefined but if I uncomment the line it ...
Hao S's user avatar
  • 878
0 votes
1 answer
56 views

Theorem environment counter incrementing section/subsection counter [closed]

I have the following theorem environment's set up: \usepackage[framemethod=TikZ]{mdframed} % Defined mdtheoremenv used below % I don't believe this affects anything with numbering, including just in ...
codeing_monkey's user avatar
1 vote
0 answers
101 views

Defining new mathematical statements [closed]

I would like to define some new mathematical statements in my documents. With the capability of using some numbering system, I thought about using section as shown. But would like to know what ...
Veak's user avatar
  • 1
5 votes
2 answers
102 views

Problem expanding math in arguments of en environment

I want to redefine by hand a "restatable" environment for theorems. I have to do so because for some obscure reason the jloganal class (for the Journal of Logic and Analysis) mess it up: ...
Quentin G's user avatar
0 votes
0 answers
19 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
221 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} \...
Frode Alfson Bjørdal's user avatar
0 votes
1 answer
71 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
  • 119
5 votes
1 answer
201 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
  • 173
0 votes
0 answers
87 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
3 answers
68 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
24 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
133 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,051
0 votes
1 answer
37 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
40 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
658 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
3 votes
1 answer
421 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
  • 771
2 votes
1 answer
372 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
  • 1
2 votes
1 answer
50 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
49 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
1 answer
90 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
15 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
8 votes
1 answer
465 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
59 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
44 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
30 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
2 answers
424 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
  • 1
1 vote
2 answers
95 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$ ...
Rushi's user avatar
  • 313
1 vote
1 answer
324 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
  • 225
0 votes
0 answers
27 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
165 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
701 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 ...
Sundar's user avatar
  • 725
0 votes
2 answers
416 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
48 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
522 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
79 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
78 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
84 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
-1 votes
1 answer
335 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
  • 175
3 votes
1 answer
266 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
131 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
170 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
  • 339
1 vote
1 answer
800 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
  • 11
1 vote
1 answer
103 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
  • 151
3 votes
2 answers
509 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