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
7 votes
1 answer
144 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 ...
user avatar
2 votes
1 answer
33 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{...
user avatar
  • 244
0 votes
0 answers
29 views

How to import \newtheorem{} from an external .tex file to main file?

I have an external .tex file that stores all of my custom commands, and I also wanted that .tex file to include \newtheorem lines. The structure of this input file is of the form: \newcommand{\im}{\...
user avatar
1 vote
1 answer
19 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 ...
user avatar
1 vote
1 answer
21 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}} \...
user avatar
0 votes
0 answers
36 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[.....]{...
user avatar
  • 1
0 votes
2 answers
57 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}...
user avatar
  • 103
1 vote
2 answers
54 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$ ...
user avatar
  • 303
0 votes
1 answer
36 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 ...
user avatar
  • 183
0 votes
0 answers
23 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}}{}{\...
user avatar
  • 61
4 votes
2 answers
111 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....
user avatar
0 votes
2 answers
60 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 ...
user avatar
0 votes
2 answers
71 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 ...
user avatar
  • 103
0 votes
1 answer
23 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}{...
user avatar
0 votes
1 answer
48 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....
user avatar
  • 1
3 votes
2 answers
72 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 ...
user avatar
  • 31
1 vote
1 answer
46 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." ...
user avatar
1 vote
1 answer
37 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 ...
user avatar
0 votes
0 answers
35 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). ...
user avatar
  • 1
-1 votes
1 answer
109 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 ...
user avatar
  • 143
3 votes
1 answer
164 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.
user avatar
  • 243
0 votes
0 answers
27 views

Using algpseudocode-package in theorem

I've defined my theorem style by \theoremstyle{definition} \newtheorem{problem}{Problem}[section] \newtheorem{solution}{Solution}[section] I want to write a pseudocode in my solution section like ...
user avatar
1 vote
1 answer
29 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]{ \...
user avatar
  • 232
1 vote
2 answers
48 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}[...
user avatar
  • 197
0 votes
1 answer
112 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), ...
user avatar
  • 1
1 vote
1 answer
34 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{...
user avatar
  • 51
1 vote
2 answers
101 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 ...
user avatar
0 votes
0 answers
30 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, ...
user avatar
  • 525
1 vote
0 answers
19 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}{...
user avatar
  • 13
1 vote
1 answer
527 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}...
user avatar
  • 113
2 votes
3 answers
100 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,...
user avatar
  • 137
0 votes
1 answer
39 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 ...
user avatar
  • 908
0 votes
1 answer
80 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 avatar
  • 127
1 vote
0 answers
47 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 ...
user avatar
  • 167
1 vote
1 answer
141 views

New environment for questions and answers

I want to create my own environment with an "answer" parameter and optional "font style" parameter. From the new environment, with name QandA for example, I need the following ...
user avatar
1 vote
1 answer
37 views

TeX counter shared with \newtheorem [duplicate]

\renewcommand{\thesection}{\arabic{section}} \renewcommand{\thesubsection}{\arabic{section}.\arabic{subsection}} %%%%% \newtheorem{defi}{definition}[subsection] \newtheorem{defis}{definition}[defi] ...
user avatar
2 votes
1 answer
26 views

How can I combine two newtheorem environments so that one is continuing the numbering of the other plus some additional numbering?

I want to achieve having two different environments for my lemmas, say lem1 and lem2, such that Lemmas written by \begin{lem1} \end{lem1} are numbered within the section, and if I add lemmas by \begin{...
user avatar
  • 27
5 votes
4 answers
697 views

How to write a Theorem in 2 different sections with the same numbering?

In a maths paper I am writing, I use what I've written below for my theorems. The trouble is, when I write a theorem in section 2, its numbering is something like 'Theorem 2.1.', but when I try to ...
user avatar
1 vote
1 answer
126 views

theoremstyle is not applying I think [closed]

I would like to use different theorem styles for my definitions and remarks. but somehow the command \theoremstyle{definiton} does not change anything at all at the moment: here's the code would love ...
user avatar
5 votes
2 answers
87 views

Forcing space after a theorem environment in LaTeX

I'm making a workbook for students. I'd like to create a practice-problem theorem environment that includes empty space after the theorem environment. So far I have: \newtheoremstyle{exampstyle} {} ...
user avatar
0 votes
0 answers
36 views

How can I change the title position in declaretheoremstyle?

How can I make the following box using declaretheoremstyle?
user avatar
0 votes
0 answers
27 views

How can I keep theorem and proof in same location in *.tex file but appear in separate sections of document (with appropriate labels) [duplicate]

I don't regularly use LaTeX so apologies if this has an obvious solution. I am compiling theorems/lemmas and their respective proof in a document and I wanted to be able to somehow define a theorem ...
user avatar
2 votes
1 answer
106 views

How to remove (some of) the vertical space between a centered formula and "Theorem"

Some of my theorems contain only a centered formula. In these cases, the vertical space before the entered formula is too large sometimes. For example: What would you suggest to do in this case? (I'm ...
user avatar
  • 6,152
1 vote
1 answer
130 views

ntheorem: Manually placing end-of-proof symbol in an equation

I would like to use ntheorem to produce theorems and proofs. I've got an end-of-proof symbol that works ok but, in the case of a trivial result, I'd like to place the symbol in the theorem itself. I'...
user avatar
1 vote
0 answers
67 views

Vertical space problem with theorem environment and (sub)section title

I've define a new theorem environment : \renewenvironment{leftbar}[1][\hsize] { \def\FrameCommand { {\color{ffg_title_color}\vrule width 3pt} \hspace{0pt} } \MakeFramed{...
user avatar
  • 35
1 vote
1 answer
64 views

Autoref numbering different from numbering displayed in theorem itself

I am facing the problem that the numbering for defined tcbtheorem is numbered correctly in the tcbtheorem environment itself, but that autoref typically displayes a different number, or gets stuck in ...
user avatar
2 votes
1 answer
124 views

How to have some margin on both left and right sides in a theorem environment?

Here is a kind of style I want: The proof environment, which has some margin on both left and right side. Also has a qed square on the last line. i.e. Theorem 1: xxxxxxxxxxxxxxxxxxx. proof: ...
user avatar
1 vote
1 answer
34 views

May the second column in a row of theorems be aligned

Is there a way to align the second column of universalized disjunctions in the following row of theorem like environments? \usepackage{amsmath, amssymb, amsthm} \newtheoremstyle{exercise} {\topsep} ...
user avatar
  • 3,675
0 votes
1 answer
301 views

Missing \item error on theorem environment!

This code produces the error "! LaTeX Error: Something's wrong--perhaps a missing \item.See the LaTeX manual or LaTeX Companion for explanation.Type H for immediate help.... \end{lem}". I ...
user avatar
0 votes
0 answers
44 views

How do I define a more stable numbering of proof steps with letters

I have some proofs that require many steps, and I wanted to number them with letters so as to not confuse with the numbers used for Definitions, Axioms, Lemmas and Theorems. Here is a MWE of what I ...
user avatar
  • 3,675