We’re rewarding the question askers & reputations are being recalculated! Read more.
11

I think you are looking for \renewcommand\proofSymbol{\ensuremath{\blacksquare}}


11

Using amsthm would avoid yourself this kind of problem, so unless there's a feature of ntheorem you really need, I would suggest the switch. Otherwise, you can modify the break style of ntheorem to allow line breaks, but this new style will not work the same way in some situations (but should be similar enough for it not to be bothering): \documentclass{...


11

I'd avoid abusing \thehyp: you'll be in trouble if you want to get a list of hypotheses, for instance. In my opinion, the best approach is to enclose the "subhypotheses" in an environment that changes the meaning of the hyp counter and of some related things. \documentclass{article} \usepackage{ntheorem} \newtheorem{hyp}{Hypothesis} \makeatletter \...


10

The output of a counter is stored in the macro \the<counter>. So you have to change \thethm. Based on your request you have to do this local. In the example below I do this with \begingroup...\endgroup. Of course you must decrease the counter thm too. \documentclass{scrartcl} \usepackage{ntheorem} \newtheorem{thm}{Theorem} \begin{document} \begin{...


9

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/TeX commands which perhaps could matter and setup a test environment. With it you can restore the "old" meanings of the commands. Attention: The commands ...


9

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\addtocounter{thm}{-1}} A basic example would be so to speak: ... \begin{thm}\label{mythm} We'd like to introduce the \bfseries{theorem of the universe}, the ...


9

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 comment the autorefnames, as they're already defined by thmtools. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsthm,thmtools}% \setlength\...


8

