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
4 votes
4 answers
244 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. \...
user avatar
2 votes
1 answer
50 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 ...
user avatar
0 votes
0 answers
23 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, ...
user avatar
  • 303
2 votes
2 answers
137 views

Something went wrong when using `\declaretheoremstyle` and `\declaretheorem` in LaTeX 3

I want to remove the . after the head, i.e., make headpunct = {}, but the key headpunct is only available in \declaretheoremstyle, so I used it to create a new style without ., but something goes ...
user avatar
  • 419
0 votes
0 answers
24 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. \...
user avatar
0 votes
0 answers
46 views

How make newtx option theoremfont work with thmtools?

I want the body of theorems to be in a true slanted font (\slshape) rather than in italic, yet have brackets within a theorem body to be upright. The newtx package (version 1.7) option theoremfont (...
user avatar
  • 6,382
4 votes
3 answers
244 views

Creating a solution label for an exercise using \declaretheoremstyle

I am writing a book with exercises scattered throughout the text, for which solutions are presented at the end of each chapter. I want the layout to be as follows: An exercise environment is ...
user avatar
  • 298
5 votes
2 answers
106 views

New environment with a glyph before its head

I want to create the following exercise environment, for exercises: That is, insert a black triangle right symbol, ▸, before the header of the exercise. To accomplish this, I would prefer to use the ...
user avatar
  • 298
0 votes
1 answer
49 views

List of Theorems divided by Chapter

I'm trying to divide my list of theorems by chapter, similar to what is done in here. I'm using the thmtools package, and I'm quite close of getting it to work. I've used the following code from the ...
user avatar
0 votes
0 answers
35 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 ...
user avatar
  • 139
0 votes
1 answer
16 views

How to use thmtools features with accented variables in proof titles?

I'm using the accents package to put accents over variables in math mode. The accented variables work fine in amsthm theorems, as demonstrated in the example below. \documentclass{article} \...
user avatar
0 votes
0 answers
28 views

Well coded framed Boxes

I wanted to define a simple box using the thmtools package. This box should have a name (e.g. Framedbox), a title and then the text inside a top and bottom line. This is the basic (messy) code I have ...
user avatar
  • 366
1 vote
1 answer
28 views

Conflict between thmtools and hyperref/autoref

I want to use \autoref in an entry in the PDF toc (the purpose is a appendix with proofs). But unfortunately the three ingredients \addcontentsline, \autoref, thmtools conflict with a cryptic error ...
user avatar
  • 302
1 vote
1 answer
77 views

Collect duplicates of all environments of certain type

I'm writing a workbook for students with homework exercises and their solutions contained. For the ´´homework-exercise´´ and homework-exercise-solution I defined custom environments using amsthm. ...
user avatar
  • 187
1 vote
1 answer
46 views

Colored theorem style which does not color the name

I am using a thmtools to color my theorems. However, I want the name of this theorems to be uncolored. Now I have : but I want the "test" in black. The code I use for these theorems is : \...
user avatar
0 votes
1 answer
122 views

thmtools. How do I customize it?

Consider the following MWE \documentclass{article} \usepackage[OT2,T1]{fontenc} % Enable Type 1 font encoding (Cork Encoding) \usepackage[utf8]{inputenc} \usepackage[titletoc,toc,title]{appendix} ...
user avatar
  • 681
1 vote
1 answer
35 views

{thmtools} changing a numbering by {amsmath}

Why would the simply loading of the package thmtools alter the numbering system predefined by amsmath? Just uncommenting the line on thmtools changes the numbering sequence on the document. \...
user avatar
0 votes
0 answers
43 views

How to add a left margin inside a thmtools environment?

MWE: \documentclass[12pt]{scrartcl} \usepackage[T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{amssymb} \usepackage{amsthm, thmtools} \...
user avatar
  • 345
0 votes
0 answers
69 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 ...
user avatar
  • 6,382
2 votes
1 answer
47 views

Text formatting relative to environment (theorems)

I've gotten the code below from another post and, I'm not sure whether or not this is possible but, I would like to define an alternate \myemph command whose effect would depend on the theorem ...
user avatar
  • 321
1 vote
1 answer
132 views

Using thmtools to make colored theorem style

I am trying to define a new theorem style that is identical to the standard remark provided by the amsart class, except for its color. As far as I understood, it is a good idea to use the thmtools ...
user avatar
  • 335
0 votes
1 answer
36 views

IEEEtrantools breaks restated theorems (thm-restate)

I really like this question/answer ("patched theorem defintion" in the minimal example) and I wanted to adapt it to my custom dissertation class file. However, I ran into some problems with ...
user avatar
2 votes
3 answers
114 views

Cleveref sorting doesn't work correctly if theorem shares subsection counter

In the MWE below, the theorems should be sorted as "1.2 and 2.1" rather than "2.1 and 1.2". The correct sorting behavior is obtained by replacing sibling=subsection with parent=...
user avatar
  • 1,299
1 vote
2 answers
35 views

Using "shaded" in thmtools and add space below and above

In the following example \documentclass{scrartcl} \usepackage{blindtext} % \usepackage{amsthm} \usepackage{thmtools} % \declaretheoremstyle[% spaceabove=60pt, spacebelow=60pt, % just for ...
user avatar
  • 607
0 votes
0 answers
36 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 ...
user avatar
  • 53
0 votes
1 answer
35 views

Restating a part of the definition

I am repeating a single definition several times, and I use restatable to do so. But I want the first occurrence of a definition to contain a qualification which is not repeated in the next ...
user avatar
  • 908
3 votes
1 answer
58 views

List of answers thmtools

I've created such file for sheets with exercises. \documentclass[12pt]{scrartcl} \usepackage{amsthm, thmtools} \usepackage{blindtext} \declaretheoremstyle[ headfont={\normalsize\bfseries}, ...
user avatar
  • 345
0 votes
0 answers
14 views

Referring to environment starting with list

When referring to an environment that starts with a list, the numbering is correct, but when clicking the link created by hyperref, one gets sent to the wrong page. This phenomenon does not happen ...
user avatar
  • 159
0 votes
1 answer
44 views

Preventing theorem title from moving with theorem content

I am currently writing a document using thmtools, where i want to include tikzpictures centered in a theorem environment. It works well when i have some text before the tikzpicture, however if the ...
user avatar
0 votes
0 answers
28 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 ...
user avatar
  • 335
4 votes
2 answers
108 views

Corollary far away from its theorem

I am using amsthm with thmtools. When a corollary immediately follows its theorem, the numbering automatically outputs as Theorem n Corollary n.1 Proposition n+1 But what if I insert other numbered ...
user avatar
  • 335
1 vote
2 answers
42 views

How to insert tikzpicture in thmtools environment?

\documentclass[12pt]{scrartcl} \usepackage{amsthm, thmtools} \usepackage{pgfplots} \usepackage{blindtext} \declaretheoremstyle[ headfont={\normalsize\bfseries}, bodyfont=\footnotesize, ...
user avatar
  • 345
1 vote
1 answer
59 views

How can I fix compile errors?

I have the following code: \documentclass[13pt]{scrartcl} \usepackage[english,main=russian]{babel} \usepackage{amssymb, amsthm, thmtools} \declaretheoremstyle[ title=Доказательство, bodyfont=\...
user avatar
  • 345
0 votes
1 answer
223 views

How to change the theorem number? [closed]

I would like to change the number of theorem as in picture below to Theorem 5.1 not 5.0.1 ( I want to get a rid of 0 ) --------------------------------------------------------------------------- \...
user avatar
  • 79
1 vote
1 answer
61 views

Customize 'continues' or \thmcontinues from the thmtools package

The package thmtools offers the parameter 'continues' for theorems as shown in the example. \documentclass{article} \usepackage{amsthm} \usepackage{thmtools} \usepackage{hyperref} \...
user avatar
0 votes
1 answer
171 views

redefine theorem to be tcolorbox

I have a large document with theoreme-like environments based on \declaretheorem and references to them using \label and \cref. I want to redefine those theorem-environments to be colored boxes based ...
user avatar
  • 748
0 votes
1 answer
79 views

Restate statements before declaration

TLDR How to throw all dirty but necessary "lemmas/proofs" in the appendix, and restate them in the main text? I had a few attempts, and it seemed that my requests are weird.. so I would ...
user avatar
  • 155
1 vote
1 answer
63 views

Itemize within thmtool box

So I got the following problem: If I want to use itemize within a thmtool-box without text (so only itemize within the box) there is a small gap between the header of the box and the itemize. It looks ...
user avatar
  • 366
0 votes
1 answer
81 views

Thmtools get rid of a dot

I'm using thmtools for my LaTeX Template. I often use the numbered math boxes. But now I wanted to add the same Box just without the math context. So I build this: \documentclas{article} \usepackage{...
user avatar
  • 366
0 votes
1 answer
281 views

Some links disappear with \tcolorboxenvironment for theorem-like environments

In a memoir document class book-length document with some 2MB body content and 140K of premable, each distributed over numerous separate files, I use cleveref along with hyperref and the \...
user avatar
  • 6,382
1 vote
1 answer
103 views

How can I get the theorem name when using cleveref?

Consider the following MWE \documentclass{article} \usepackage{amsthm} \usepackage{thmtools} \usepackage[nameinlink]{cleveref} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{ \IfEmptyTF }{ m ...
user avatar
  • 1,994
2 votes
1 answer
38 views

Blank line between equation and theorem statement

I need to end a paragraph with an equation before the statement of a theorem, but I get an unnecessary blank line. How can I remove it? Looks like the problem lies within the "thmtools" and &...
user avatar
  • 568
3 votes
1 answer
152 views

Thmtools and \declaretheoremstyle in Beamer

I am trying to define a custom theorem environment using thmtools. It works as expected in e.g., \documentclass{article}, but in beamer I receive the error "use of \ifbeamercolorempty doesn't ...
user avatar
  • 133
3 votes
1 answer
88 views

How to remove unwanted first parskip inside tcolorbox

In the example below, how do I remove the first parskip between the top edge of the tcolorbox environment and the first line of the theorem? \documentclass[parskip=half-]{scrartcl} \usepackage{amsthm}...
user avatar
  • 1,994
1 vote
2 answers
135 views

Is it possibe to pass options to a tcolorboxenvironment?

In the following MWE, I'm defining a theorem environment theorem via the thmtools package, and I'm embedding that environment in a tcolorbox, specifying a yellow background. \documentclass{article} \...
user avatar
  • 1,994
1 vote
0 answers
39 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 ...
user avatar
  • 1,994
1 vote
1 answer
39 views

Restatable Does not Show Theorem Number

I learned about restatable from this answer. However, when I put the theorem in the appendix, its reference does not have a number. Here is a MWE: \documentclass{amsart} \usepackage{thmtools} \...
user avatar
  • 123
4 votes
1 answer
398 views

`thmtools.sty' not found - MikTex Console Issue?

Tried looking this up, but having trouble finding anything that was helpful. I just recently built a new computer and installed MikTex on this new desktop. I took a file that compiled on my previous ...
user avatar
  • 57
1 vote
2 answers
146 views

Redefining List of Theorems from thmtools to get Envname Number instead of Number

I'm trying to redefine the List of Theorems environment from thmtools to typeset a List of Theorems that looks like Definition 1 Foo ......1 Theorem 2 ..............2 rather than the usual 1 ...
user avatar
1 vote
1 answer
109 views

crossreftools + docliccense gives error with restatement of restatable theorem

As the MWE below stands, after loading both crossreftools and doclicense, I get the following error on the second pdflatex pass when a restatable theorem is restated. ./restate-thm.tex:43: Undefined ...
user avatar
  • 6,382

1
2 3 4 5