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

26 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
460 views

parskip messes with the vertical space between a theorem and its proof

Not sure why, but I usually prefer no parindent, so I have to make up with parskip. Perhaps its a bad decision, but I usually find it easier to read that way, especially online. However, I recently ...
Bach's user avatar
  • 1,275
4 votes
1 answer
447 views

alphabetical order in listoftheorems

I use the package thmtools to generate a List of my Definitions at the end of the Document. This works fine, but the list is orderd by chapter and not orderd by the name of the definition. Here's ...
waXve's user avatar
  • 265
3 votes
0 answers
71 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
3 votes
0 answers
63 views

Incompatibility of thmtools, IEEEtrantools, and cleveref in Tex Live 2018-2019

Using TeX Live 2018 or 2019, IEEEtrantools, thmtools and cleveref are incompatible. I.e., if one loads these packages together, the project does not compile. Here is a minimal example: \documentclass{...
MatteoBianchetti's user avatar
2 votes
1 answer
142 views

Style inheritance in thmtools

In the following MWE I'm defining two theorem styles, remark and definition, which should be identical except for a few key-value pairs. I'd like to reuse the style of remark in the declaration of ...
noibe's user avatar
  • 2,094
2 votes
0 answers
129 views

Multiple Lists by Alphabetical Order at End of Document

I want to get the following lists, but I do not know how. I have investigated several approaches, but none led me to the desired result. I basically want my document to have several lists at the end. ...
EoDmnFOr3q's user avatar
  • 2,343
2 votes
0 answers
57 views

Can I reuse the window/orphan mechanism of section titles to bind something else (like theorems with their proofs)?

LaTeX layout mechanism can somehow try to avoid window/orphan paragraphs and section titles, i.e. it's very rare (or impossible?) for a section title to appear at the end of a page with the first ...
Nicola Gigante's user avatar
1 vote
0 answers
59 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
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
1 vote
0 answers
259 views

Which package for shading theorems: tcolorbox, mdframed, or just thmtools?

What are the comparative advantages and disadvantages of each of the following packages for creating shaded backgrounds of theorem-like environments produced using thmtools: tcolorbox, mdframed, and ...
murray's user avatar
  • 8,640
1 vote
0 answers
249 views

Inconsistent spacing after theorem environment (KOMA)

After including the parskip=half- option I'm getting inconsistent spacing after theorem environments (Sometimes there's more space than it should). If I don't use that option the problem goes away but ...
Adrián Delgado's user avatar
1 vote
1 answer
240 views

Break Line unless it is Empty

I'm trying to write a macro that finishes a group with a horizontal line. If the line is non-empty, it should add a line break and the horizontal line. If the line is empty, e.g. the group ended in an ...
Phonehmer's user avatar
1 vote
2 answers
361 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 ...
nagmat84's user avatar
  • 1,125
1 vote
0 answers
157 views

thmtools and mdframed (vertical space)

I dont know why I dont get the two examples closer together. How can I achieve a spacing of 0mm between the two Examples? %!TEX TS-program = XeLaTeX %!TEX encoding = UTF-8 Unicode % DEFINITIONS =...
Gabriel's user avatar
  • 1,584
1 vote
1 answer
100 views

How to bring the footnote back to the footer of the page when using thmtools

I use thmtools for my theorems. But when I use it, my footnotes done with \footnote{foo} don't appear in the footer, they are in the footer of the theorem. I declare my theorem like this \...
High Ball's user avatar
  • 121
0 votes
0 answers
29 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
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,640
0 votes
0 answers
119 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
0 votes
1 answer
122 views

Thmtools error: headformat not known

I use the code given below to create a theorem box using thmtools, I get the error: Package thmtools Error: \declaretheorem key `headformat' not known. According to the thmtools documentation, ...
kksagar's user avatar
  • 323
0 votes
0 answers
43 views

Marginnote eats first item in thmtool's mdframed

In short, when I create a \marginnote and a list inside of a thmtools box which uses mdframed, the list formatting of the first item in the list gets eaten. Here's a minimal working example. \...
Derive Foiler's user avatar
0 votes
0 answers
87 views

Theorems in itemize/enumerate do not align with bullets

I am starting off enumerate bullets with some custom theorem environments using amsthm and thmtools. Here is the misaligned example along with the code. Notice how the "proof" environment ...
Jason1923's user avatar
  • 149
0 votes
1 answer
188 views

How edit headformat with thmbox=M in \declaretheoremstyle

good Saturday! I am making environments for demonstrations. I want to edit the "headformat" of an environment made with thmtools that has "thmbox = M", I want the number not to ...
Alastor's user avatar
  • 53
0 votes
0 answers
74 views

Detached corollaries with `cleveref`

I asked a question here about detached corollaries and got very good answers. However, I should have specified that I am also using cleveref, and it is not clear to me how to adapt those answers in a ...
giobrach's user avatar
  • 369
0 votes
0 answers
225 views

Margin note next to theorems

I'm writing a math paper where I would like to give literature references next to theorems using marginnote or marginpar. Unfortunately, I can't seem to get them positioned in the right way (i.e. ...
balu's user avatar
  • 249
0 votes
0 answers
269 views

Multiple columns in theorem

I use amsthm and thmtools and I want to specify 2 columns in my theorem. I have 2 questions: When I specify it, I obtain a very bad result (there is an issue to break correctly the text) Is there any ...
Guuk's user avatar
  • 1,495
0 votes
1 answer
208 views

How can I change the format of an entry in \listoftheorems of thmtools?

How can I change the format of an entry in \listoftheorems of thmtools? With the following MWE: \documentclass{article} \usepackage{amsthm} \usepackage{thmtools} \declaretheorem[]{definition} \...
mrclrchtr's user avatar
  • 126