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, ...
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 ...
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 }{...
2
votes
Accepted
Theorem numbering after redefining sections
\renewcommand\thetheorem{\arabic{section}.\arabic{theorem}} but that's going to confuse any reader.
2
votes
Accepted
Making normal brackets inside the theorem environment
The newtx and newpx font packages have a theoremfont option that produces italic text and upright delimiters in the plain style of amsthm. In other settings, the "theorem" font family can be ...
2
votes
Count theorems like Theorem part.chapter.number
I'm not seeing the point of this. When you start a new \part, the chapter number is not reset. So if you have this skeleton
\part{First part}
\chapter{A}
\begin{Thm} text \end{Thm}
\chapter{B}
\begin{...
2
votes
Hidden Theorem Style
You can use the comment package to ignore an environment as follows:
\documentclass{article}
\usepackage{amsthm,thmtools}
\usepackage{pifont}
\usepackage{comment}
\declaretheorem[
%style=...
2
votes
Appropriate parenthesizing of theorem title
If I understand your code correctly, you're looking to write "Theorem" with an italic/smallcap lettering combination. The basic Computer Modern/Latin Modern font family doesn't provide such ...
1
vote
Correct way to remove spaces when adding hooks to environment
Note that this answer contains NO working code.
Caveat emptor ...
First, as you seem to realise, the spacing is not introduced by your use of hooks. To see this, we can use simply
ABC\UseHook{mythm/...
1
vote
Framing theorem and proof together
I found a solution to this as follows:
Problem 1: Use skipabove and skipbelow arguments of mdframed to set theorem's skipbelow and proof's skipabove to 0pt. This will place the boxes right after each ...
1
vote
Count theorems like Theorem part.chapter.number
The following does the trick:
\renewcommand\theThm{\thepart.\thechapter.\arabic{Thm}}
\makeatletter
\@addtoreset{Thm}{chapter}
\@addtoreset{chapter}{part}
\makeatother
Not sure if this is the ...
1
vote
Add letter to numbering of theorem environments. Locally, and then restore to default behaviour?
One simple solution:
Copy the definition of subequations from amsmath
... but taking care to make sure you modify \the<counter> for each environment impacted $
\documentclass[12pt]{book}
%\...
1
vote
How make newtx option theoremfont work with thmtools?
At least with newtx version 1.732, we get slanted text for the body of theorems (but upright parentheses and brackets there) by using option thmslshape (without option theoremfont) together with ...
1
vote
Tagging theorems as one tags equations
Assuming you don't want this to step the theorem counter, one option is to use thmtools' internal \thmt@suspendcounter command. I've implemented it as the tag key to be used as the optional argument ...
1
vote
Upright brackets in theorem body with bodyfont=\mdseries\itshape?
If you're willing to forgo verbatim material in your theorems, you can process the body of the theorem with embrac's \embrac_replace_brackets:N command.
\documentclass{article}
\usepackage{embrac}
\...
1
vote
Indentation and fonts conflict in theorem environment with amsbook
You can use hooks to change the indent without patching the commands. Here we set \thm@indent to \noindent before every theorem heading (the command \@begintheorem), and as amsbook's proof environment ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
theorems × 1663numbering × 304
amsthm × 267
environments × 153
cross-referencing × 149
thmtools × 113
ntheorem × 100
spacing × 83
beamer × 77
formatting × 71
amsmath × 64
newtheorem × 64
tcolorbox × 62
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