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 ...
Raffaele Santoro's user avatar
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, ...
gz839918's user avatar
  • 1,691
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 \...
Alan Munn's user avatar
  • 214k
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 ...
muzimuzhi Z's user avatar
  • 25.5k
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 ...
Miguel Garcia's user avatar
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 ...
egreg's user avatar
  • 1.1m
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. \...
cfr's user avatar
  • 189k
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, ...
mas's user avatar
  • 1,311
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{...
samcarter_is_at_topanswers.xyz's user avatar
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, ...
user41177's user avatar
  • 167
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 ...
David Carlisle's user avatar
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 ...
lukeflo's user avatar
  • 1,091
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{...
cfr's user avatar
  • 189k
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 \...
Fran's user avatar
  • 78.9k
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 ...
egreg's user avatar
  • 1.1m

Only top scored, non community-wiki answers of a minimum length are eligible