Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
0answers
16 views

Changing space between number and name in List of theorems

In the list of theorems, I am trying to increase the space between the numbers and the name of the theorem. Unfortunately, my numbers get rather long, so they overlap with the names of the theorems. I ...
0
votes
0answers
11 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 ...
0
votes
1answer
10 views

thmtools breaks links to algorithms

I don't know why, but loading thmtools breaks the links to the algorithm. Just removing this package, or loading after the \numberwithin stuff seems to fix the compilation, but I'm wondering if it is ...
2
votes
1answer
47 views

Styling amsthm theorem using thmtools

I'm trying to stylize my definitions/examples etc. a bit to have a more simple overview once finished. Im specifically trying to achieve this: But don't really know how to achieve it. I can only ...
0
votes
1answer
17 views

I cannot get the numbers in theorem environment (thmtools)

I can't seem to get the numbers of my theorems back in my custom theorem environment, some help would be appreciated: \documentclass[10pt,a4paper]{article} \usepackage{amsthm} \usepackage{thmtools} \...
3
votes
1answer
94 views

Create a claim environment for nested claims inside theorem proofs using thmtools

Consider the following declarations: \usepackage{amsmath, amsthm, amssymb, thmtools} \declaretheorem[numberwithin = section]{theorem} \declaretheorem[sibling = theorem, style = definition]{...
1
vote
1answer
32 views

Theorem titles in outer margins (even / odd pages)

I would like theorem / definition / etc. labels to appear in the outer page margin (taking even and odd pages into account). First, I tried to use the thmtools package (code and image below). However, ...
0
votes
1answer
10 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} \...
0
votes
0answers
29 views

Problems with `thmtools` and arXiv

I'm trying to get my submission compile on arXiv. I have no idea as to how to reproduce this error so I did not manage to create an MWE. I only think it is related to thmtools. The error is the ...
0
votes
0answers
18 views

Reset Listoftheorems for each part

My personal style for taking notes is to make them in separate files, then combine them all into a book for the end of the semester, so that I can easily share my notes with my fiends that have ...
6
votes
1answer
126 views

Variable headpunct for theorem styles (using thmtools)

