Questions tagged [tcolorbox]

{tcolorbox} provides an environment for colored and framed text boxes with a heading line. Optionally, such a box can be split in an upper and a lower part. The package can be used for the setting of LaTeX examples where one part of the box displays the source code and the other part shows the output. Another common use case is the setting of theorems. The package supports saving and reuse of source code and text parts.

Filter by
Sorted by
Tagged with
1 vote
1 answer
13 views

XCharter font with otfmath option does not set footnotes inside tcolorbox as superscript

I have the following problem, which took me some time to drill down to a MWE. The point seems to be that tcolorbox sets footnote marks in italic shape inside tcolorboxes. When using XCharter as the ...
Artemis's user avatar
  • 502
0 votes
0 answers
32 views

TeX capacity exceeded, sorry [input stack size=10000] tcolorbox error

I'm trying to make a document using boxes made with tcolorbox but I keep on getting this error at the end of my second box definition. It's especially weird because this code is literally copy-pasted ...
BigBoyConst's user avatar
5 votes
1 answer
64 views

Why do I get the "TeX capacity exceeded" error with the tcolorbox package

For a package I wrote (schemabloc - https://ctan.org/pkg/schemabloc) which works fine but I have a problem with the tcolorbox package when I use it to display Tikz code examples. I extracted from the ...
rpapa's user avatar
  • 12.1k
1 vote
1 answer
40 views

Italic correction in tcbtheorem

I have redefined the \emph command to give bold and slanted text \DeclareEmphSequence{\bfseries\boldmath\slshape, \itshape} however, this appears to affect horizontal spacing on the line which \emph ...
boi's user avatar
  • 13
1 vote
1 answer
39 views

Number examples in a tcolorbox

I snagged some of this code from MATHETEX on youtube. However, my examples start with 0.1 then 0.2, etc. How can I make them start with 1, then 2, etc. From the youtube video, his numbering is ...
Nick B's user avatar
  • 730
3 votes
1 answer
96 views
+50

center and adapt width in tcolorbox

PROBLEM So I'm finishing my tcolorbox styles for my writings, but I can't manage to center the text correctly if it is shorter than the \linewidth. One solution would be to add \centering every time, ...
Agente 156's user avatar
0 votes
1 answer
29 views

Line height with inline tcolorbox

I have implemented the suggestions from this thread using a tcolorbox to highlight inline with rounded corners. I've noticed that the box has vertical margins I am unable to remove, and it pushes the ...
unDavide's user avatar
  • 265
1 vote
1 answer
33 views

tcolorbox tcbhighmath box customization

I am making some lecture notes for myself and I would like to use this feature to put important equations in boxes. However I am only able to do this one type of box showed in the sample code and I ...
Miguel Garcia's user avatar
1 vote
1 answer
47 views

Creating a Custom Environment with Boxed Text and Attached TikZ Drawing

I'm trying to create a custom environment in LaTeX that includes boxed text with rounded corners, and I want to attach a TikZ drawing to the top-left corner of the box. I've attempted to implement ...
Mar1One30's user avatar
0 votes
2 answers
40 views

Marginpars inside tcolorboxes

Is there some combination of packages that allows us to get marginpar to work inside a tcolorbox environment?
Mariano Suárez-Álvarez's user avatar
1 vote
1 answer
43 views

Horizontally centering and vertically filling svg

I am trying to fill the remaining space of a page with a tcbox wrapped includesvg item. There is funny behavior when I do this. When including a tall svg, one which will not fill the entire width of ...
Logan's user avatar
  • 113
1 vote
0 answers
19 views

positioning overlay node in tcolorbox

hi i am trying to move this image of a frog above the tcolorbox, or possibly clip it such that it is 'below' the tcolorbox and appears cropped. sorry, i have no experience with tikz and nodes. the ...
apathyy's user avatar
  • 11
2 votes
2 answers
48 views

Change fontfamily in tcbox

\documentclass{article}%https://github.com/readme/featured/nasa-ingenuity-helicopter \usepackage[left=1cm, right=1cm, top=1cm, bottom=1cm]{geometry} \usepackage[T1]{fontenc} \usepackage{cascadia-code}...
WinnieNotThePooh's user avatar
1 vote
0 answers
68 views

tcolorbox + multicols + tufte-book inserting unwanted paragraph breaks

There is some weird insertion and deletion of paragraph breaks in my boxes when using this combination of packages. \documentclass[justified, nofonts, notitlepage, openany, debug]{tufte-book} \...
failedentertainment's user avatar
2 votes
1 answer
73 views

How to parse square bracket arguments into several curly braced arguments?

I have an environment which I specify w/... \begin{code}{TITLE}{LANGUAGE}{CAPTION} \end{code} I'd like be able to specify it instead like... \begin{code}[title={TITLE},language={LANGUAGE},caption={...
user41177's user avatar
  • 167
0 votes
1 answer
29 views

Beamer custom breakable box

In this case I need a breakable for custom example that I could break part of contents and move to next frame. \documentclass{beamer} \usetheme{default} \usepackage[T1,T2A]{fontenc} \usepackage[utf8]{...
Alex 's user avatar
  • 63
0 votes
0 answers
34 views

tcolorbox: manual page break

I have some nested tcolorboxes that I would like to break. To achieve this I try to reproduce the 'faked freak' on page 424 of the tcolorbox manual, but without success. Here is a MWE with a simple ...
Tachy0n_'s user avatar
1 vote
1 answer
53 views

How to add a second overlay to a tcolorbox?

I have the following MWE (inspired by inspired by this and this)... \documentclass{article} \usepackage[most]{tcolorbox} \tcbuselibrary{listings, breakable, skins} \usepackage{lipsum} \usepackage{...
user41177's user avatar
  • 167
0 votes
1 answer
53 views

How can I restyle the listings caption to a tcblistings environment?

I am trying to define a tcblistings environment that should work under the following syntax... \begin{code}{TITLE}{LANG}{CAPTION}{OPTS} code here \end{code} Everything but the language should be ...
user41177's user avatar
  • 167
2 votes
1 answer
34 views

htlatex with tcolorbox ignoriing left whitespace inside box

I am using the tcolorbox package and I need to produce html output together with pdf output. When I use tcolorbox with pdflatex it works fine and produces a nice box with space on either side. Wnen I ...
user12833's user avatar
0 votes
0 answers
24 views

simulate \item in (adaptive) tabular in a tcolorbox

I'm trying to create a layout for multiple choice questions using tcolorbox. Some questions come with an image. I was thinking of a layout where the question is in the upper part of the tcolorbox, ...
PFB's user avatar
  • 13
5 votes
1 answer
105 views

How can I move a tcolorbox to the right side of the page?

I would like to have my tcolorbox, which is smaller than the surrounding running text, be positioned towards the right page margin. Is there a way to do this? I've included my current MWE and a ...
serval's user avatar
  • 97
4 votes
4 answers
155 views

\section doesn't work within a tcolorbox

I am a teacher and trying to create a file where I collect everything I do on a whiteboard as a reference. To do so, I wanted to use tcolorbox for different parts of my lessons. I also want the top of ...
Sk1nk's user avatar
  • 93
0 votes
1 answer
50 views

How to imitate the math environments in Libretexts math site?

I found the following math environments on the Libretexts mathematics site. I want to imitate these styles and structures in latex using mdframed and tcolorbox packages. \documentclass{article} \...
Litun's user avatar
  • 3,295
0 votes
0 answers
36 views

Why does a `tcolorbox` code listing box using `listing above text` not keep the output with the code?

I'm trying to use a tcolorbox to list code above output in a document with 2 geometries. My attempt is failing utterly and I can't figure out why. Here's the problem: The box is being split into two, ...
cfr's user avatar
  • 189k
2 votes
1 answer
52 views

How to center text-boxes and draw a rule from each box

I know my headline sounds highly confusing so let me provide you my MWE \documentclass{article} \usepackage{tikz} \usepackage[most]{tcolorbox} \newtcolorbox{frameGray}{enhanced, colframe=black,...
Leon's user avatar
  • 473
1 vote
1 answer
47 views

Table of content within the chapter formattting

I am trying to create a table of contents for each chapter (see MNWE below). The problem occurs when the table is longer than the page length and should break. For settings, I use the tcolorbox ...
JardaFait's user avatar
  • 3,838
0 votes
0 answers
34 views

vertical "justification" of tcolorboxes in a multicol environment

I'm making exercice sheets with breakable tcolorboxes and multicols. When a box breaks, it goes as bottom as possible in its column, which is perfect. However, it's not the case for the boxes who don'...
Tantank15's user avatar
2 votes
1 answer
37 views

tcolorbox/tcblisting: Draft mode erases boxes' content

Here is a MWE: \documentclass[draft]{article} \usepackage[most]{tcolorbox} \newtcblisting{roughsketch}{listing only} \begin{document} \tcbinterruptdraftmode \begin{roughsketch} Proof sketch. \end{...
Michaël's user avatar
  • 1,344
3 votes
1 answer
82 views

Understanding \RemoveFromHook with label

I've realized my answer to this question about removing the effect of \tcolorboxenvironment is not ideal because it removes all content from the hooks env/<envname>/before and env/<envname>...
mbert's user avatar
  • 2,585
0 votes
1 answer
87 views

How can I styilize a descriptive list with a line between the label and the description?

I want my descriptive lists to look like... The source for that is (source)... \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{skins,hooks} \newcommand\fancybox[3]{% \tcbset{ mybox/...
user41177's user avatar
  • 167
4 votes
1 answer
73 views

Two boxes with equal height with dynamic id for group

I'm trying to define a citebox style using tcolorbox. The style is made up of two boxes side by side that should have the exact same height. To do that, I need to use equal height group=XXX (otherwise ...
Nicolas Rougier's user avatar
2 votes
0 answers
67 views

Is it bad typesetting practice to split boxes over two pages?

I can't decide what I prefer - having empty space at the end of a page or a split box. For example: Should I be aiming to make sure the page is full with no need to break boxes? Like, I can add more ...
LostInHilbertSpace's user avatar
2 votes
0 answers
37 views

How to put the section line into tcolorbox

The contents of chapter are put into tcolor by below code. How can we modify the code for section. My code have created the \mysectionnamebox to add a contentline of section. Thank you for help! \...
Nam Tran Le's user avatar
0 votes
1 answer
47 views

White Knockout text printed in box ground when Black separation removed in Acrobat

I'm using tcolorbox to tackle a knockout text issue inside a colour box. When I deselect the black color in "Separation" option in the PDF Output Preview, a box backdrop with white text is ...
Rajesh Kumar's user avatar
1 vote
1 answer
70 views

Drawing a frame for a block including the title text

Using tcolorbox, in a beamer with beamerposterpackage, I need to create a new boxedblock environment. \begin{boxedblock}{Motivation & Contributions} \end{boxedblock} Expected result: MWE \...
anis's user avatar
  • 1,417
1 vote
1 answer
44 views

Help with tcolorbox package and newtcbinputlisting

,I have unsuccessfully been trying to learn how to use the \newtcbinputlisting command for some hours now. I am writing latex in overleaf with a group. We have several .py files we want to input and ...
Mikkel's user avatar
  • 13
0 votes
1 answer
55 views

tcolorbox wrong newtcolorbox formatting

I'm struggling with the problem of proper wrapping of the environment which I am use in twocolumn page layout - with book class scrbook. I am using the tcolorbox package to define fancy boxes. As you ...
JardaFait's user avatar
  • 3,838
0 votes
0 answers
28 views

How to create a box in \documentclass[sigconf]{acmart}

I want to create a box highlighting my findings in \documentclass[sigconf]{acmart}. I found authors on the internet can create a box that fits my need (please see attached image). I am aware that ACM ...
Bryan's user avatar
  • 101
0 votes
0 answers
35 views

tcolorbox vertical alignment in enumerate [duplicate]

I'm using a tcolorbox in an enumerate. I would like the first line to be on the same baseline as the enumerate label. (In the example below, I would like the baseline of 1. and Hello to be the same.) ...
Janet's user avatar
  • 411
0 votes
0 answers
42 views

How to use the different styles (mainly color schemes) of minted (pygments)?

How can you use the different minted styles?. For example solarized-dark, monokai,... \documentclass{article} \usepackage{minted} %\usemintedstyle{solarized-dark} \begin{document} \begin{minted}[...
Mika Ike's user avatar
  • 3,651
3 votes
1 answer
50 views

tcolorbox: Dynamic width and breakable

I'm trying to implement a kind of chat inside my document using tcolorbox. But I either can set the width dynamically or allow a pagebreak inside a "chat-message". \documentclass[11pt, ...
Tony's user avatar
  • 41
1 vote
1 answer
64 views

Custom footnote outside tcolorbox

PROBLEM I have a custom footnote style done with tikz, and inside tcolorboxes this footnote doesn't fit, so I tried that all footnotes inside a tcolorbox environment get out of it with Bernard ...
Agente 156's user avatar
0 votes
1 answer
75 views

Draw an overlay in tcolorbox

I need to be helped especially in drawing the conical flask inside an overlay circle as shown in the image below: MWE \documentclass[12pt]{article} \usepackage[margin=2cm]{geometry} \usepackage{...
Uncle C's user avatar
  • 65
0 votes
1 answer
39 views

How do I creat a colorful box containing a subtitle without being split by the command tcblower? [closed]

Is there a way to creat a colorful box that looks like the second picture?
Shuyi Leo's user avatar
0 votes
0 answers
77 views

When the chart is rotated by 90 it does not appear

I have a problem when the chart is rotated by 90 degrees it doesn't show up \documentclass[12pt,openany]{walidex} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
nasser's user avatar
  • 1
0 votes
0 answers
32 views

tcolorbox[breakable] does not break in overleaf

The following code produces three levels of nested boxes in Overleaf. Since each can have a lot of text, I need them to break between multiple pages as needed; but only some do, while others overflow ...
Camilo Dorado's user avatar
0 votes
1 answer
32 views

The documentation library for tcolorbox overrides hypersetup

I'm typesetting a document where I'd like to add margin notes in colored boxes and I'd also like to be able to control the colors for hyperlinks. I apparently can't have both with my current setup and ...
Lina's user avatar
  • 15
1 vote
0 answers
41 views

Error in table of contents with tcolorbox

I get the following error message: ! error: (pdf backend): \pdfextension endlink cannot be used in vertical mode ! ==> Fatal error occurred, no output PDF file produced! I tried to make a MWE ...
Didier's user avatar
  • 1,281
1 vote
1 answer
64 views

Stretch spacing between words doesn`t work

I am trying to increase space in a text in a poster box but it doesn`t work (Name Middlename Lastname). Look what i tried \documentclass{article} \usepackage[most]{tcolorbox} \usepackage[a4paper,...
Brendon Peres's user avatar

1
2 3 4 5
45