Questions tagged [ntheorem]

A package for handling theorem-like environments.

Filter by
Sorted by
Tagged with
1
vote
1answer
19 views

Weird problem with ntheorem resulting from some particular combination of packages

The following problem arose in a larger document, which I stripped down to the following MWE. Let me stress that it really is a MWE – changing any line makes it work. Unfortunately I want to use all ...
0
votes
1answer
55 views

numbers at the beginning in ntheorem

How can I get ntheorem (\usepackage{ntheorem})to write 1.7 Theorem instead of Theorem 1.7 ? I thought that was easy enough, but can't find anything with google.
0
votes
2answers
49 views

Using ntheorem with amsbook

I'm working with an amsbook document, and I want to use the ntheorem package. This is unsurprisingly causing a complaint with the amsthm package implicitly loaded for the amsbook documentclass. There'...
1
vote
0answers
27 views

Hyperref'ing definitions without having to navigate back like in wikipedia

I am currently typing up lecture notes and whenever a import term comes up I place hyperref to it's definition like so: \hyperref[defn:markovChain]{Markov-chain} where I am using the ntheorem ...
0
votes
2answers
37 views

ntheorem: Framing environment with vertical lines on both the left and right sides. Help with right side

When I write maths in LaTeX, I put it into a custom ntheorem environment called outlined, that gives it a grey line on the left. outlined is defined as: \def\theoremframecommand{{}{\color{gray!50}\...
2
votes
1answer
45 views

\NAME equivalent for ntheorem?

I am trying to color only the NUMBER part of my theorems and corollaries. After some fiddling I was able to produce the following image which I am almost happy with In the code below I have the line ...
0
votes
0answers
37 views

I want to detect an order placed at the beginning of each theorem

I want to detect an order placed at the beginning of each theorem. \documentclass{article} \usepackage{ifthen,ntheorem} \newtheorem{ex}{Exam} \begin{document} \begin{ex} \LaTeX{} There is the LaTeX ...
0
votes
0answers
24 views

Package 'thm-restate' breaks switching of theorem styles of 'ntheorem'

I use ntheorem and define two theorem-like environments ("Theorem" and "Lemma") that share the same counter which is reset for every section. Moreover I have a proof-environment that has no counter at ...
2
votes
1answer
30 views

Line break in starred ntheorem header

I came across this question that was posted before and have been using the solution for a while. However, I can't seem to get the same thing to work with starred environments. I am aware that long ...
0
votes
0answers
27 views

ntheorem and LyX (with amsmath)

Recently, I tried to use the ntheorem package with LyX and amsmath, but when compiling (pdflatex format) it complains: "! Package ntheorem Error: Theorem style plain already defined." When exporting ...
3
votes
1answer
49 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
40 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
29 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
51 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
37 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
45 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
54 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
72 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
72 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
43 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
54 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 ...
3
votes
1answer
66 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
48 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
55 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
155 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
57 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
140 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
396 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
79 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
80 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
119 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
225 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
168 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
95 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
218 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
180 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
97 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
108 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
310 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}{...
2
votes
1answer
88 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
48 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
107 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
96 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
128 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
118 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
103 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
58 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
130 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
164 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 ...