Skip to main content

Questions tagged [thmtools]

a collection of packages that is designed to provide an easier interface to theorems (and theorem-like environments), and to facilitate some more advanced tasks

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

Numbering inside restated theorem

I have a curious situation with equations inside a restatable theorem environment, when the theorem environment counter coincides with the equation counter: \documentclass{article} \usepackage{...
Noiv's user avatar
  • 57
0 votes
2 answers
54 views

\tcolorboxenvironment with parameters

Context Hi. I am using \tcolorboxenvironment to customize a theorem enviroment created with thmtools (as explained in pages 22 or 400 of the documentation). This is what I have so far in my preamble: \...
asterisk's user avatar
2 votes
2 answers
69 views

What is the canonical way to add theorems to the table of contents?

I am writing a math paper and I would like to have my theorems, lemmas, corollaries and definitions appear in the table of contents. My original code looked essentially like this: \documentclass{...
Smiley1000's user avatar
3 votes
1 answer
61 views

How to have restatable tcolorbox theorem environments, while avoiding labels being multiply defined

I have a document where I would like to define a theorem early on, and then restate the same theorem later on when it comes time to prove it. Normally this could be done using the thm-restate package. ...
Naysh's user avatar
  • 187
2 votes
2 answers
226 views

How unslant (emph) some text in a newtx theorem?

Using newtx for fonts and declaring theorems using thmtools, I want the body of theorem-like environments to be slanted. With newtx, specifying \thfamily for the bodyfont does that. However, I still ...
murray's user avatar
  • 8,712
2 votes
1 answer
64 views

thmtools: Spacing between boxes and text

Using the package thmtools how can I make the spacing box-box, text-box, and box-text all the same? The space box-text and text-box is not the same. And the space box-box is in general larger (I ...
Croqueta's user avatar
0 votes
0 answers
32 views

Continue the numbering of theorems in algorithm environments

I'm using the thmtools package to get theorem like environments where the theorem numbering is of the form SECTION.THEOREMNUMBER: \declaretheorem[numberwithin = chapter]{theorem} \declaretheorem[...
0xbadf00d's user avatar
  • 523
0 votes
1 answer
99 views

Hyperref links pointing to the same place (using thmtools and answers packages)

At the end of each problem, I'd like to have the indication of the page number of the solution to that problem. If I do something like this, \documentclass{article} \usepackage{amsthm,thmtools} \...
Pedro's user avatar
  • 33
0 votes
1 answer
51 views

How cross-reference optional argument contents in enumerate list item?

In the following, is it possible to create a cross-reference that prints the contents of the "note-like" field of a \ditem optional argument? That is, I would like to be able to print "...
murray's user avatar
  • 8,712
1 vote
0 answers
62 views

Autonum and restatable incompatible

I'm using the autonum package. If I want to restate a lemma using thm-restate package, which includes an align environment, all lemmas after that restate cannot be referenced to. Any workarounds? I'd ...
Matteo's user avatar
  • 111
1 vote
1 answer
46 views

Print certain part of a restatable theorem only the first time

I am in the standard scenario for restatable: I am using restatable to state a lemma in the short version of the paper, whose proof is given in the appendix. In the appendix, I want to restate the ...
taninamdar's user avatar
0 votes
1 answer
60 views

Using thmtools to continue theorem-like enviroment with enumerated items

In the following, three issues: How can I allow the enumerated list in the "1.1 Examples (some examples), continued" to begin its item "2. ..." on the same line as the header/note,...
murray's user avatar
  • 8,712
2 votes
3 answers
151 views

Count theorems like Theorem part.chapter.number

I'm using the scrreprt documentclass, which provides parts and chapters. While I found solutions to enumerate theorems like Theorem chapter.section.number, I did not manage to obtain Theorem part....
Brauer Suzuki's user avatar
2 votes
1 answer
61 views

Removing Unnecessary Space from Equations within Custom Environments in thmtools

I'm facing an issue while writing my thesis. Whenever a theorem ends with an equation, an additional line is added. I have to use thmtools, and I'm unsure whether I should remove this space from the ...
Daniel Checa's user avatar
1 vote
3 answers
64 views

Expansion in stored csname of restatable theorem

Thinking about this question, I'd like to use thmtools' restatable environment to store theorems with a number in the csname. That way one can loop through them at the end of the document to restate ...
mbert's user avatar
  • 4,541
2 votes
1 answer
143 views

Restate all theorems & definitions?

I am new to this community, and unfamiliar with advanced latex use (e.g. creating packages, custom build scripts, post-processing scripts) so I apologize if my question seems unusual or overly simple. ...
davidleejy's user avatar
1 vote
0 answers
47 views

Leftmargin for theorems with thmtools-package [duplicate]

Is there an easy way to set a left margin with the thmtools-package? \documentclass[ngerman, parskip=full]{scrartcl} \usepackage{amsthm} \usepackage{thmtools} % \declaretheoremstyle[% spaceabove=...
Ulrich's user avatar
  • 947
0 votes
1 answer
75 views

Need help to define a custom environment

I want to define a custom theorem environment. I imagine it having two invisible boxes (pictured in yellow and red) where both boxes are filled with text from optional parameters and an equal sign ...
average math enjoyer's user avatar
1 vote
2 answers
396 views

Good practice with \DeclareKeys

I'm trying to make a "one-off" theorem environment for theorems with custom names that shouldn't be numbered at all. The goal is to copy the behavior of thmtools \declaretheorem[thmbox=M]{...
mbert's user avatar
  • 4,541
0 votes
1 answer
140 views

\listoftheorems: named theorems and optional arguments

In the following, I have three kinds of theorems: an "ordinary" theorem, which just has the head "Theorem", as in the 3rd; a theorem having both a head and a note, "Theorem (....
murray's user avatar
  • 8,712
2 votes
1 answer
53 views

parskip clashes with thmbox of thmtools

I have a problem using the parskip and thmtools packages. I want to use the boxes provided by thmtools to frame my theorems lemmas etc. The one I'm interested in is the thmbox=M box but as soon as the ...
Théo Leblanc's user avatar
3 votes
2 answers
73 views

thmtools: Parentheses behaving weirdly in note

I used thmtools package to define theorem style because I wanted just the note to have a different colour: \documentclass{article} \usepackage{xcolor} \usepackage{amsthm} \usepackage{thmtools} \...
Panini's user avatar
  • 132
1 vote
1 answer
59 views

thmtools drops font coloring at page break when paired with mdframed

Right now, I use thmtools with mdframed to create theorem environments with lines down the side. The difficulty is that I also want to be able to change the color of the text in these theorem ...
Robin Aldabanx's user avatar
1 vote
1 answer
47 views

Put current section number in name of thereom-like environment

The following source numbers exercises consecutively across sections. It successfully adds, for each exercise set,an entry to the table of contents that includes the current section number. Question: ...
murray's user avatar
  • 8,712
2 votes
1 answer
46 views

thmtools note spacing fix

I've run into some spacing problems when attempting to create my own theorem styles using thmtools. What I want can be condensed into the following points: Theorem name should be in the margin and ...
IllAtTheseNumbers's user avatar
3 votes
1 answer
284 views

Restating Theorems while Changing its Name (Title)

We all know that "restatable" package can help repeat theorems in exactly the same format. However, what I need is to restate a theorem while changing its name in the parentheses. For ...
Renfei Zhou orbitingflea's user avatar
0 votes
1 answer
49 views

thmtools custom theorem name without making new enviorment

How would I make a theorem using thm tools that accepts a custom name? Something that would work like: \begin{namedtheorem}[Basic AM-GM Inequality} For posiive real numbers $a,b$ $$\frac{a+b}{2}\geq \...
Memat's user avatar
  • 103
2 votes
2 answers
137 views

Removing the ".1" part in the numbering of a remark, if it is the unique remark following some theorem

I'm using the amsthm package and thmtools package to format my manuscript. I'm numbering remarks within theorems, that is, having Remark 2.1., Remark 2.2. and so on after Theorem 2. However, when only ...
Dustrain's user avatar
1 vote
1 answer
64 views

Why does \WithSuffix\providecommand overwrite command already defined by instance of thmtools's restatable environment?

Consider the output of this MWE: \documentclass{book} \usepackage{amsthm} \usepackage{thmtools} \usepackage{suffix} \declaretheorem[numberwithin=chapter, style=plain,name=Theorem,refname={theorem,...
Linear Christmas's user avatar
0 votes
1 answer
63 views

Is there a simple fix to using "\hypertarget" inside thmtools's "restatable"?

Is it possible to use \hypertarget inside restatable? The command \hypertarget is from package hyperref, and restatable is from packagethmtools. The issue is that if the restatable is called, it seems ...
Linear Christmas's user avatar
0 votes
1 answer
56 views

Restating a theorem within \hyperlink produces extra vertical space above

When I restate a theorem, it behaves as normal. But when I restate it as the second option of \hyperlink, an extra line appears above. How can I prevent this from happening? \documentclass{amsbook} \...
Benjamin Hull's user avatar
1 vote
0 answers
252 views

how to make box with theorem style [closed]

how to make theorem box using by declaretheoremstyle same below.
Bazar Tumurkhan's user avatar
0 votes
1 answer
140 views

List of Theorems not working in LyX

I am using LyX to write lecture notes, with most of the text in Hebrew. I have many theorems and definitions, and they are defined using the theorems-ams module (Document > Settings > Modules). ...
Spätzle's user avatar
  • 103
1 vote
1 answer
58 views

Spacing when using parskip and thmtools

I have the following really specific issue, which is probably just a bug in the thmtools package, but I'm wondering if I can work around it. Basically, if I include the parskip package and try to use ...
N. Virgo's user avatar
  • 4,289
1 vote
2 answers
77 views

Add letter to numbering of theorem environments. Locally, and then restore to default behaviour?

I am trying to locally modify the numbering of theorem environments. The basic idea is to have Theorem 1, then Theorem 2A, Lemma 2B, Lemma 2C, then back to Theorem 3, Lemma 4 etc. The output of the ...
Linear Christmas's user avatar
0 votes
0 answers
123 views

Mdframed infinite loop within declare theorem style

First of all, I would like to say that I learned LaTeX by myself, and that my code may not be optimized or I may not master the good practices. Don't hesitate to correct me or to give me advice on ...
Analyse-Synthèse's user avatar
3 votes
0 answers
73 views

Avoid orphaned mdframed box after section heading at end of page

In LaTeX, when I use thmtools (which uses mdframed internally) to create theorem boxes and I use them after a section heading at the end of the page, they often times are placed on the next page ...
Hebol's user avatar
  • 97
2 votes
1 answer
151 views

Define a thmtools theorem in beamer

I want to use thmtools inside a beamer document, to style theorems. The MWE below gives the following error: Command \theorem already defined. Or name \end... illegal, see p.192 of the manual. How ...
tush's user avatar
  • 1,147
0 votes
1 answer
228 views

Change background color of title using declaretheoremstyle

Here's my MWE: \documentclass{report} \usepackage[usenames,dvipsnames,pdftex]{xcolor} \usepackage{amsmath,amsfonts,mathtools,amsthm,amssymb} \usepackage{mdframed} \usepackage{varwidth} \usepackage{...
SingularisArt's user avatar
1 vote
0 answers
37 views

A hook to add support for thmtool's notefont in ntheorem

I want to use ntheorem extended with thmtools. In the documentation of the latter, I read: notefont (Value: TEX code). Executed just before the note in the head is typeset, inside a group. Intended ...
sparusaurata's user avatar
0 votes
2 answers
98 views

Avoid a theorem environment's head and tail to split into two pages

This is a follow up to my previous question. Some of my theorem environments include a horizontal rule above and below them. How can I avoid the bottom line to appear isolated on the next page if the ...
tush's user avatar
  • 1,147
2 votes
1 answer
667 views

Controlling the spacing between theorem environment and standard text

I am using thmtools to typeset theorems. The output I want is the following: My question is about controlling the spacing between the \hrules above and below the theorem environment. I want the ...
tush's user avatar
  • 1,147
5 votes
2 answers
220 views

Avoid a theorem environment's head to be the last line in a page

To put it simply, I want to avoid the following case: That is, Text text text Theorem 1 <page break> Body of Theorem 1 text text text My style for theorems has a heading, a line break (...
tush's user avatar
  • 1,147
3 votes
1 answer
422 views

Restating a theorem environment created using \newtcbtheorem

The first post I saw telling me about the restatable environment: Recalling a theorem. Several questions have been asked about things like this: Making a restatable boxed theorem says to use \...
D.R's user avatar
  • 771
1 vote
1 answer
281 views

How to have propositions and theorems have the same counter for the \declaretheorem command

I am using the thmtools and thm-restate packages so that I can restate theorems and propositions. I use the \declaretheorem command as follows: \declaretheorem[name=Theorem, numberwithin=section]{...
graphtheory123's user avatar
2 votes
1 answer
104 views

How to split a theorem using the `shaded' option in thmtools

I am using amsmath, thmtools and the following definition to get nice Theorem statements inside a light blue box: \declaretheoremstyle[ shaded={bgcolor=blue!10}, numberwithin=section ]{mythmstyle} ...
Piero D'Ancona's user avatar
0 votes
2 answers
111 views

Error when using hyperref and thmtools

\documentclass[12pt]{article} \usepackage{hyperref} \usepackage{amsthm} \usepackage{thmtools} \usepackage{hyperref} \theoremstyle{plain} \newtheorem{theorem}{Theorem}[section] \...
ufer324's user avatar
  • 15
0 votes
2 answers
103 views

Compilation won't stop due to package conflict, how to locate the problem in this case?

Consider the following code: \documentclass{article} \usepackage{amsthm} \usepackage{thmtools} \usepackage{create-theorem} \CreateTheorem { theorem } {} \begin{document} \begin{theorem} Text. \...
Jinwen's user avatar
  • 8,618
4 votes
4 answers
392 views

Restate theorem without final sentence

I am short on space for my paper, so I want to put some theorem proof in appendix, but I also want to put the sentence saying "Proof in appendix" on the same line as the theorem statement. \...
JacopoStanchi's user avatar
2 votes
1 answer
293 views

Use thmtools to add a bar left of a theorem environment

I’m trying to get a theorem environment, that has a title, a line break, and then the body, with a line left of it. Something like the following: I am currently using thmtools. I know that thmbox ...
Meven Lennon-Bertrand's user avatar

1
2 3 4 5 6