{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 ...

learn more… | top users | synonyms

3
votes
1answer
25 views

tcolorbox: problem with “colbacklower” and “text outside listing”

According to tcolorbox documentation and I would like to know which lower part options are available to change lower part aspect. May be I misunderstand this text, but I would like to obtain ...
2
votes
1answer
31 views

Tikz package “external” causes an unclosed tikzpicture@tcb@hooked environment

Unfortunately, I cannot provide a MWE, as after trying for quite some time everything seems to work perfectly with small examples. So this is perhaps some package clash or problem with RTL, I am not ...
4
votes
2answers
39 views

tcolorbox version 3 top alignment

I write this simple latex file trying to make left and rigth tcolorboxes top aligned. Here's the code \documentclass[letterpaper,12pt]{article} \usepackage{tcolorbox} \pagestyle{empty} % \setlength{\...
1
vote
0answers
32 views

tcolorbox: Breakable option not working

I am currently trying to write a roadmap for my master thesis, with a nice design. I want to use multiple tcolorbox boxes for each chapter and stack them. The boxes should break at the end of each ...
4
votes
3answers
120 views

Different counter for equations inside environment

Let's say I have a tcolorbox environment called note. Is there a way for equations that appear inside this environment to automatically assume a different counter from those outside? With ...
2
votes
1answer
39 views

Tcolorbox + minted source code listing that works in beamer

I copied and modified the code snippet in the accepted answer here to highlight cpp code: \usepackage{tcolorbox} \tcbuselibrary{minted,skins} \newtcblisting{cppcode}[1][]{ listing engine=minted, ...
2
votes
2answers
37 views

“number freestyle” causes an overlay in the list of tcolorboxes

This is a follow up on Can Cref also provide the title of the tcolorbox? because the Answer which "adds the title as part of the number using the number freestyle option" seems to create in the list ...
0
votes
1answer
42 views

Need help in creating tcolorbox (like the one in manual)

I am trying to create a tcolorbox like the one mentioned in version 3.40 manual: I tried to figure out the settings by going through the source code, available here: ftp://ftp.dante.de/tex-...
3
votes
1answer
47 views

tcolorbox: raster before/after skip do not seem to work

Here is a MWE. \usepackage{tcolorbox}% \tcbuselibrary{skins,raster,breakable,} \begin{tcolorbox}% [% boxrule=2mm,% colback=lightcyan,% colframe=red,% title=TITLE,% ]% \begin{...
4
votes
1answer
68 views

tcolorbox in margin notes

I'm trying to create a command that will allow me to add little "important notes" on the margin of my document. I have managed to make it work as long as as I use the "left" option for the box and the ...
2
votes
1answer
33 views

tcolorbox inside multicol with figures: box shifted to next column

Why doesn't tcolorbox put the text just below the figure? \documentclass[11pt,a4paper]{report} \usepackage[]{graphicx} \usepackage{multicol} \usepackage{lipsum} \usepackage[most]{tcolorbox} \...
2
votes
2answers
88 views

tcolorbox and Vietnamese

I am using tcolorbox with Exercise and Solution in Vietnamese, but I can't compile this code. What am I doing wrong? \documentclass[12pt,a4paper]{article} \usepackage{fouriernc} \usepackage[utf8]{...
6
votes
1answer
31 views

Interaction of \BeforeBeginEnvironment and \NewEnviron

Consider the following MWE. \documentclass{article} \usepackage{etoolbox} \usepackage{environ} \usepackage{tcolorbox} \usepackage{amsthm} \BeforeBeginEnvironment{proof}{\tcblower} \NewEnviron{...
1
vote
2answers
91 views

tcolorbox and tikz: two pictures in two columns

Basically I want two tikzpictures of the same size aligned in two columns. To realise this I use the tcolorbox package with its \tcbsidebyside{}-command. The problem is that the picture in the second ...
0
votes
0answers
71 views

Why does tcolorbox adds vertical space?

I use some tcolorboxes in the solution section of a math paper. For some reason there is some vertical space added. How can I align the solution number with the top of the tcolorbox? (The red boxes ...
6
votes
2answers
167 views

warning (pdf backend): pop empty color page stack 0

I've been receiving this warning and for the past several hours (erh, something like 12 hours now). I've been trying to narrow down what's been causing it, but to no avail. I managed to cut down the ...
3
votes
1answer
38 views

some corruption using \tcbinputlisting after repeated use

I could not make a smaller MWE than the following. I noticed at random places in the document, the listing comes out corrputed, then it becomes ok for a while, then it goes bad. I am basically using ...
2
votes
2answers
41 views

strange error using tcolorbox or other resources. box array

I am doing something that you might think is a little strange, but have good reason for it. The code below is generated by lua function I wrote. For some reason, it fails when I do this more than 4 ...
3
votes
2answers
60 views

tcolorbox: theorem numbering in the margin is too close to text

I'm using tcolorbox to draw boxes around my theorems. This package also has the option of puting the theorem numbers in the margin as you can see in my MWE below; see page 342 of the manual for more ...
1
vote
1answer
40 views

using \tcbinputlisting shows first page only when hbox is set

I'd like to use the hbox option with \tcbinputlisting since it automatically adjust the background color and the box to the width of the code listing. The problem is that if the code listing is more ...
4
votes
1answer
44 views

error using tcblisting inside tabular when numbers is set

tcblisting gives error when adding numbers=left, but it does this only when inside tabular or longtable. This compiles OK \documentclass{article} \usepackage{amsmath} \usepackage{listings} \...
4
votes
2answers
36 views

Referencing named tcbtheorems

My objective is exactly the same as in this question, however, I would like to achieve this same effect with \newtcbtheorem from the tcolorbox package. For example \documentclass{article} \...
4
votes
1answer
42 views

Using regular theorem environments along with tcolorbox theorems

I am using tcolorbox to draw coloured boxes for my theorems, however for things like a remark, or an example, I would like to have the usual amsthm kind of environment, without any colored boxes. If ...
1
vote
1answer
60 views

Numbering a coloured box outside of the box

I want numbered the third (blue) equation in out of box. what do I do? Attractive Boxed Equations
0
votes
2answers
44 views

Chapter Styling with background color out of textwidth

I tried to use hbox/wbox, tabular and colorboxes. Just look at image and this source. Could anybody help with correct styling? \documentclass{book} \usepackage{lipsum} \usepackage{tcolorbox} \...
6
votes
1answer
110 views

Tcolorbox with a dashed frame: same boxed title style after break?

A solution that keeps the style of the boxed title after a break in a tcolorbox can be found at Tcolorbox: same boxed title style after break? The solution works well for frames made of a continuous ...
4
votes
1answer
92 views

Tcolorbox: same boxed title style after break?

How can we set the same style of boxed title after a break in a tcolorbox ? \documentclass{article} \usepackage{lipsum}% \usepackage[all]{tcolorbox}% \begin{document} \def\TheTitle{Boxed title} \...
3
votes
3answers
196 views

How can I put the image at right corner of tcolorbox and keep writting below it?

I'm trying to put one image at right corner of tcolorbox but, the \tcblower option wastes a lot of space, I want write around the image, but I cant find a real answer.
5
votes
1answer
146 views

lualatex texlive 2016 tcolorbox

If you compile with tl2016 lualatex this MWE \documentclass[10pt, xcolor=svgnames, x11names, t]{beamer} \usepackage{etoolbox} \usepackage{ifluatex} \ifluatex \usepackage[no-math]{...
1
vote
1answer
43 views

Alignment: tcolorbox in enumeration

How can I align the bullet of the enumeration at the top of the tcolorbox? MWE \documentclass[parskip=full]{scrartcl} \usepackage{lipsum} \usepackage{tikz} \usepackage[most]{tcolorbox} \...
0
votes
0answers
23 views

New colored box environment [duplicate]

Is there someone who can do the followig: I would like to define a new environment for a colored box with a title that I can call as follows: \begin{mybox}{*Title*} ** Text ** ** Math ** \end{mybox} ...
7
votes
1answer
70 views

How to set “topskip” in a tcolorbox

In the following example the distance of the first lines to the title differ due to the different height of the test. Is there a way to force the first line in a more uniform distance? Using \before ...
3
votes
0answers
61 views

How to make tcolorboxs fill a multicol page evenly

The question might sound weird due to my bad English. In short: I want a multicol page to be filled with tcolorboxes of different heights but (visually) evenly spaced between each other. In image: ...
5
votes
1answer
43 views

Can Cref also provide the title of the tcolorbox?

For instance, with \begin{mybluebox}[label={myreference}]{My title} This is an example. \end{mybluebox} From (tcolorbox Manual, page 99) I would like to get Bluebox 5.1 My title instead of ...
3
votes
1answer
41 views

error using tcblisting inside longtable, no error inside tabular.

I was testing a nice solution provided in this answer how-to-crop-background-color-in-listings-to-the-longest-line-in-the-code However, I happened to be using longtable and not the standard tabular. ...
2
votes
1answer
21 views

Left indent in tcblisting code

In this MWE \documentclass{beamer} \usepackage[most]{tcolorbox} \newtcblisting{myexample}{ width=1.01\linewidth, sharp corners,% beforeafter skip=0.5\baselineskip,% sidebyside gap=2mm,% ...
2
votes
1answer
56 views

Vertically centering a tcolorbox on a page

I'm trying to vertically center a tcolorbox on a page, but with the code below the box isn't exactly at the middle of the page. So far I've tried this: \documentclass[12pt]{article} \usepackage{...
3
votes
2answers
126 views

tcolorbox with fancy text

Driven from Let's get fancy: Text like tag? , I wrote this code: \documentclass{article} \usepackage{tcolorbox} \definecolor{mycolor}{rgb}{0.122, 0.435, 0.698} \newtcbox{\mybox}{nobeforeafter,...
1
vote
1answer
52 views

Code for the manual of tcolorbox

Does anyone know the code of this manual for tcolorbox? Actually I wanted to compile it in MiKTeX to learn more about tcolorbox.
2
votes
1answer
53 views

Cannot get newtcolorbox to work properly

Here is a MWE: % !TEX TS-program = pdflatexmk \documentclass[11pt]{book} \usepackage[usenames,dvipsnames]{xcolor} \definecolor{lightcyan}{rgb}{0.88, 1.0, 1.0} \usepackage{cleveref} \...
2
votes
0answers
63 views

breakable tcolorbox

I have a tcolorbox inside another tcolorbox (I think), and I set both breakable. However, when the texts inside the inner box are more than one page, they refuse to go to the second page. Basically I ...
3
votes
1answer
54 views

Why are the Spaces Between Footnotes So Large? (tcolorbox)

I am using tcolorbox to create numberless footnotes to put math definitions at the bottom of the page. The point is that they're supposed to be noticeable and readable, but not so large as to take up ...
2
votes
1answer
34 views

A tcolorbox whose text starts on the same line as the title?

A tcolorbox looks something like: **Title** The text begins here, that is on a line below the title line ... What I would like is: **Title** The text begins here, that is on the same line as ...
4
votes
0answers
76 views

Breakable nested tcolorbox

I am currently using tcolorbox to create a rounded corner grey box within a rounded corner bordered box: \documentclass{article} \usepackage[breakable,skins]{tcolorbox} \usepackage{lipsum} \...
3
votes
1answer
134 views

homework sheet solution

I would like to create homework sheet solution to looks like the following image My code \documentclass{article} \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry} \usepackage{...
4
votes
1answer
43 views

tcolorbox as a style

I’m using a tcolorbox to mark some keywords. I want to control when these keywords have to be marked. So I created a Boolean variable \l_style_bool. The instruction \bool_set_true:N \l_style_bool ...
1
vote
1answer
52 views

Vertical break of a tcolorbox

I’m using an example from the tcolorbox manual (v 3.91) to highlight some text. The problem is that line breaking is not allowed. So I tried to use a tcolorbox for each word of the highlighted text. ...
2
votes
0answers
124 views

tcolorbox header error with Bredelebeamer class

I'm working with tcolorbox package, and i'm trying to replicate this , when I compile and no use it, runs without error, but when I'm trying to use it, it fails. My code is something like this: \...
4
votes
2answers
95 views

Why is text turning white (possible scope leak?) after page break and listings + tcolorbox + xelatex?

I had a very difficult time pinning this problem down, because it only exists when certain page-breaking conditions occur. Problem Text after environment mysteriously turns white under some ...
2
votes
1answer
35 views

Title with counter for Listings

I am trying to add a title with counter to my Listings. This is what I have so far: \usepackage{listings} \usepackage[many]{tcolorbox} \tcbuselibrary{listings} \newtcblisting[auto counter,number ...