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
19 votes
1 answer
11k views

using a restatable before it is stated

This question is related to the question at Recalling a theorem, which uses the thmtools and thm-restate packages and the restatable environment to define a theorem that can be re-stated later on. Is ...
conorsomahony's user avatar
9 votes
1 answer
2k views

Restate theorem in separate file

I state a theorem in the main body of a document and prove it in the appendix. I use thmtools's restatable environment to restate the theorem there. However, I now need to have my appendix in a ...
Rui's user avatar
  • 115
9 votes
1 answer
3k views

Shaded theorems (thmtools) spanning pages

When the thmtools package is used to create theorem environments with a shaded background, it does not allow separate theorems to span more than one page. This is a rather severe problem if the ...
TSGM's user avatar
  • 2,362
1 vote
1 answer
929 views

Customizing list of theorems

Is it possible to avoid brackets surrounding the name of a theorem in the \listoftheorems from package thmtools? And if so, how do I do that?
MickG's user avatar
  • 5,436
6 votes
2 answers
923 views

thmbox splits theorems in two pages and the option "nocut" produces many empty spaces in pages.

this is a follow up to the problem described here. I have the same problem and the proposed solution does not completely solve the problem. I mean, it does solve the problem but also creates another ...
KBS's user avatar
  • 161
5 votes
1 answer
191 views

Conflict between tkz-fct and thmtools?