I am using the thmtools package to create my theorem environments and I would like to have a headpunct that depends on the start of a theorem: if it starts with an enumeration (that is, if it starts ...
1
vote
1answer
34 views

How to prevent Latex to go to line inside a theorem environement

I made a new theorem environement for a document but when the theorem is at the end of a page Latex cut the title and the core of the theorem in two pages. How can I prevent that (I can't put \ \ * ...
2
votes
1answer
51 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} \...
1
vote
1answer
24 views

Numbering a claim within a theorem but not in order

I would like to number a claim within the proof of a theorem, but the proof does not appear right after the statement of the theorem. That is, I would like to generate: Theorem 1. XXXX Theorem 2. ...
1
vote
0answers
45 views

cleveref switches the reference order

Suddenly, in a unique example that I can't seem to reproduce in a MWE, cleveref switches the order of my references. Here's my configuration of cleveref and the theorems: \usepackage[backref=page]{...
2
votes
2answers
49 views

Removing the word “theorem” or defn from a listoftheorems

How can I remove the word theorem/defintion from a list of theorems: \usepackage{amsthm} \usepackage{thmtools} \declaretheorem[numberwithin=section]{defn} ... \listoftheorems \begin{defn}[My ...
3
votes
1answer
31 views

How remove space before optional argument in custom theorem-like environment?

How do I remove the unwanted space before the optional argument (set here) and after the theorem-like environment's name (Intuitive idea--- here)? \documentclass[12pt]{article} \usepackage{amsthm} \...
1
vote
1answer
116 views

Restating a theorem after the introduction without the optional argument

How do I state a theorem in the first section of my paper with the optional argument, and then restate the theorem in subsequent sections without the optional argument? (The optional argument will ...
1
vote
1answer
101 views

Thmtools declaretheoremstyle usage leads to undefined error

When using thmtools to define my own theorem style as follows: \documentclass{book} \usepackage{amsthm} \usepackage{mdframed} \usepackage{thmtools} \definecolor{thmBgColor}{RGB}{250,250,250} \...
2
votes
1answer
175 views

counters of \declaretheorem and \newtheorem differ

I want to use thmtools in order to state questions, that I want to repeat at a latter point of my text. I declared the question-environment using \declaretheorem, but I also use theorem-environments ...
1
vote
1answer
41 views

Conflict on numbering equation and thm?

I'm trying to number equations following theorem-like environments. So I write \declaretheorem[name=Theorem,sibling=equation]{thm} But then there are errors: Command \@thm already defined. ...
0
votes
1answer
84 views

Defining a new environment out of `restatable`

I am preparing a manuscript for a conference that offers a class file and a package of macros. In the style file, they have \newtheorem{thm}{Theorem}[section] and similar lines, and in the macro ...
0
votes
1answer
75 views

Resetting or custom numbering in thmtools

I'm using thmtools in tufte-handout class, with styles given by egreg for declaring properties assiciated with various systems. I searched in Thmtools User's Guide for a custom number or resetting ...
0
votes
1answer
98 views

How to have consecutive numbering of Theorems, definitions and so on using thmtools [closed]

How can I make the same numeration regardless it is a remark like Theorem or a definition like Theorem or any other declaredtheorem. This is what I have: \usepackage{amsthm} \usepackage{thmtools} \...
1
vote
1answer
88 views

\listoftheorems Not actually displaying

I am working on my notes for my classes, and decided that it would be useful to have a list of theorems and definitions for my algebra section. The theorem environments themselves are working fine, ...
0
votes
0answers
110 views

Let TeX Studio recognize \declaretheorem

For some reason, my new TeX-Studio (TeXstudio 2.11.2, running on Ubuntu 16.04) does not recognize theorem environments defined by \declaretheorem. MWE: \documentclass{article} \usepackage{amsthm,...
1
vote
1answer
68 views

Correct reference but wrong hyperlinks with tcolorbox and thmtools

After spending several hours tracking down an issue with wrong hyperlinks in my thesis, I managed to cook up the following MWE: %!TEX program = pdflatex \documentclass{scrbook} \usepackage{hyperref,...
1
vote
1answer
51 views

Restart the theorem counter in each subsection using `thmtools`

I'm using thmtools package for define my own templates and I would like to restart theorem counters at each subsection. How I can get it? Pd: I'm also using cleveref package. MWE \documentclass{...
1
vote
1answer
73 views

Indent a theorem using `thmtools`and `cleveref`

I use 'mathtoolspackage to define my theorem styles andcleveref` to be able to re-enumerate it. But this package does my old code \makeatletter \AtBeginEnvironment{remark}{% \patchcmd\@thm{\...
1
vote
2answers
119 views

Automatically style optional argument to proof environment?

With packages amsthm and thmtools, is there a way to cause the optional argument of every proof environment to be styled in a prescribed way — say to be sans serif and bold (in addition to the ...
1
vote
1answer
189 views

Align indents of list of figures and list of theorems

I am sure this is answered already somewhere but I did not find it, sorry. I am using memoir with the \listoftheorems of the thmtools package and I use \listoffigures (and \listoftables). For some ...
2
votes
2answers
89 views

Adjust font in list of theorems in memoir

I am using memoir with the \listoftheorems of the thmtools package. I would like to use the sffamily font for typesetting the list of theorems. As \listoftheorems uses \listoffigures internally, I ...
1
vote
1answer
119 views

Additional space when using postheadhook of thmtools

This problem is related to my previous question on how to put name, number and note of a theorem in the margin column. After hours of trial and error I have come up with the following solution: \...
3
votes
2answers
79 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 ...
5
votes
1answer
80 views

What is the most elegant way to reference a named proposition using cross-references with cleveref and amsthm?

I have a document in which I have a named proposition, which I wish to reference by its acronym. Since it is named, it ought not be numbered. Still, I'd like to reference it using a cross-reference, ...
1
vote
1answer
341 views

thmtools: Footnotes in theorem names and notes

I am using the thmtools package as a frontend to amsthm to typeset various types of theorems. Sometimes I feel the need to put a footnote either directly at the theorem name or inside the theorem note....
1
vote
2answers
116 views

How can I remove the space before a custom theorem-like environment header?

I have created a custom theorem-like environment using the package thmtools commands \declaretheoremstyle and \declaretheorem. The header of the environment is supposed to be given as an option at the ...
1
vote
1answer
139 views

Drop-cap (lettrine) with thmtools

I want to make theorems, definitions, etc. to start with a drop-cap, like on the picture below. It is produced with the code \documentclass{article} \usepackage{amsthm} \usepackage{thmtools} \...
2
votes
2answers
140 views

Formatting within theorem broken when using lstlisting

according to other answers here (e.g. Avoid page breaks in \lstlistings, How can I ensure that a listing is not going to be split?) I have put all my listings in a minipage to avoid unwanted ...
1
vote
0answers
124 views

Restate theorem text within section without “Theorem X” part

I would like to restate a theorem within a section, like: \documentclass{article} \usepackage{thmtools} \usepackage{thm-restate} \declaretheorem{theorem} \begin{document} \begin{restatable}{theorem}...
1
vote
1answer
52 views

Have upper and lower bars in theorems identical to lstlisting

I would like to have a style for theorems identical to lstlisting with frame=lines but I could not find a option for declaretheorem to do so. Going away from thmtools is not easy as I have already ...
1
vote
1answer
60 views

Currentsection list of theorems in scrartcl

Is there a handy way to include an etoc-like \localtableofcontents for theorems? I have multiple environments defined with thmtools in a scrartcl document and would like to have a list of theorems of ...
2
votes
1answer
249 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}]{...
0
votes
1answer
96 views

How to use thmtool to defined a bolded theorem style?

I am currently following this answer to create a theorem style using theorem tool. How to change the way theorems are displayed? Previously I used something from the amsthm package, but it had a ...
1
vote
2answers
180 views

Get thmtools style with mdframed (issues with the title and MWE provided)

I am trying to achieve the following output with mdframed, but I can't. I did the proof in the attached picture below with thmtools, but I am abandoning it because some of my proofs are very long and ...
5
votes
2answers
199 views

Total count of Theorem like environments - In all chapters

I am using the following structure to define my custom theorem-like Prob environment using the thmtools package. I want to include the total number of problems in the introduction. For this I am ...
2
votes
0answers
95 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. ...
4
votes
1answer
117 views

Why does thmtools not apply multiple theorem filters in \listoftheorems?

I'm looking to create a theorem and definition list with thmtools's \listoftheorems for my thesis. I have the following theorem types (grouped by style) Lemma, Proposition, Corollary, Theorem ...
0
votes
1answer
135 views

Fix thmtool spacing when using the parskip package

While on polished documents the usual paragraph spacing is nice, in personal notes I prefer to have non-indented paragraphs separated by blank lines. This can be easily accomplished by using the ...
2
votes
1answer
197 views

Vertical space before and after theorem and line indent with thmtools

I am using thmtools for theorems and definitions in my document. However, I struggle with some of the necessary options. The above picture shows my problems. How do I get rid of the text indent in ...