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
1 answer
28 views

Expansion in stored csname of restatable theorem

Thinking about this question, I'd like to use thmtools' restatable environment to store theorems with a number in the csname. That way one can loop through them at the end of the document to restate ...
mbert's user avatar
  • 2,595
2 votes
1 answer
85 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
1 vote
0 answers
27 views

Leftmargin for theorems with thmtools-package

Is there an easy way to set a left margin with the thmtools-package? \documentclass[ngerman, parskip=full]{scrartcl} \usepackage{amsthm} \usepackage{thmtools} % \declaretheoremstyle[% spaceabove=...
Ulrich's user avatar
  • 877
0 votes
1 answer
65 views

Need help to define a custom environment

I want to define a custom theorem environment. I imagine it having two invisible boxes (pictured in yellow and red) where both boxes are filled with text from optional parameters and an equal sign ...
average math enjoyer's user avatar
1 vote
2 answers
133 views

Good practice with \DeclareKeys

I'm trying to make a "one-off" theorem environment for theorems with custom names that shouldn't be numbered at all. The goal is to copy the behavior of thmtools \declaretheorem[thmbox=M]{...
mbert's user avatar
  • 2,595
0 votes
1 answer
52 views

\listoftheorems: named theorems and optional arguments

In the following, I have three kinds of theorems: an "ordinary" theorem, which just has the head "Theorem", as in the 3rd; a theorem having both a head and a note, "Theorem (....
murray's user avatar
  • 7,650
2 votes
1 answer
32 views

parskip clashes with thmbox of thmtools

I have a problem using the parskip and thmtools packages. I want to use the boxes provided by thmtools to frame my theorems lemmas etc. The one I'm interested in is the thmbox=M box but as soon as the ...
Théo Leblanc's user avatar
3 votes
2 answers
64 views

thmtools: Parentheses behaving weirdly in note

I used thmtools package to define theorem style because I wanted just the note to have a different colour: \documentclass{article} \usepackage{xcolor} \usepackage{amsthm} \usepackage{thmtools} \...
Akshara Prasad's user avatar
1 vote
1 answer
42 views

thmtools drops font coloring at page break when paired with mdframed

Right now, I use thmtools with mdframed to create theorem environments with lines down the side. The difficulty is that I also want to be able to change the color of the text in these theorem ...
Robin Aldabanx's user avatar
1 vote
1 answer
44 views

Put current section number in name of thereom-like environment

The following source numbers exercises consecutively across sections. It successfully adds, for each exercise set,an entry to the table of contents that includes the current section number. Question: ...
murray's user avatar
  • 7,650
2 votes
1 answer
39 views

thmtools note spacing fix

I've run into some spacing problems when attempting to create my own theorem styles using thmtools. What I want can be condensed into the following points: Theorem name should be in the margin and ...
IllAtTheseNumbers's user avatar
2 votes
1 answer
64 views

Restating Theorems while Changing its Name (Title)

We all know that "restatable" package can help repeat theorems in exactly the same format. However, what I need is to restate a theorem while changing its name in the parentheses. For ...
Renfei Zhou orbitingflea's user avatar
0 votes
1 answer
37 views

thmtools custom theorem name without making new enviorment

How would I make a theorem using thm tools that accepts a custom name? Something that would work like: \begin{namedtheorem}[Basic AM-GM Inequality} For posiive real numbers $a,b$ $$\frac{a+b}{2}\geq \...
Memat's user avatar
  • 103
1 vote
1 answer
55 views

Why does \WithSuffix\providecommand overwrite command already defined by instance of thmtools's restatable environment?

Consider the output of this MWE: \documentclass{book} \usepackage{amsthm} \usepackage{thmtools} \usepackage{suffix} \declaretheorem[numberwithin=chapter, style=plain,name=Theorem,refname={theorem,...
Linear Christmas's user avatar
0 votes
1 answer
52 views

Is there a simple fix to using "\hypertarget" inside thmtools's "restatable"?

Is it possible to use \hypertarget inside restatable? The command \hypertarget is from package hyperref, and restatable is from packagethmtools. The issue is that if the restatable is called, it seems ...
Linear Christmas's user avatar
0 votes
1 answer
34 views

Restating a theorem within \hyperlink produces extra vertical space above

When I restate a theorem, it behaves as normal. But when I restate it as the second option of \hyperlink, an extra line appears above. How can I prevent this from happening? \documentclass{amsbook} \...
Benjamin Hull's user avatar
1 vote
0 answers
133 views

how to make box with theorem style

how to make theorem box using by declaretheoremstyle same below.
Bazar Tumurkhan's user avatar
0 votes
1 answer
76 views

List of Theorems not working in LyX

I am using LyX to write lecture notes, with most of the text in Hebrew. I have many theorems and definitions, and they are defined using the theorems-ams module (Document > Settings > Modules). ...
Spätzle's user avatar
  • 103
1 vote
1 answer
47 views

Spacing when using parskip and thmtools

I have the following really specific issue, which is probably just a bug in the thmtools package, but I'm wondering if I can work around it. Basically, if I include the parskip package and try to use ...
N. Virgo's user avatar
  • 4,177
1 vote
0 answers
33 views

Add letter to numbering of theorem environments. Locally, and then restore to default behaviour?

I am trying to locally modify the numbering of theorem environments. The basic idea is to have Theorem 1, then Theorem 2A, Lemma 2B, Lemma 2C, then back to Theorem 3, Lemma 4 etc. The output of the ...
Linear Christmas's user avatar
0 votes
0 answers
59 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
3 votes
0 answers
52 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
2 votes
1 answer
112 views

Define a thmtools theorem in beamer

I want to use thmtools inside a beamer document, to style theorems. The MWE below gives the following error: Command \theorem already defined. Or name \end... illegal, see p.192 of the manual. How ...
tush's user avatar
  • 1,093
0 votes
1 answer
101 views

Change background color of title using declaretheoremstyle

Here's my MWE: \documentclass{report} \usepackage[usenames,dvipsnames,pdftex]{xcolor} \usepackage{amsmath,amsfonts,mathtools,amsthm,amssymb} \usepackage{mdframed} \usepackage{varwidth} \usepackage{...
SingularisArt's user avatar
1 vote
0 answers
26 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
0 votes
0 answers
22 views

theorembox key from \declaretheorem command strange behavior

My new theorem-like environment behaves strangely. Here is a MWE: \documentclass[12pt]{article} \setlength{\topmargin}{.1cm} \setlength{\oddsidemargin}{-.7cm} \setlength{\evensidemargin}{-.7cm} \...
Mauricio Calvao's user avatar
0 votes
2 answers
81 views

Avoid a theorem environment's head and tail to split into two pages

This is a follow up to my previous question. Some of my theorem environments include a horizontal rule above and below them. How can I avoid the bottom line to appear isolated on the next page if the ...
tush's user avatar
  • 1,093
2 votes
1 answer
364 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,093
5 votes
2 answers
197 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,093
3 votes
1 answer
222 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
  • 721
1 vote
1 answer
115 views

How to have propositions and theorems have the same counter for the \declaretheorem command

I am using the thmtools and thm-restate packages so that I can restate theorems and propositions. I use the \declaretheorem command as follows: \declaretheorem[name=Theorem, numberwithin=section]{...
graphtheory123's user avatar
1 vote
1 answer
64 views

How to split a theorem using the `shaded' option in thmtools

I am using amsmath, thmtools and the following definition to get nice Theorem statements inside a light blue box: \declaretheoremstyle[ shaded={bgcolor=blue!10}, numberwithin=section ]{mythmstyle} ...
Piero D'Ancona's user avatar
0 votes
2 answers
78 views

Error when using hyperref and thmtools

\documentclass[12pt]{article} \usepackage{hyperref} \usepackage{amsthm} \usepackage{thmtools} \usepackage{hyperref} \theoremstyle{plain} \newtheorem{theorem}{Theorem}[section] \...
ufer324's user avatar
  • 15
0 votes
2 answers
100 views

Compilation won't stop due to package conflict, how to locate the problem in this case?

Consider the following code: \documentclass{article} \usepackage{amsthm} \usepackage{thmtools} \usepackage{create-theorem} \CreateTheorem { theorem } {} \begin{document} \begin{theorem} Text. \...
Jinwen's user avatar
  • 7,816
4 votes
4 answers
322 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. \...
JacopoStanchi's user avatar
2 votes
1 answer
173 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 ...
Meven Lennon-Bertrand's user avatar
0 votes
0 answers
73 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
  • 313
2 votes
2 answers
177 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 ...
xdyy's user avatar
  • 581
0 votes
0 answers
37 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
98 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 (...
murray's user avatar
  • 7,650
4 votes
3 answers
689 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 ...
tush's user avatar
  • 1,093
5 votes
2 answers
110 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 ...
tush's user avatar
  • 1,093
0 votes
1 answer
148 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 ...
Davi Barreira's user avatar
0 votes
0 answers
71 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
36 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} \...
Vectornaut's user avatar
1 vote
1 answer
57 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 ...
Thorsten's user avatar
  • 332
1 vote
1 answer
142 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. ...
marc's user avatar
  • 576
1 vote
1 answer
67 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 : \...
simonm12's user avatar
  • 110
0 votes
1 answer
349 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} ...
mario's user avatar
  • 749
1 vote
1 answer
73 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. \...
TeX Apprentice's user avatar

1
2 3 4 5 6