11
votes
Accepted
How to deindent text within itemize
Instead of inserting the proof in the list and adapting the indentation, you could just resume the enumeration after using enumitem's resume keyword.
\documentclass{article}
\usepackage{amsmath, ...
9
votes
Accepted
"Unknown theoremstyle" warning with Springer Nature template
The template is set up with this preamble outline in sn-article.tex:
\documentclass[sn-mathphys,Numbered]{sn-jnl}% Math and Physical Sciences Reference
% <some more package loading>
\usepackage{...
6
votes
Accepted
Is there a better way to define a second proof environment?
The following code defines the environment claimproof as the proof environment from the amsthm package, but also redefines \qedsymbol at the beginning of the environment. Since the redefinition of \...
6
votes
Accepted
Formating theorems
As @John Kormylo said, some font don't have bold version.
\documentclass{article}
\usepackage{fontspec}
\usepackage{xcolor}
\definecolor{medred}{rgb}{0.75,0,0}
\usepackage{amsmath}
\usepackage{amssymb}...
5
votes
Accepted
Numeration of theorems, lemmas within section
As you are not provided any MWE, my suggestion based on my guess only:
\counterwithin{theorem}{section}
5
votes
Diamond-Symbol at the end of an environment
Just to be consistent, here is a solution using ntheorem. It has not changed in like 10 years should should not have issues with a 2017 installation. Just remember it takes several compilations for ...
5
votes
Accepted
Theorem/Example numbering in LaTeX
The following solution employs the etoolbox package and its \BeforeBeginEnvironment macro. Specifically, the additional preamble code shown below serves to step the thm counter at the start of an exmp ...
5
votes
Accepted
I cannot \pause in Beamer after defining a \newtheorem
You're getting an error because you are declaring a new theorem twice with the same name, which isn't allowed.
! LaTeX Error: Command \NewThm already defined.
Or name \end... illegal, ...
4
votes
Accepted
Define a thmtools theorem in beamer
You can use the notheorems option to prevent beamer from defining them (and if you are at it, remove the twoside option. It makes absolutely no sense with beamer).
% !TEX TS-program = xelatex
\...
4
votes
Diamond-Symbol at the end of an environment
A more elegant way is as follows. By the way, it's better to select the ending symbol as the same as the qed symbol. Just as what I said about theorem formats in my book, the qed symbol indicates &...
4
votes
Accepted
Theorem Style (like in image)
Something like this? I adapted amsmth's default plain theorem style to add the hanging indent, and defined a thmbox environment with tcolorbox to draw the blue box.
\documentclass{article}
\...
4
votes
Accepted
Add argument to theorem environment
Define an inner theorem and a new environment.
\documentclass{article}
% define it to your liking
\newtheorem{mylemmainner}{Lemma}[section]
\NewDocumentEnvironment{mylemma}{mo}
{%
\IfNoValueTF{#2}...
4
votes
LNCS proceedings template Command \proof already defined
The llncs class has its own way to define theorem-like environments and doesn't like to be called together with amsmath.
It already defines a proof environment, namely
\spnewtheorem*{proof}{Proof}{\...
3
votes
Diamond-Symbol at the end of an environment
You could create a wrapper environment which would add a diamond at the end of the environment defined by amsthm. Something around these lines:
\documentclass[ngerman, fontsize=11pt, DIV=15, BCOR = ...
3
votes
Accepted
How to number theorems starting with a prefix `n`: theorem n.1
I will assume that you're using a package such as amsthm or ntheorem and use commands such as \newtheorem to create theorem-like environments. If this is the case, I suggest you create a LaTeX counter ...
3
votes
Spacing when using parskip and thmtools
It is not really a bug of thmtools. When using the shaded style, thmtools loads the shadethm package, and wrap the theorem with the shadebox environment of the shadethm package.
The shadebox ...
3
votes
Formating theorems
I don't think you want to use “whatever” font in the statements of definitions. If you want to use sans serif for them, fine, but there should be a single sans serif font in a document, or it would ...
3
votes
Accepted
continue example repeating the title given the first time
You can use \getnamereftext and, of course, nameref (automatically loaded by hyperref).
\documentclass{book}
\usepackage{amsthm}
\usepackage{nameref}% or hyperref
\newtheorem{theorem}{Theorem}[...
3
votes
Accepted
\textfrench causing no chapter numbers in theorem numbering
Using \textfrench{\arabic{<counter>}} is definitly not the right way. I would define a \latin command that chooses the Roman font as set by fontsetup.
I changed the Arabic font, because I don't ...
3
votes
Make Theorem header a link to proof environment
I suggest you make use of the \hypertarget/\hyperlink mechanism provided by the hyperref package. Both commands take two arguments; the first argument of a linked pair of such commands should be the ...
3
votes
Make Theorem header a link to proof environment
You can try and fix the position of the anchor, because raiselinks (which should work) doesn't seem to suffice.
\documentclass{article}
\usepackage{amsthm} % or '\usepackage{ntheorem}'
\usepackage[...
3
votes
Accepted
Different numeration for Theorems
Don't do \large at the beginning of the document
Don't use preambles handed out by somebody
Don't pile up preambles
Why 1? Because it's wrong. Use the 12pt option instead.
Why 2? Because most of the ...
3
votes
Long url doesn’t break in theorem optional argument (under amsthm, hyperref, xurl)
You are under no obligation to use the optional argument of the theorem environment to place the URL string.
This approach will have to be modified if the URL string contains certain TeX-special ...
3
votes
Accepted
Long url doesn’t break in theorem optional argument (under amsthm, hyperref, xurl)
The problem is that the url is math. The theorem code stores the optional argument in a box that it then unwraps later but TeX performs some optimization in this case and omits the implicite penalties....
3
votes
Accepted
How do we get Theorem environments without dot after the number?
You find the default parameters at https://tex.stackexchange.com/a/17555/4427
\newtheoremstyle{plain}
{\topsep} % ABOVESPACE
{\topsep} % BELOWSPACE
{\itshape} % BODYFONT
{0pt} % ...
3
votes
Accepted
Counter of corollary updated both after theorems and lemmas
Assuming your code loads the amsthm or ntheorem package, I suggest you create two corollary-like environments: corrt and corrl, to be used for corollaries associated with theorems and lemmas, ...
3
votes
Accepted
Count theorems like Theorem part.chapter.number
Are you looking for the following?
\documentclass{scrreprt}
\usepackage{amsmath,amsthm,thmtools} %thmtools is used to share counters
\declaretheorem[numberwithin=chapter, name=Theorem]{Thm} %print ...
3
votes
Accepted
Setting up a paired counter for exercise / solution theorems
I think one counter and the label-ref mechanism is enough:
\documentclass{article}
\usepackage{amsthm}
\newcounter{exercise}
\counterwithin{exercise}{section}
\NewDocumentEnvironment{exercise}{ m +b }{...
3
votes
Accepted
Appropriate parenthesizing of theorem title
Main problem: \label must go after the entire theorem header specification. There is no sensible way to support the syntax you seem to want that doesn't really make sense. Moreover
\em doesn't take ...
2
votes
Accepted
Different numbering for align and theorem environments
You seem to want that theorems and equations share the counter. Thus something like
\newtheorem{theorem}[equation]{Theorem}
will do the job.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
theorems × 1664numbering × 304
amsthm × 267
environments × 153
cross-referencing × 149
thmtools × 113
ntheorem × 100
spacing × 83
beamer × 77
formatting × 71
amsmath × 64
newtheorem × 64
tcolorbox × 63
counters × 61
lists × 60
hyperref × 51
mdframed × 51
indentation × 47
enumerate × 46
cleveref × 46
table-of-contents × 40
line-breaking × 39
sectioning × 38
math-mode × 36
lyx × 36