Here we define a theorem style quote, which is similar to the break style but uses a quote environment in addition. As example, I took the theorem example from your link. \documentclass{article} \usepackage{ntheorem} \makeatletter \newtheoremstyle{quote}% {\item[\rlap{\vbox{\hbox{\hskip\labelsep \theorem@headerfont ##1\ ##2\theorem@separator}\...


8

It seems a "bug" at least in the documentation. Just switch the declarations: \newtheorem{definition}{Definition} \newmdtheoremenv{theorem}[definition]{Theorem} Or declare a "dummy" theorem environment and define all in terms of this one: \newtheorem{dummy}{dummy}[chapter] \newmdtheoremenv{theorem}[dummy]{Theorem} \newtheorem{definition}[dummy]{Definition}...


8

With hyperref loaded, quite a few instances of "2.3em" have to be replaced by a larger value. For convenience, I use the etoolbox package to do so. \documentclass{book} \usepackage[amsthm,thmmarks,hyperref]{ntheorem} \usepackage{amsmath,amsfonts} \usepackage[bookmarks=true,bookmarksnumbered=true]{hyperref} \usepackage{etoolbox} \makeatletter \patchcmd{\...


8

The thmtools package allows to do that easily: \documentclass{article} \usepackage{hyperref} \usepackage{thmtools} \declaretheorem{Theorem} \begin{document} \begin{Theorem}[My Theorem]\label{thm} $1 + 3 = 4$ \end{Theorem} As we saw in Theorem~\ref{thm} (\nameref{thm}) \end{document} You can obtain the same using amsthm: \documentclass{article} \...


7

The boldmath is inserted by \def\theorem@checkbold{\if b\expandafter\@car\f@series\@nil\boldmath\fi} so it looks as if you could go \makeatletter \def\theorem@checkbold{} \makeatother to disable that feature


7

\endtrivlist should be paired with \trivlist (rather than \@trivlist) despite the name including the letters l i s t the trivlist mechanism should be seen as the basic display environment mechanism in LaTeX. It is used for all kinds of display environment that would not normally be considered lists, such as center, verbatim, tabbing. You really don't want to ...


7

The solution is to load the ntheorem package with the option amsmath also. From the ntheorem documentation: Activation of endmarks: [thmmarks] enables the automatical placement of endmarks (see 2.3); when using the amsmath-package, [thmmarks] must be complemented by [amsmath] (see Section 3.2). So, modifying your MWE to \documentclass[draft,twoside,...


7

This can be easily achieved using either the mdframed or tcolorbox packages. An option using mdframed: \documentclass[]{article} \usepackage[a6paper]{geometry}% just for the example \usepackage{blindtext} \usepackage[framemethod=tikz]{mdframed} \usepackage{ntheorem} \newmdtheoremenv[ ntheorem=true, hidealllines=true, backgroundcolor=gray!50, ...


7

cleveref redefined \label to now take an optional argument that overrides the cleveref type. However, if you don't use this optional argument, then you're fine. Switch the load order between cleveref and ntheorem. \documentclass{beamer} \let\Tiny\tiny% http://tex.stackexchange.com/q/58087/5764 \makeatletter \let\th@plain\relax \makeatother \usepackage{...


7

cleveref provides \crefalias \crefalias{Thm}{thm} MWE: \documentclass{article} \usepackage{ntheorem,cleveref} \newtheorem{thm}{Theorem} \theoremstyle{break} \newtheorem{Thm}[thm]{Theorem} \crefname{thm}{theorem}{theorems} \crefalias{Thm}{thm} \begin{document} \begin{thm}\label{thm:short} Theorem with short text. \end{thm} \begin{...


6

what you want is already provided by the proof environment of amsthm. try the following (simplified from your example): \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amssymb} % loads amsfonts automatically \begin{document} \begin{proof}[Solution] This is an exercise \end{proof} \...


6

The problem is caused by the thmmarks option (if you delete it from your code, the error vanishes); this problem is documented in page 25 of the ntheorem documentation: Naturally, ntheorem.sty will not work correctly in combination with other styles which change the handling of theorem-like environments, or environments concerned with the ...


6

\makeatletter \def\getenvcounter#1{% \expandafter\expandafter\expandafter\@getenvcounter\csname mkheader@#1\endcsname} \def\@getenvcounter\csname#1\endcsname#2#3#4#5{#4} \makeatother Explanation: \show\prop gives > \prop=macro: ->\let \thm@starredenv \@undefined \csname mkheader@prop\endcsname . Then \show\mkheader@prop gives > \mkheader@prop=...


6

You can use the predefined commands of ntheorem to manipulate the style. In the example I uses \theoremstyle{break} do set the global style. \theoremindent is used to set the indention of the whole environment. theoremheaderfont is used befor every header. So I use this command to "reindent" the \theoremindent \documentclass{article} \usepackage{ntheorem} ...


6

The braces are actually hardcoded in the definition of the break style, so the definition needs to be changed. \documentclass{article} \usepackage{amsmath} \usepackage{framed} \usepackage[hyperref, amsmath, amsthm, framed, thmmarks]{ntheorem} \makeatletter \renewtheoremstyle{break}% {\item[\rlap{\vbox{\hbox{\hskip\labelsep \theorem@headerfont #...


6

I used the thmtools package as a front-end for amsthm in order to define a new Proof environment; the other two environments were created using \newenvironment. The Proof, claim and precondition environments use adjustwidth from the changepage package to increase the left margin. Of course, feel free to make the necessary adjustments according to your needs: ...


6

The problem is that \theorem@headerfont calls \theorem@checkbold and this macro does \if b\expandafter\@car\f@series\@nil\boldmath\fi This is the reason for the disappearance: the font used is boldface and this causes \boldmath to come into action but XITS Math has no bold version. If you want to use ntheorem and math in the theorem labels, then you need ...


6

The ntheorem package covers the \qedhere in different ways. Here's an example on which you can elaborate. The "normal font attribution" is easily obtained by (re)defining the theorem style. \documentclass{book} \usepackage{amsmath,amssymb} \usepackage{etoolbox} \usepackage[amsmath,framed,thmmarks]{ntheorem} % \numberwithin{equation}{chapter} \...


6

This does not require introduction of new counters at all. \newtheorem has two syntaxes \newtheorem{myname}{Heading}[countwithin] and \newtheorem{myname}[usecounter]{Heading} So if you set up your first theorem definition to be counted within subsection, and then tell the other environments to use the counter of your first environment you will get the ...


6

If you only need theorem referencing (and no figure, table, listing etc.), you can use the theoremref package. The latest version on CTAN is already compatible with hyperref. \documentclass{article} \usepackage{amsthm, theoremref, hyperref} \newtheorem{theorem}{Theorem} \begin{document} \begin{theorem}\thlabel{thm:Fermat} This is a theorem about Fermat. \...


6

You can easily hijack the theorem separator/punctuation that comes immediately after the theorem number. In your case it is empty, but in any case you can make it include a command \thmfoot which you can redefine when needed. Now use a combination of \footnotemark and \footnotetext to get the footnote: \documentclass{scrbook} \usepackage{etoolbox} \...


6

This is a possible solution. Each time you want to increment the number you have to issue the command \theoremgroup. Code: \documentclass{article} \usepackage{ntheorem} \newtheorem{theorem}{Hypothesis} \usepackage{chngcntr} \newcounter{pretheorem} \counterwithin{theorem}{pretheorem} \renewcommand\thetheorem{\arabic{pretheorem}\alph{theorem}} \newcommand{...


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