Questions tagged [ntheorem]
A package for handling theorem-like environments.
242
questions
2
votes
1
answer
69
views
Unwanted space in the beginning of first line by ntheorem
How to avoid the space in the beginning of first line by ntheorem
\documentclass[a4paper,10pt,openany,twoside]{scrbook}
\usepackage[paperwidth=94mm,paperheight=50mm,margin=2mm,footskip=2mm,showframe
]...
2
votes
2
answers
63
views
How to write a null hypothesis using the ntheorem package
I have two hypotheses. One effect hypothesis (number 1), and a null hypothesis (number 2). How do I make the null hypothesis appear as Hypothesis 0 instead of Hypothesis 2?
I.e. I want to change the ...
0
votes
1
answer
22
views
Change qedsymbol and font shape within a ntheorem framed environment
Good morning: After a lot of proofs changing variables and parameters as suggested in the documentation of ntheorem package and others, I'm not been able to replace the qedsymbol with \blacksquare and ...
3
votes
1
answer
179
views
Why does my `lemma` environment has "Theorem" as a title?
I have written a macro \createEnvironment{lemma}{Lemma} that automatically creates several environments lemma, lemma1, lemma2, lemma3 with different styles and whose title should be Lemma.
My problem ...
0
votes
1
answer
41
views
How to increase the space between a section/subsection title and a theorem
I would like to add some space between a theorem and the preceding line.
I used titlesec and amsthm to customise the spacing but when the theorem is just after a subsection, the required spacing ...
4
votes
1
answer
45
views
package ntheorem seems not to obey the LaTeX-kernel's old protection mechanism
This question is related to my answer to the question
Construct math super/sub-script from reference (\ref) with hyperref and cleveref being loaded:
[...]
In the example below this is done via ...
1
vote
0
answers
11
views
Section/theorem/definition headers in margin
I would like a style in which sectioning headers along with theorem/definitions are in the margin. I particularly like the style used in An Introduction
to Kolmogorov Complexity and Its Applications (...
0
votes
0
answers
43
views
How to produce the following theorem environment
See here and use the 'look inside feature.' If you scroll to see Theorem 1.1 (Uniformization Theorem), you will see that the theorem appears to be in a \quote environment.
I wish to produce the same ...
0
votes
0
answers
28
views
Indent entire theorem environment
I am looking not for a hanging indentation on a theorem/definition, but for an entire theorem/definition to be indented an amount \indent. Here is essentially what I am looking for (with 3pt replaced ...
0
votes
0
answers
51
views
Precompiled preamble causing new errors with ntheorem
I'll start off by noting that I already made a post yesterday with a similar title and want to say that this is a new problem. Here's the link to my previous post if it helps provide any context. I ...
1
vote
0
answers
34
views
Precompiled preamble causing issues with ntheorem [closed]
Whenever I compiled a file, it always took about 30 seconds, so I read up on using mylatexformat to precompile my packages. I have figured out how to do so and have stored my fmt file as /home/...
1
vote
1
answer
32
views
Ergonomic restatable environment
I want to restate several results in a manuscript.
Currently I use ntheorem and thm-restate with the restatable environment, but I am annoyed by how my source looks:
\begin{restatable}{theorem}{...
3
votes
0
answers
68
views
ntheorem and hyperref at pagebreaks
It seems that hyperref and theorem do not cope together very well whenever a theorem happens to start at the beginning of a new page. Clicking a hyperlink to such a theorem leads to a jump to the end ...
1
vote
1
answer
50
views
Changing number format in newmdtheoremenv or newtheorem
Using the mdframed package (with [frame-method=tikz]) I can create a new environment that resets every chapter with
\newmdtheoremenv[<options>]{myenv}[<numberedlike>]{Sample}[chapter]
The ...
0
votes
0
answers
47
views
Problem with ntheorem and minipage
I have a problem with ntheorem and minipage. If I use a minipage immediately after \begin{mytheorem}, the name of the theorem is inside the minipage and not placed where I would expect it to be. I ...
0
votes
1
answer
31
views
Flexible definition of Theorem/Satz and its reference not working correctly
I am trying to combine ntheorem, translations and cleveref to define a multilingual theorem environment that is called “Theorem” or “Satz” depending on the language but I am stuck with the following ...
1
vote
2
answers
73
views
thref from ntheorem not working with hyperref
I want to use the extended reference features from ntheorem, but they seem to be not working with hyperref, even with the parameter hyperref for ntheorem.
\documentclass[11pt,a4paper]{article}
\...
0
votes
0
answers
19
views
Indent in the first paragraph in the break style of ntheorem
I'm using ntheorem package to make my template. When I use break style, I found that the paragraph below the header doesn't have an indent, like this
\documentclass{article}
\usepackage{ntheorem}
\...
0
votes
0
answers
126
views
What is the problem with new theorem environments?
I have several theorem-like environments
...
\usepackage{ntheorem}
\theorembodyfont{\rmfamily\slshape}
\theoremstyle{plain}
\newtheorem{Theorem}{Теорема}
\newtheorem{Corollary}{Следствие}
\newtheorem{...
1
vote
2
answers
84
views
How to restate theorems with new number?
\documentclass[final,a4paper,11pt,oneside,openany]{memoir}
\usepackage[naustrian]{babel}
\usepackage[thmmarks]{ntheorem}
\usepackage{thm-restate}
\newcounter{reqcounter}
\newtheorem{RQ}[reqcounter]{...
3
votes
2
answers
76
views
ntheorem - indentation at beginning of chapter
I am writing a document using the book class, which, by design, does not indent the first line of the chapter/section/subsection. I noticed that if I start a chapter with a framed theorem then, for ...
1
vote
0
answers
21
views
ntheorem and psframebox - bad box splitting
I am having some troubles with the typesetting of boxed theorems. I use ntheorem to typeset theorems in a colored frame, defining them via the \newshadedtheorem macro. The problem is that sometimes, ...
0
votes
1
answer
30
views
Theorem numbering as subscript
The following thread gives "Hypothesis 1 (H_1)" as output. Is it possible to just have "H_1" instead? The subscript is needed.
Is it possible for ntheorem to number each instance ...
0
votes
1
answer
77
views
Nameref refers to section title instead of theorem title
I've seen similar issue here, but the answer was posted in 2011, stating that it was due to the fact that the used nameref version was obsolete. I have to use Overleaf for my document and I don't have ...
1
vote
1
answer
106
views
ntheorem: Manually placing end-of-proof symbol in an equation
I would like to use ntheorem to produce theorems and proofs. I've got an end-of-proof symbol that works ok but, in the case of a trivial result, I'd like to place the symbol in the theorem itself. I'...
1
vote
1
answer
66
views
Why does the “lifted” ntheorem proof environment sometimes fail to add the QED symbol?
Reading:
ntheorem with the [amsthm] option ignores styling of a theorem environment
I adopted the suggested proof environment for ntheorem without the amsmath option. I also made sure to add the ...
2
votes
0
answers
79
views
How to have ntheorem with option thmarks and <alert@> beamer command working together?
I am puzzled by the interaction between the package \usepackage[thmarks]{ntheorem} and the command <alert> from beamer class.
Indeed, in a recent question it has been shown that the interaction ...
1
vote
1
answer
129
views
How to use ntheorem and beamer together?
I want to create a presentation with beamer. In it I want to include the package ntheorem.
When I do it, I get the following error message:
! LaTeX Error: \begin{altenv} on input line 40 ended by \...
1
vote
1
answer
34
views
May the second column in a row of theorems be aligned
Is there a way to align the second column of universalized disjunctions in the following row of theorem like environments?
\usepackage{amsmath, amssymb, amsthm}
\newtheoremstyle{exercise}
{\topsep} ...
2
votes
1
answer
203
views
How do I create the same type of grey box with 'newtcolorbox' as 'newmdtheoremenv'?
I wanna convert into using newtcolorbox instead of newmdtheoremv. Here I have a simple, indented, grey box:
How do I achieve the same with newtcolorbox?
How would I be able to adjust between having a ...
2
votes
2
answers
622
views
Biometrika journal style file not getting along with TeXLive-2020
I cannot compile styleguide.tex in biometrika.zip (see https://academic.oup.com/biomet/pages/General_Instructions).
Here is a MWE which leads to the same error message, though not sure yet that I've ...
1
vote
1
answer
29
views
Hyperref problem with ntheorem theoremstyle{break}
I'd like to use the package hyperref together with ntheorem and its option \theoremstyle{break}, because I want to separate the title of a theorem from the theorem's content. My problem is that the ...
1
vote
1
answer
56
views
Enable line breaks in captions of theorem environment
Normally, captions of a theorem-like environment are not broken across lines, because they are put into the argument of \item by the default styles.
If one has long captions and a narrow text width ...
0
votes
1
answer
142
views
Can tcolorbox be integrated with ntheorem?
Can tcolorbox be integrated with ntheorem? I.e. with the command \newtcbtheorem it does not seem ntheorem recongizes this so that you can put endmarks and include in list of theorems.
0
votes
0
answers
54
views
Triangle symbol to end remarks
Does anyone know how to fix this preamble in order to put triangle symbols at the end of remarks (oss, ossi and oss*) and examples (es,esi and es*) in LaTeX?
\documentclass[a4paper,openright,twoside,...
4
votes
2
answers
359
views
Need to create an unnumbered 'conclusion' environment
I need to write conclusion in my thesis without a number. I used
\newtheorem{conclusion}{Conclusion}
\begin{conclusion}
\end{conclusion}
and got as a output Conclusion 1; however, I need only ...
4
votes
1
answer
624
views
Biometrika latex template reports error when using theorem-like environments [duplicate]
I need to use the biometrika (see stylistic requirements) tex template for writing a report. But using the theorem-like environments (even without any modification to the codes) in styleguide.tex ...
1
vote
0
answers
53
views
Are there any shaded theorems usable with tufte sidenote/marginnote?
I would like to use tuftes sidenote and marginnote commands. Is there any way to use them in combination with shaded theorems? I tried tcolorbox and mdframed, but both seem to be problematic.
The ...
0
votes
3
answers
269
views
How to make text normal and not italic in frame?
How can you make the text normal in the frame below and not italic?
\documentclass[a4paper]{article}
\usepackage{mdframed}
\usepackage{ntheorem}
\definecolor{superlightred}{HTML}{F5F5F5}
\...
4
votes
1
answer
101
views
ntheorem: Set normalfont to Theorem-Note
What is the key to set normalfont to the theorem-note and its brackets and its punct?
\documentclass{scrreprt}
\usepackage{ntheorem}
\theoremseparator{.}
\theorembodyfont{\upshape}
%\...
2
votes
1
answer
67
views
ntheorem with thmmarks and standard options fails when thebibliography is empty
When using an empty thebibliography environment, LaTeX normally warns, but goes on typesetting the document. However, it considers the following example as an error: “! LaTeX Error: Something's wrong--...
4
votes
1
answer
85
views
How to fix an odd interaction between the tabularx and ntheorem packages?
After posting this answer to the query How to increase the width of one column and decrease the width of the other one by the same length?, I thought about how to generalize (and simplify) the OP's ...
0
votes
0
answers
36
views
ntheorem counters and sub-counters without any section divisions
I'm writing an academic article response memo in LaTeX and would like to create counters for each reviewer and sub-counters for each of their comments, e.g.:
Reviewer 1.1 (Problem X): Reviewer ...
2
votes
2
answers
400
views
LuaLaTeX, ntheorem, unicode-math and Libertinus: Math in theorem header loads Computer Modern
Consider this MWE and compile it with LuaLaTex:
\documentclass{article}
\usepackage{libertinus}
\usepackage{ntheorem}
\theoremstyle{plain}
\theoremheaderfont{\normalfont\bfseries}
\newtheorem{...
1
vote
1
answer
25
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
1
answer
181
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
2
answers
104
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
0
answers
33
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
2
answers
368
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
1
answer
155
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 ...