Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ntheorem]

A package for handling theorem-like environments.

3
votes
1answer
34 views

Extend theorem header with title by citation

How can I redefine the theorem style, so that I can provide two "optional" arguments (I'm fine with using \begin{Definition}[title]{} if no citation is wanted.) I guess I'm quite flexible with the ...
1
vote
1answer
24 views

Line Break in Title of ntheorem

If I have a theorem or lemma or example, I want it to be split in two rows and not run into the margin and of the page. How can I achieve that? MWE \documentclass{article} \usepackage{framed,amsmath,...
1
vote
1answer
17 views

Ntheorem: Definitions rendered in italics despite \theoremstyle{definition}

I am using ntheorem. The text in my theorems is showing up in italics as expected. However, the text in my definitions is also italicized and it should not be. I have used the \theoremstyle{...
0
votes
0answers
38 views

End mark switching fails because \@ifnextchar's behavior in an environment hook is not as naively expected

For the purpose of readability, a proof can be segmented into claims. The proofs of claims (which I will call "reasonings" in the following) are usually "executed" immediately and within the outer ...
1
vote
1answer
30 views

Theorem titles in outer margins (even / odd pages)

I would like theorem / definition / etc. labels to appear in the outer page margin (taking even and odd pages into account). First, I tried to use the thmtools package (code and image below). However, ...
0
votes
1answer
26 views

Missing endmarks with ntheorem when ending with a formula

MWE \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage[thmmarks]{ntheorem} % proof \theoremstyle{plain} \theoremheaderfont{\normalfont\bfseries} \theoremprework{\...
4
votes
2answers
36 views

ntheorem Endmark On Line Alone Doesn't Flush Right

ntheorem seems to successfully handle every possible endmark placement EXCEPT when it's placed on a line alone. I noticed the issue following a list so I included it in the MWE. Also I'm ...
2
votes
1answer
64 views

Advanced Theorems List from ntheorem Documentation throws errors

I have defined my theorems as follows \documentclass[a4paper,twoside]{article} \usepackage{amsmath,amsfonts,mathtools,framed} \usepackage{enumitem} % einfacher Nummerierung verändern \usepackage{...
1
vote
1answer
51 views

Problem with list theorems and ntheorem. Clash with hyperref?

I have defined my theorems as follows \documentclass[a4paper,twoside]{article} \usepackage{amsmath,amsfonts,mathtools,framed} \usepackage{enumitem} % einfacher Nummerierung verändern \usepackage{...
0
votes
1answer
33 views

How to get 4 different theorem environments to be numbered consecutively in ntheorem?

I am working with the ntheorem package and a while back customized it. I would like my propositions, theorems, corollaries, and lemmas to be numbered as followed (for Chapter 1 - all of them ...
1
vote
0answers
44 views

Tcbtheorem with crosslinking

I had created a document with problems. Some feature I implemented is a click on the problem number, which leads to the answer at the end of the document and vice versa (look MWE). My ...
2
votes
1answer
41 views

Indented theorem and proof environemnts

I would like to be able to recreate the following theorem style, where the main body of a theorem/proof/definition etc. is indented by a variable amount. I would also like to end a theorem proof with ...
0
votes
1answer
33 views

ntheorem + showonlyrefs

I like the showonlyrefs option provided by mathtools. I also would like to use ntheorem. But they seem difficult to use together. Applying the various recommendations in the related manuals (including ...
2
votes
1answer
46 views

Eliminating extra vertical space inside theorem environment and enumerate

A friend and I are writing an Analysis book. We are using ntheorem and many times enumerate inside of various custom theorem style environments. Each time I put enumerate inside any of our theorem ...
1
vote
1answer
129 views

Recall an hypothesis

I actually started to use Latex in order to prepare better works. After that, there is a problem. This is my code actually: Determine Hyp 1 and 2 \newtheorem{hypothesis}{Hypothesis} \begin{...
0
votes
1answer
40 views

Indentation in ntheorem with inserted picture

My question is additional to Wrapping about of a tikzpicture placed between two theorem-environments. As one can see from CTAN:Text flow, the method of wrapping figure inside theorem-like (lists,...) ...
2
votes
1answer
100 views

Wrapping about of a tikzpicture placed between two theorem-environments

How to place tikzpicture inside theorem environments with wrapping? I found many decisions with cutwin package. But the decisions concern to the wrapping inside own theorem environment (besides, they ...
0
votes
0answers
42 views

setting counter for theorem and lemma in mdframed

I am trying to set counter for theorems and lemmas, here is my codes \documentclass{tufte-handout} \usepackage[utf8]{inputenc} \usepackage{mdframed} % Framed Theorems \usepackage[usenames,dvipsnames]...
0
votes
0answers
283 views

Package ntheorem Error

After compiling this script: \documentclass[a4paper,10pt]{book} \usepackage[frenchb]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{geometry} \usepackage{amssymb,amsmath,...
1
vote
0answers
47 views

Definitions style [duplicate]

I need your help to get this style
1
vote
1answer
72 views

How to number theorems depending on whether there is a subsection

I am trying to typeset a exam subject with the same numbering as this document by Concours CentraleSupélec. Sections are numbered with Roman, subsections are numbered with Alph and questions are ...
2
votes
1answer
61 views

ntheorem Definition/Lemma/… ending with \dots results in no end-of-proof symbol

I would like to end ntheorem definition or proof with ellipsis. However, when I change the dot . in this MWE: \documentclass{article} \usepackage[standard,thmmarks]{ntheorem} \begin{document} \begin{...
5
votes
1answer
116 views

microtype/ntheorem: Protrusion not affecting headers of the theorems

I'm trying to switch to the ntheorem package (instead of amsthm) but I realized that headers of the theorems aren't protruded: \documentclass{article} \usepackage[activate={true, nocompatibility}, ...
1
vote
1answer
146 views

Missing QED symbol with proof and eqnarray environments in SIAM template

I can't seem to get consistent behavior with the proof environment and QED symbol in the latest SIAM document class, in particular with the eqnarray and equation environments. My MWE requires some ...
5
votes
1answer
148 views

Part of main text grabbed by watermark

I am using the solution presented in Q/A 132582 to produce a transparent foreground watermark. With success most of the time. But on some rare occasions, a part of the main text is embedded into the ...
2
votes
1answer
64 views

How can I change the numbering style for subhypotheses?

I want to change the numbering of Subhypothesis so that the subhypothesis which is after Hypothesis 1, is numbered 'Subhypothesis 1.1. How can I do that? My code for now is as following. \...
2
votes
1answer
198 views

Creating a layout where theorems are in 'margins'

I wish to design a document with the following mock-up layout, where theorems are separated from the main body of the text in a sort of margin: \documentclass[11pt,a4paper]{article} \usepackage{...
1
vote
2answers
134 views

ntheorem subhypotheses

I'm trying to create: Hypothesis 1a Hypothesis 1b Hypothesis 2a Hypothesis 2b Hypothesis 3 I followed the code from an earlier thread, but instead of getting "Hypothesis 3", I get "Hypothesis ...
2
votes
1answer
96 views

Extra vertical spaces when \[ and \] are redefined as \begin{equation*} and \end{equation*} (ntheorem involved)

In this answer, it is advised to proceed to the following redefinition: \DeclareRobustCommand{\[}{\begin{equation*}} \DeclareRobustCommand{\]}{\end{equation*}} But, as pointed out by the following ...
2
votes
2answers
101 views

ntheorem's fleqn and thmmarks options break \if@display

The following MCE points out ntheorem's fleqn and thmmarks options break \if@display: e.g., as soon as thmmarks is uncommented, the 1st "equation" contains "Non-display math". Do you see what's going ...
2
votes
1answer
240 views

Do not get a square ntheorem, proof

Here is my code: \documentclass[12pt,a4paper,twoside]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage[thmmarks]{ntheorem} \theoremsymbol{\ensuremath\square} \newtheorem{Beweis}{...
1
vote
1answer
73 views

I would like to implement \qedhere in a class that clashes with packages that include it

I am submitting a paper that requires the LMS class file: https://www.lms.ac.uk/sites/lms.ac.uk/files/Publications/lmsclass.tar_.gz . I need to use a \qedhere to position an end-of-proof tombstone ...
3
votes
0answers
34 views

Link back to restatable

I am using ntheorem with restatable and I would like to have a link back (hyperref) from the restated theorem to the original theorem (the restatable). MWE: \documentclass{memoir} \usepackage{...
1
vote
0answers
86 views

Exact spacing between lines

Is there a way to get the exact spacing between different parts of a document? I know the question may sound a bit vague, so here's the context in which the question arose. Here there is a code ...
2
votes
2answers
86 views

Decompose theorems into parts

In the following code, the numbers of the theorem are 1 to 4. But I want to have the name wrote in the text : I want to decompose an hypothesis into many parts. I found some solution to have the two ...
1
vote
1answer
110 views

Multicol listings and ntheorem rendering wrong

Given the quite long MWE: \documentclass{memoir} \usepackage[dvipsnames,table]{xcolor} %\usepackage[showframe]{geometry} \usepackage{mathtools} \usepackage{needspace} \usepackage{multido} \usepackage{...
0
votes
1answer
102 views

Using a name instead of numbers in theorems

I would like to have theorems with ntheorem which have no number, but instead of the number a name is used. The referencing to such theorems is already discussed in https://stackoverflow.com/questions/...
1
vote
1answer
84 views

List all theorems that were not restated

I have a longer book written in memoir using many theorems defined by ntheorem. I would like to check if I correctly restated all theorems (done with the help of thm-restate) in later chapters. \...
2
votes
2answers
56 views

Eqnumbering with polyglossia

This short code results in an equation enumerated with italic font when the equation is inside a theorem environment. How to get it written by normal font? If I delete the segment \setdefaultlanguage[...
2
votes
1answer
118 views

Theorem environment under polyglossia

How to set theorem header font to be normal+bold and theorem body font to be normal+italic in the example below? If I remove the lines starting with \usepackage{fontspec} and ending with \...
1
vote
1answer
143 views

How to break line before lstlisting environment?

I am typesetting answers to textbook exercises. I use a ntheorem theorem named questionas wrapper for the questions. Some of the answers begin with regular text, and I want them to start on the same ...
0
votes
0answers
104 views

Missing } inserted. ^^I}

The following code: \begin{preuve} \langswitch{ \fbox{\textit{i.} $\Leftarrow$} Given $\Ty$ and $\Tm$, define $F$ as follows: \[a\] }{ % * * * * * * * * * * } \end{preuve} leads ...
1
vote
1answer
542 views

QED symbol at end of special proof environment?

This is a follow up question to: Proof titles with ntheorem But since the original answer-er has not been seen for a month, I'd like to ask a wider community of people. How do you add a QED symbol ...
4
votes
1answer
436 views

Placement of figures inside an ntheorem environment

I would like to wrap text around a figure in a ntheorem like environment. Currently, I am trying to use the cutwin package, which was suggested e.g. in this question: How to wrap around a figure in a ...
2
votes
1answer
259 views

How to correctly and consistently typeset proofs with implications

I want to typeset proofs that show equivalence of several (numbered) statements. Is there any consistent and nice way to typeset proofs like that, when I want to label the "subproofs" of one statement ...
3
votes
1answer
137 views

Remove space between “Theorem” and theorem number when using ntheorem

I am using the ntheorem package for hypotheses and subhyotheses (i.e. H1a, H1b, etc.), with the latter being unimportant for my problem. Just as an info for you to understand why I cannot simply use ...
3
votes
2answers
154 views

Hyperref and theoremstyle break: red box drawn on line above

I am using the hyperref package in my document for links and ntheorem for theorems. I want to use the "break" theoremstyle that gives a line break after the theorem label. But then using references in ...
2
votes
1answer
427 views

Can't use amsthm option with ntheorem, and no QED markers

I'm trying to get QED markers to show up at the end of a proof only, using ntheorem but run into a couple of problems. First, using the amsthm option with ntheorem doesn't work: \documentclass[...
4
votes
1answer
187 views

Interference between newtxtext and ntheorem

I tried using LaTeX after a long period of rest, and I found out that newtxtext and ntheorem collide with each other with the message 'Theoremstyle plain already defined'. On the other hand, newtxmath ...
8
votes
2answers
716 views

How do you reprint a theorem, proposition, etc. in its entirety?

I would like to prove all my theorems in the appendix. To do that, I would like to remind the readers what the theorem is, by reprinting it in the appendix. However, I have not figured out a way to ...