Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

7
votes
3answers
885 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
87 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
16 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
37 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}...
1
vote
1answer
23 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
34 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
50 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
57 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
15 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
31 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
44 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 \...
3
votes
1answer
170 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
108 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
33 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 ...
0
votes
1answer
80 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 ...
3
votes
2answers
286 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
265 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}...
0
votes
0answers
124 views

How to get around ! Package xkeyval Error: `tt' undefined in families `fxl'

I get the error - ! Package xkeyval Error: `tt' undefined in families `fxl'. pointing to this block of code - \makeatletter \newtheorem*{rep@theorem}{\rep@title} \newcommand{\newreptheorem}[2]{% \...
1
vote
1answer
21 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 \...
3
votes
2answers
162 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
407 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
371 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
123 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
69 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
507 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
83 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
148 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
71 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
72 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
236 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
134 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
261 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
533 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 ...
0
votes
1answer
621 views

Undefined control sequence with ntheorem and shaded theorems

I am working with ntheorem and have the following definition of a shaded theorem: \theoremclass{Theorem} \theoremstyle{break} \shadecolor{red} \def\theoremframecommand{% \psshadowbox[fillstyle=solid,...
3
votes
2answers
333 views

\newtheorem with qed-symbol

Is there a pre-defined theorem-environment for a theorem having the qed-symbol at its end? Something like the proof-environment but with the \theoremstyle{plain}? \documentclass{scrartcl} \...
3
votes
3answers
372 views

ACM sig-alternate document class — How to create unnumbered theorem-like environments

The command \newtheorem in the ACM sig-alternate document class takes two arguments. The first is the name of the environment and the second is the header, rendered in small-caps letters, that appears ...