4
votes
Accepted
How to frame inline text with a box?
Like this:
Code:
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsthm}
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}[section]
\begin{document}
\begin{theorem}
Bla ...
3
votes
Accepted
How to parse square bracket arguments into several curly braced arguments?
Under the hood, options to a tcblisting are processed as PGF Keys. The optional argument #1 passes its contents to the code environment, which means that we can pass in our own module of PGF Keys, ...
3
votes
Set value for the counter in a tcolorbox
The counter created by the tcolorbox auto counter option is of the form:
tcb@cnt@<boxname>
So we can easily create a macro to set the counter for any particular box. Its syntax will be
\...
2
votes
Accepted
center and adapt width in tcolorbox
The example below is based on OP's box3 environment, with some changes:
Option breakable is commented out since it's not supported when hbox is used.
Option varwidth upper sets a max width for hbox ...
2
votes
tcolorbox tcbhighmath box customization
OK, so after a further review at the documentation and some trial and error I managed to do what I wanted. I will just post the code as it is self-explanatory. I am sorry that I am not able to provide ...
2
votes
Accepted
XCharter font with otfmath option does not set footnotes inside tcolorbox as superscript
The package xcharter-otf, which is what you get when you call XCharter with the otfmath package, does
\RequirePackage{realscripts}
which works well with numbers, but not with letters in the italic ...
2
votes
Why do I get the "TeX capacity exceeded" error with the tcolorbox package
Don't nest tikzpicture environments. tikz lower already puts a tikzpicture environment around the lower part of the box, so you need to omit this from your code altogether or comment it out.
\...
2
votes
Change fontfamily in tcbox
I have changed the sequence of cooltext command. That makes the text outside its purview to be different.
\documentclass{article}%https://github.com/readme/featured/nasa-ingenuit
\usepackage[left=1cm, ...
1
vote
Accepted
Beamer custom breakable box
You can manually split the tcolorbox using \framebreak:
\documentclass{beamer}
\usetheme{default}
\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{...
1
vote
How to add a second overlay to a tcolorbox?
I ended up with the format that I wanted via...
\newtcblisting[auto counter]{code}[4][]{
enhanced,
top=\smallskipamount,
bottom=\smallskipamount,
sharp corners=downhill,
arc=0.5cm,
...
1
vote
Accepted
Italic correction in tcbtheorem
If you try it without \emph you will see differentiable just squeezes on to the line, with compressed spacing, but \emph and bold makes the line longer and it doesn't fit and tex is choosing to ...
1
vote
Accepted
Number examples in a tcolorbox
As mentioned in the comment: If you use the init option number within=section, the first digit in your call of \thetcbcounter represents the section, since the tcbcounter with that option is kind of ...
1
vote
Accepted
Creating a Custom Environment with Boxed Text and Attached TikZ Drawing
Do you want something like this?
\documentclass{article}
\usepackage{tcolorbox}
\tcbuselibrary{skins}
\usepackage{tikz}
\definecolor{beige}{HTML}{F2ECD8}
\definecolor{grn}{HTML}{7AA999}
\definecolor{...
1
vote
Marginpars inside tcolorboxes
A margin note inside a tcolorbox is an issue because \marginpar internally is a float, so you cannot place it nested into another floats, nor into non float boxes, as a minipage, a footnote or a \...
1
vote
Accepted
Change fontfamily in tcbox
Your \cooltext command does (the equivalent of) \sffamily which is a declaration only subject to grouping. Since you issue it at the top level, its effect goes on forever.
You need to issue \sffamily ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
tcolorbox × 2244tikz-pgf × 196
listings × 111
environments × 103
beamer × 88
color × 86
boxes × 77
minted × 74
spacing × 67
page-breaking × 61
theorems × 61
tables × 50
mdframed × 50
vertical-alignment × 49
table-of-contents × 48
cross-referencing × 44
horizontal-alignment × 38
counters × 38
footnotes × 37
macros × 34
formatting × 34
hyperref × 34
xetex × 33
cleveref × 32
numbering × 31