{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

1
vote
2answers
38 views

tclorbox and Vietnamese

I am using tcolorbox with Exercise and Solution in Vietnamese. But I can't compile this code. How can I compile? \documentclass[12pt,a4paper]{article} \usepackage{fouriernc} \usepackage[utf8]{vietnam}...
6
votes
1answer
28 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
81 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
52 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
155 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
32 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
38 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
53 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
33 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
40 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
33 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
34 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
57 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
39 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
98 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
85 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
187 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
124 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
39 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
17 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
65 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
60 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
38 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
39 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
18 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
53 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
107 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
46 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
41 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
57 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
52 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
32 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 ...
2
votes
0answers
64 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
129 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
41 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
50 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
115 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
92 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
34 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 ...
2
votes
1answer
55 views

tcolorbox manual tip box, how to clone? [closed]

I would like to clone this box used on the tcolorbox manual, but I couldn't find the configuration in the manual. Can you help me?
4
votes
1answer
61 views

Problem with nested minted listing inside a tcolorbox

I want to insert some JAVA code in the lower part of a tcolorbox (see figure). When I simply use a tcolorboxit works but with \DeclareTotalTColorBox it didn’t. The following MEW gives further details. ...
4
votes
1answer
101 views

Text edge and shadow with tikz

I have this code: \documentclass[twoside,fleqn]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \usepackage[most]{tcolorbox} \usepackage{tikz} \usetikzlibrary{...
1
vote
1answer
48 views

Personalize title 2

Seeing my previous question (solved), I have another doubt. Now that I have personalize also the contents, the TOC style is in conflict with the chapters style. There is another thread about this ...
4
votes
1answer
75 views

tcolorbox: remove frame of single tcb item

Using tcbitemize I created three columns of boxes. But for one of them I want to remove the frame and resize the inner boxes to the outer frame. This is the code I have so far: \documentclass{...
3
votes
1answer
34 views

Nested breakable frames

I am trying to solve problem with nested frame environments which must be both breakable. It is not important to use tcolorbox if there is some better alternative. Is it possible to display it ...
5
votes
2answers
49 views

How can I make `\newtcbox{}` expand to the end of the line?

How can I make \newtcbox{} expand to the end of the line? Is this possible? Defining width does not seem to have any effect... The usage of a \tcbox is not mandatory, but I would like the box to be ...
4
votes
1answer
72 views

Adding a caption to a tcolorbox \tcblisting

I'm new to the whole TeX world and have finally managed creating my own tcolorbox code box: Now I would like to caption my code boxes like regular listings. It should say something like "Code-...
1
vote
1answer
52 views

tcolorbox: three tcbitemize boxes

With the following example code, using tcolorbox, I expected three boxes next to each other. But in fact, the third box appears under the first. How can this happen and how can it be solved? \...
1
vote
0answers
38 views

tcolorbox and svg package shadow error/bug

There's a bug with the shadows of tcolorboxes when using tcolorbox and svg packages together. Top is with svg package not loaded while bottom one is with svg package loaded. Here's a mwe: \...
3
votes
3answers
104 views

Multicols inside Tcolorbox breaks page before long Multicols (and doesn't listen to pageheight)

As can be shown when compiling the following MWE, the page-height (2inch) allows for 11 lines of text per page (cf. page 1), since Twelfth line and Thirteenth line are sent to page 2. After those ...