I'm using TeXLive 2014. Here's a MWE: \documentclass{article} \usepackage{tkz-fct} % Must appear before {thmtools} \usepackage{thmtools} \declaretheorem{theorem} \begin{document} \begin{...
Dominique's user avatar
  • 1,369
2 votes
1 answer
187 views

How make first letter upper-case in list of theorems?

The first entry in the output from \listoftheorems in the following MWE begins with a lower-case letter, just as in the optional argument in the corresponding theorem environment. How can that letter ...
murray's user avatar
  • 8,608
2 votes
1 answer
791 views

How use cleveref to get theorem-like name and list item number?

How do I need modify this source so that: The first output line of Chapter 1, currently "See ?? 1, below", becomes instead "See Problem 2.1, below" The first output line of Chapter 2, currently "...
murray's user avatar
  • 8,608
9 votes
2 answers
4k views

thmtools: How to prevent pagebreak between theorem and proof?

I am using thmtools to format a collection of theorems and their proofs. Is there any way to prevent a pagebreak from happening between the last line of a theorem statement and the first line of the ...
kjo's user avatar
  • 861
8 votes
2 answers
692 views

Latest update of Oberdiek package: \declaretheoremstyle not working anymore

Just updated to the 20 December build of the Oberdiek package, on my TeXLive installation. Files that compiled without problems are now throwing the following error: ./Preamble.tex:78: Undefined ...
brunoh's user avatar
  • 723
7 votes
1 answer
682 views

'List of theorems', translated into my language

I'm using \listoftheorems (part of the thmtools package) to show a list of all my theorems. It works really well, but it prints "List of theorems" in English; I would obviously prefer it to be in my ...
BAD_SEED's user avatar
  • 1,085
5 votes
1 answer
960 views

Horizontal spacing issue in \listoftheorems using amsthm + thmtools

I am using the command \listoftheorems with packages amsthm and thmtools. The problem is that the theorem's head and its optional title overlap. How can I make this space bigger to avoid overlapping? ...
varun's user avatar
  • 55
13 votes
3 answers
4k views

Theorem name and number in margin, note in text

I'm using thmtools to make ultra-fancy theorems. I would like the Theorem name and number (e.g., "Theorem 1") to jut out into the left margin of the text, and the note (e.g., "The Fundamental Theorem ...
Matthew Leingang's user avatar
11 votes
2 answers
1k views

wrong page with pageref if using thmtools

I don't know if the following issue is related to any other question already asked. My issue and minimal looks very simple. \documentclass{book} \usepackage{hyperref} \usepackage{amsthm} \usepackage{...
Stefe Klauou's user avatar
10 votes
1 answer
6k views

Using mdframed style within \declaretheoremstyle to change title

I am using thmtools to create an example environment using \declaretheoremstyle and \declaretheorem. I am also modifying the style using the mdframed key, to create a frame, shade the background of ...
conorsomahony's user avatar
6 votes
1 answer
4k views

Editing Format of List of Theorems in thmtools

I'm trying to change the formatting of the \listoftheorems command from the thmtools package. It currently prints "Theorem (Name of Theorem).... Page Number", and I would like it to print "Name of ...
user52567's user avatar
  • 163
6 votes
2 answers
2k views

`ntheorem` and `thmtools` seem incompatible

I am preparing the setup of the theorem environments for my thesis. I want to do this right before I have say 200 of those environments in my document, since changing them will likely break things at ...
jmc's user avatar
  • 1,660
5 votes
1 answer
759 views

Only show \NAME in \listoftheorems

I am using the thmtools package, and I want to modify \listoftheorems to only print the name of the theorem. For example, my document might look something like the one shown below. When I compile this ...
Stirling's user avatar
  • 1,439
4 votes
0 answers
459 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
3 votes
1 answer
128 views

Thmtools and tkz-euclide conflict [duplicate]

I cannot use both packages thmtools and tkz-euclide. Following is a minimal nonworking example with "pdfTeX, Version 3.14159265-2.6-1.40.18": \documentclass{article} \usepackage{thmtools} \...
user172886's user avatar
3 votes
1 answer
383 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
3 votes
1 answer
520 views

Remove repeated "Theorem (" in the list of theorems

I use declaretheoremstyle to define a theorem environment, and print a list of theorems in the end of my document: \documentclass{article} \usepackage[english]{babel} \usepackage[margin=2cm]{geometry}...
SoftTimur's user avatar
  • 20k
3 votes
1 answer
505 views

Number theorems with chapter number

I use declaretheoremstyle to define a theorem environment, and print a list of theorems in the end of my document: \documentclass[12pt]{book} \usepackage[english]{babel} \usepackage[margin=2cm]{...
SoftTimur's user avatar
  • 20k
2 votes
1 answer
616 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,145
0 votes
1 answer
770 views

thmtools with thmbox split in two pages

I am trying to use the thmbox=Moption from the thmtools package. But sometimes in the text when there isn't enough space for the theorem to fit in the bottom of the first page, it moves it to the next ...
user2262793's user avatar
0 votes
0 answers
153 views

How remove parentheses and extra indent for named theorems in list of theorems? [duplicate]

The output from \listoftheorems in the following MWE has unwanted parentheses around the names of namedtheorem theorem-like environments and extra indentation there, too. How can the parentheses and ...
murray's user avatar
  • 8,608
22 votes
4 answers
2k views

A problem with thmtools and cleveref

I am trying to use thmtools and cleveref and I am getting a quite peculiar error. Here's a minimal example. \documentclass{article} \usepackage{thmtools} \usepackage{cleveref} \declaretheorem[name=...
Karol Szumiło's user avatar
8 votes
1 answer
3k views

Define proof environment in thmtools

I'm using thmtools for fancy-looking math environments. But I don't know how to redefine proof environment. I cannot find such topics in its documentation. This is my LaTeX code snippet. \...
user19906's user avatar
  • 1,415
8 votes
1 answer
768 views

Using thmtools: numbering with asterisk

I would like to repeat a theorem number with an added asterisk. That is, the original theorem is: Theorem 1. Lorem ipsum... And I would like the analogue theorem to be: Theorem 1*. Lorem ipsum...
user44413's user avatar
  • 601
7 votes
1 answer
604 views

How to remove space surrounding a colored theorem box?

This is a follow-up question of Combining spacebelow with shaded parameter in thmtools package. Bug?. How can I get rid of the space above the theorem box? If I comment out the mdframed=... line it ...
user4811's user avatar
  • 4,185
6 votes
1 answer
1k views

Problem with hyperref / cleveref / thmtools

The following is a (fairly) minimal example: \documentclass{book} \usepackage{amsmath} \usepackage{amsthm} \usepackage{thmtools} \declaretheoremstyle[ spaceabove=6pt, spacebelow=6pt, headfont=\...
Steve D's user avatar
  • 712
5 votes
2 answers
219 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,145
5 votes
2 answers
984 views

Proof environment produces "Proof Proof: ..." only when thmbox is used

I'm using thmtools. When I use the thmbox keyword in a theorem environment definition, all the proofs start with "Proof Proof: ". MWE: \documentclass{article} \usepackage{amsmath} \usepackage{amsthm}...
rubik's user avatar
  • 781
4 votes
2 answers
624 views

PDF bookmarks for thmtools' theorems

I would like to add PDF bookmarks for some classes of theorems declared using thmtools and I couldn't find a beautiful way to do it so far. The best idea I have been able to come up with was to add \...
Evpok's user avatar
  • 2,842
4 votes
2 answers
212 views

List of Theorems not in pdf readers index

I am using memoir and the \listoftheorems of the thmtools package. And while it seems to beautifully work and integrate in the table of contents, it does not appear in the index listing of the pdf ...
Tim's user avatar
  • 315
4 votes
1 answer
415 views

amsbook+thmtools: `\listoftheorems` points to first page of document, not to list of theorems

I use the thmtools package in an amsbook document and compile with pdflatex. The hyperlink generated in the table of contents that should point to the list of theorems wrongly points to the first page ...
Dominique's user avatar
  • 1,369
4 votes
2 answers
646 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 ...
giobrach's user avatar
  • 369
4 votes
3 answers
974 views

thmtools: how to put xrefs in argument to thm environment?

I'm using thmtools for defining several environments for theorems, lemmas, etc. Among these is an environment for corollaries. (I give the full definition of this environment at the end of this post)...
kjo's user avatar
  • 861
4 votes
1 answer
428 views

How do I show the theorem body in thmtools \listoftheorems

I would like to add a list of theorems to my document so I have included thmtools. This gives a list of theorems but in the following format. 1.1 Theorem . . . . . . . . . . . . . . . . . . . . . . . ...
Anthony's user avatar
  • 43
3 votes
1 answer
879 views

Extra space before labeled theorem body with thmbox or thmtools+thmbox

Package thmbox seems to add an extra space at the beginning of the body of the labeled theorems. See example below. Package thmtools with the thmbox option does the same. Latex original, package ...
ASdeL's user avatar
  • 4,945
3 votes
2 answers
533 views

An error I get trying to number tables consecutively with theorems

egreg kindly answered my (previously-asked) question about giving numbers the same numbering as theorems here: Numbering tables sequentially. Unfortunately, this very good solution seems to be ...
jdc's user avatar
  • 1,245
3 votes
2 answers
1k views

Referencing named tcbtheorems

My objective is exactly the same as in this question, however, I would like to achieve this same effect with \newtcbtheorem from the tcolorbox package. For example \documentclass{article} \...
Jonathan Gleason's user avatar
2 votes
1 answer
716 views

Restating a Theorem Without the Optional Argument

I am currently stating theorems in the body of my document and then proving them in the appendix (using thmtools). I will currently write something like \begin{restatable}[Proof in \Cref{whatever}]{...
brett1479's user avatar
2 votes
1 answer
317 views

Combining spacebelow with shaded parameter in thmtools package. Bug?

In the following example the spacebelow parameter is ignored. If you comment out the shaded parameter, the space is considered. Is it possible to use both parameters spacebelow / shaded? \...
user4811's user avatar
  • 4,185
2 votes
1 answer
138 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
2 votes
2 answers
425 views

Upright brackets in theorem body with bodyfont=\mdseries\itshape?

Is it possible to make square brackets in the body of a theorem appear upright — when using the declaration bodyfont=\mdseries\itshape in the definition of a theoremstyle with thmtools? The method of ...
murray's user avatar
  • 8,608
2 votes
1 answer
344 views

Extra brackets appearing in styled theorem in beamer

Here is my code: \documentclass[slidescentered]{beamer} \usepackage{amsthm,thmtools,xparse} \makeatletter \newif\if@namespace\@namespacefalse \newcommand{\contrel}[2]{ \if@namespace Continua da \...
MickG's user avatar
  • 5,436
2 votes
1 answer
232 views

Theorem name not making it to the aux

I posted a question. egreg answered. I applied his solution to my presentation. It worked. Then I tried it in my thesis, where I use references, and I realized the theorem names weren't making it to ...
MickG's user avatar
  • 5,436
2 votes
1 answer
875 views

How suppress number of numbered theorem?

Is there a way, with amsthm and thmtools (possibly other packages, too) to have LaTeX keep track of the numbers of a particular kind of theorem, yet not have the numbers actually appear in the printed ...
murray's user avatar
  • 8,608
1 vote
1 answer
420 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 ...
noibe's user avatar
  • 2,094