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
0
votes
0answers
36 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. ...
4
votes
1answer
95 views

“Extra \else” error when combining breqn, thm-restate, and cleveref

I have a document that uses breqn, thm-restate (thmtools), and cleveref. I can't get it to compile. Here is a minimal example: \documentclass{article} \usepackage{thm-restate} \usepackage{breqn} \...
5
votes
1answer
81 views

List restated theorems only once

I like to take my notes in LaTeX, and to help my speed, I use restatable theorems so that I can quickly recall the text and re-insert it into my notes when the professor mentions it. However, the ...
0
votes
1answer
71 views

Unwanted gray line using mdframed

I'm using mdframed to surround my theorem environment with a double line on the left side (trying to reproduce Hatcher's "Algebraic Topology"). It works nearly perfectly, except for two little ...
8
votes
2answers
145 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 ...
0
votes
0answers
37 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 ...
1
vote
0answers
31 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 ...
1
vote
0answers
26 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: \...
1
vote
1answer
66 views

List of theorems: only the optional argument, if nonempty, for all theorem-like environments?

\listoftheorems gives the desired results in the entries for ordinary theorem environments, whether they have an optional argument or not, and also for namedtheorem environments. Question: What ...
2
votes
1answer
46 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 ...
0
votes
0answers
33 views

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

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 ...
0
votes
0answers
21 views

Fix capitalization in reference to named theorem

Common practice in mathematical writing is that names of theorems (e.g., "fundamental theorem of calculus") are not capitalized when referred to in the body of the text. However, if such a name is ...
1
vote
1answer
46 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 ...
2
votes
1answer
59 views

\NAME equivalent for ntheorem?

I am trying to color only the NUMBER part of my theorems and corollaries. After some fiddling I was able to produce the following image which I am almost happy with In the code below I have the line ...
2
votes
1answer
65 views

Issue with thmtools and cleveref

I have seen other issues about cleveref and thmtools (A problem with thmtools and cleveref, Problem with hyperref / cleveref / thmtools, How do I get rid of particular pdftex warning message?), but ...
0
votes
1answer
42 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
1answer
45 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
15 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
141 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
24 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
215 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
44 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
23 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} \...
6
votes
1answer
192 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
41 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
64 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
33 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
55 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
85 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
49 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
195 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
149 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
319 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
62 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
127 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
105 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
140 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
104 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
137 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
98 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
66 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
116 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
180 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
229 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
124 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
163 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
86 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
90 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
464 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
134 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 ...