11
votes
Accepted
Retrieving the title of a theorem, e.g. "My name" from "Lemma 1 (My name)"
The thmtools package allows to do that easily:
\documentclass{article}
\usepackage{hyperref}
\usepackage{thmtools}
\declaretheorem{Theorem}
\begin{document}
\begin{Theorem}[My Theorem]\label{thm}
$...
10
votes
Accepted
How do you reprint a theorem, proposition, etc. in its entirety?
The thmtools defines restatable theorems. Here is how it goes. B.t.w., the thm theorem style does not exist, as this is defined by thmtools. I suppose you meant the plain style. Also, I had to ...
9
votes
Accepted
xgalley breaks memoir and ntheorem
This isn't a fix. Imho regarding the experimental status of the code it is more important to find the problems currently.
So I looked in the l3galley code to find all redefinitions of standard LaTeX/...
9
votes
How do you reprint a theorem, proposition, etc. in its entirety?
You can \label the theorem that has to be dublicated and then reuse its counter when you rewrite it via \ref:
\newenvironment{usethmcounterof}[1]{%
\renewcommand\thethm{\ref{#1}}\thm}{\endthm\...
9
votes
Accepted
Is ntheorem[thref] truly incompatible with hyperref?
unchanged things
The thref option of ntheorem is and was always incompatible with hyperref.
Without hyperref a label like
\label{theo}[additional text] will write
\newlabel{theo}{{1}{1}}[additional ...
8
votes
Accepted
Biometrika journal style file not getting along with TeXLive-2020
The biometrika class file makes (at least) three bad errors:
it uses \rm all around, notwithstanding that the command has been deprecated for 25 years (well, 14 according to the release date, but it'...
6
votes
Accepted
Clever references to theorem lists
cleveref stores the values of the enumi counter. You can extract them and then format them (I didn't try to add links, but this is possible to):
\documentclass[english]{amsart}
\usepackage{babel}
\...
6
votes
Accepted
Interference between newtxtext and ntheorem
Package newtxtext loads amsthm. amsthm and ntheorem cannot be used together. The ntheorem manuals recommends to use option amsthm instead. So you have to prevent newtxtext from loading amsthm. ...
6
votes
Need to create an unnumbered 'conclusion' environment
How to create unnumbered theorem-like environments depends strongly on whether your documents loads the amsthm or the ntheorem package (or neither).
If you work with the amsthm package, use the \...
5
votes
Accepted
amsmath package error using SIAM LaTeX template files
For very strange reasons, ntheorem, when used with the thmmarks and amsmath options, redefines \maketag@@@ (an internal command of amsmath) to do, among other things
\settowidth{\tagwidth}{$##1$}%
...
5
votes
amsmath package error using SIAM LaTeX template files
Looks like a "feature" of ntheorem package
You can reproduce the error with
\documentclass{article}
\usepackage[leqno]{amsmath}
\RequirePackage[amsmath,thmmarks,hyperref]{ntheorem}%[1.33] (bad use ...
5
votes
Accepted
ntheorem's fleqn and thmmarks options break \if@display
When you load the thmmarks option, ntheorem does
\gdef\[{%
<code adding to the corresponding in the LaTeX kernel>
}
\gdef\]{%
<code adding to the corresponding in the LaTeX kernel>
}
...
5
votes
Accepted
Using ntheorem with amsbook
It is normally not too hard to prevent a package loading (if necessary by abusing the mechanism latex uses to prevent a package being loaded twice). However amsbook does not load amsthml it has the ...
5
votes
Need to create an unnumbered 'conclusion' environment
Mico's answer is quite nice if what you want is a theorem-like environnent. But for a thesis, a conclusion can be an unnumbered section (or subsection, depending of the text), imho. So that I would do ...
4
votes
Accepted
ntheorem won't display theoremsymbol
TL;DR
There is a hacky way to solve this, but the best thing is to have \ends on separate lines. And I advise you to have \begins on separate lines as well.
Long version
A "hack" is to add ...
4
votes
amsmath package error using SIAM LaTeX template files
If it may be an aswer only for the second part of yor question, putting into \mbox seems to solve the problem:
\documentclass[review]{siamart0516}
\usepackage{amsmath}
\begin{document}
\begin{...
4
votes
Accepted
Indent only first line of newtheorem
Add the indentation as part of the theorem header font, that is \theoremheaderfont:
\documentclass{report}
\usepackage{indentfirst}
\usepackage{ntheorem}
\usepackage{lipsum}
\theoremheaderfont{\...
4
votes
Retrieving the title of a theorem, e.g. "My name" from "Lemma 1 (My name)"
Here is an additional solution that uses amsthm and is indipendent from hyperref. It mimics LaTeXs built in cross-ref-routine:
\documentclass{article}
\usepackage{amsthm}
\usepackage{amssymb}
\...
4
votes
Accepted
Theorem symbol with ntheorem
Load the ntheorem package with the option thmmarks.
\documentclass{article}
\usepackage{mathtools}
\usepackage[thmmarks]{ntheorem}
\usepackage{mdframed}
\mdfsetup{%
skipabove=\topskip,
...
4
votes
Accepted
Remove space between "Theorem" and theorem number when using ntheorem
Thanks to daleif's helpful comment I was able to solve the question by creating a \newtheoremstyle, based on the default style "plain" found in ntheorem.sty.
Plain style:
\newtheoremstyle{plain}%
{...
4
votes
Accepted
Placement of figures inside an ntheorem environment
This answer provides two solutions.
The essential elements for the first approach were posted here: Will it ever be possible to use wrapfig with an enumerate or itemize environment?
This solution ...
4
votes
Accepted
I would like to implement \qedhere in a class that clashes with packages that include it
This will allow you to use the proof environment of amsthm without changing the theorem-like structures as defined by the class, but perhaps the copy editors won't be happy.
\documentclass{lms}
%...
4
votes
Accepted
microtype/ntheorem: Protrusion not affecting headers of the theorems
The problem with the code you tried from the other answer is that here the unboxing takes place inside another (incompatible) box, which makes tex stumble. The solution is, just as you suggested in ...
4
votes
Accepted
ntheorem Endmark On Line Alone Doesn't Flush Right
Well, I only have a workaround:
\begin{examplelist}
\NoEndMark % <==========================================================
\item First item would go here.
\item But if there's lots of text in ...
4
votes
Ntheorem: Definitions rendered in italics despite \theoremstyle{definition}
There is no definition style with ntheorem.
\documentclass[twoside]{article}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{mathtools}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\...
4
votes
Using ntheorem with amsbook
I don't agree that ntheorem is better than amsthm.
However, a not thoroughly tested way to remove amsthm from amsbook is as follows.
\makeatletter
\let\latex@newtheorem\newtheorem
\let\latex@thm\@...
4
votes
Accepted
Odd interaction between tabularx and some list-like environments
Recent (since 2017) versions of the tabularx manual have documented that setting \hsize isn't enough if you need to embed latex list environments (including trivlists like theorems), you need to set \...
4
votes
Accepted
ntheorem: Set normalfont to Theorem-Note
You didn't indicate which of ntheorem's pre-defined theorem styles you employ -- plain, break, change, break, margin, marginbreak, nonumberplain, nonumberbreak, empty, and emptybreak -- so I'll assume ...
4
votes
Accepted
package ntheorem seems not to obey the LaTeX-kernel's old protection mechanism
The internal macro \thm@@thmcaption does \edef instead of \protected@edef.
\documentclass{article}
\usepackage{ntheorem}
\usepackage{xpatch}
\newtheorem{MyTheorem}{Some theorem}
\renewcommand{\...
4
votes
Accepted
Unwanted space in the beginning of first line by ntheorem
The nonumberplain style expects the theorem to have a heading specified by the second argument to \newtheorem, and inserts some space that is meant to go between this heading and the body of the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ntheorem × 254theorems × 100
amsthm × 24
hyperref × 21
numbering × 21
amsmath × 20
cross-referencing × 17
spacing × 15
indentation × 11
cleveref × 11
equations × 9
thmtools × 9
environments × 8
counters × 8
mdframed × 8
lists × 7
line-breaking × 7
table-of-contents × 6
polyglossia × 6
beamer × 5
math-mode × 5
horizontal-alignment × 5
memoir × 5
incompatibility × 5
formatting × 4