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, ...
cfr's user avatar
  • 194k
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 ...
egreg's user avatar
  • 1.1m
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 ...
Zarko's user avatar
  • 293k
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 }{...
Stephen's user avatar
  • 2,872
2 votes
Accepted

Theorem numbering after redefining sections

\renewcommand\thetheorem{\arabic{section}.\arabic{theorem}} but that's going to confuse any reader.
David Carlisle's user avatar
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 ...
mbert's user avatar
  • 3,428
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{...
egreg's user avatar
  • 1.1m
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=...
mbert's user avatar
  • 3,428
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 ...
Mico's user avatar
  • 496k
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/...
cfr's user avatar
  • 194k
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 ...
kaba's user avatar
  • 565
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 ...
Brauer Suzuki's user avatar
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} %\...
Willie Wong's user avatar
  • 23.9k
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 ...
murray's user avatar
  • 7,758
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 ...
mbert's user avatar
  • 3,428
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} \...
mbert's user avatar
  • 3,428
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 ...
mbert's user avatar
  • 3,428

Only top scored, non community-wiki answers of a minimum length are eligible