{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
28 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
14 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
38 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} ...
3
votes
2answers
70 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} ...
1
vote
1answer
35 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
35 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
38 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
45 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
26 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
50 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
122 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} ...
4
votes
1answer
36 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
49 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
90 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
86 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
30 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
46 views

tcolorbox manual tip box, how to clone?

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?
3
votes
1answer
55 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
80 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} ...
1
vote
1answer
44 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
71 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: ...
3
votes
1answer
33 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
45 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
47 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 ...
1
vote
1answer
45 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
33 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
96 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 ...
2
votes
1answer
46 views

Itemize inside Tcolorbox

In the following MWE (Minimal Working Example), an Itemize is placed outside of a Tcolorbox, which compiles fine: \documentclass{article} \usepackage[breakable]{tcolorbox} \makeatletter ...
1
vote
2answers
85 views

Combine minted and tcolorbox for code from file (inputminted?)

Thanks to Thomas F. Sturm and Gonzalo Medina I have a nice looking environment for code listings with appropriate ref functionalities. However, I just cannot figure out a way to make the defined ...
2
votes
1answer
30 views

How do I use \tcbline

Why am I not able to correctly use the \tbcline feature of the tcolorbox package (see Pg.198 of the documentation available on CTAN) ? My trial on Overleaf can be found here. Thanks!
1
vote
0answers
29 views

tcolorbox breakable raster does not work if a cell breaks

I am trying to create a raster of 4 boxes with random content length. They all must to have the same height, so I have the following code: \begin{tcbraster}[breakable, enhanced, raster equal height ...
3
votes
2answers
41 views

Auto Generate Custom Text Message for Page Break

I created a new environment that creates a box around text. I used tcolorbox. Additionally, since I wanted to break from page to page, I added 'breakable'. However, what I want it to do is to break ...
2
votes
1answer
32 views

tcolorbox disable repeated text in overlayed node

In the following MWE (built from http://tex.stackexchange.com/a/170767/69378) I have demonstrated that title text in an overlayed tcolorbox node gets repeated across page breaks. I have checked the ...
0
votes
1answer
21 views

Obtaining only minimal line wrapping in thin columns of a custom tcolorbox

This answer: http://tex.stackexchange.com/a/170767/69378 is (to me) an incredibly useful and versatile tcolorbox. This answer has satisfied my page design for almost a year now, but I am curious to ...
3
votes
2answers
122 views

Pictures in boxes with rounded corners

I am using the tcolorbox LaTeX package to create some boxes with rounded corners. Everything works well when text goes in those boxes. But I want to fill some of those boxes with just a picture ...
8
votes
1answer
89 views

real colons in a expl3 context

I'm fighting to find a good way to use colons in an expl3 context. The example uses tcolorbox for a demonstration but I ran into the problem also in other places where a colon was used to delimit an ...
0
votes
0answers
27 views

How can I avoid running out of memory when creating long, multipage tcolorbox's?

How can I avoid exceeding TeX's maximum memory when typesetting long tcolorboxes. I have some really long license codes that are wrapped by a tcolorbox environment. Unfortunately, some licenses ...
5
votes
1answer
63 views

tcolorbox / out of the box

I would like to understand why the text go out of the box in the "Résutats & Intégrations" According to the documentation of tcolorbox package section 4.7.4, the text should be just in the box ...
6
votes
1answer
62 views

Create custom note environment with tcolorbox

I just stumbled upon the tcolorbox package but can't seem to find my way through its extensive manual. What I'm trying to achieve is to create a custom environment to add short notes into a body of ...
4
votes
1answer
99 views

Reproduce a PDF table with colored vertical semi lines

Hi I'm really new to LaTeX. I've started learning yesterday and my plan is to recreate our medical reports from a design PDF to dynamic LaTeX PDF. My problem is to create these semi-vertical lines ...
2
votes
2answers
56 views

Quote area including a left bar

Finally, I managed to create a own quote style with that: \usepackage[most]{tcolorbox} \definecolor{block-gray}{gray}{0.95} \def\signed #1{{\leavevmode\unskip\nobreak\hfil\penalty50\hskip2em ...
1
vote
0answers
43 views

Shrink equations horizontally to fit surrounding tcolorbox, compatible with align* commands

I'd like to put frames around equations in my beamer slides. For this purpose, I use the package tcolorbox. I use the macro \fiteq{} that I found somewhere else on this site to shrink overlong ...
4
votes
1answer
118 views

Equations in tcolorbox. Vertical alignment

I am simply trying to put a frame around equations in my beamer slides. For this purpose, I use the package tcolorbox. The MWE below produces boxes where equations are almost aligned at the base of ...
7
votes
1answer
67 views

inverse rounded corners

is there a way to use tcolorbox (or some other package) to create inverse rounded corners. By using the following code \begin{tcolorbox}[colback=red!5!white, colframe=red!75!black, arc=4mm, ...
6
votes
2answers
78 views

tcolorbox: raster of equal height and a minimum height

I would like to make a tcolorbox raster, where every box in a row has the same height (easy). But I would also like to use the height from key to set a minimum height for the boxes. But as soon as I ...
3
votes
1answer
71 views

How to get uniform spacing between paragraphs across several pages?

I am using \flushbottom to get pages of equal height. When I now insert a tcolorbox which is set to be unbreakable such that a page break becomes necessary, only the spaces between paragraphs on the ...
2
votes
1answer
31 views

tcolorbox: use of `\tcbifoddpage`

Please consider the following WME: \documentclass[12pt]{memoir} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{TikZ} \usetikzlibrary{calc,chains,% ...
1
vote
1answer
63 views

Strange black box appearing in first table [closed]

I'm currently in the process of finishing my ph.d. dissertation. I have had a strange black field the first table in the second chapter of my dissertation for quite some time now and i simply cant ...
8
votes
1answer
124 views

tcolorbox: change background of a part of the body

I have a tcolorbox with various "part" separated by \tcbline and would like to change the background of two of the (e.g. the second and the forth. Has someone a good idea how to do it? ...
4
votes
2answers
50 views

tcolorbox error with “\caption{}”

I want to use an outline to my figures using tcolorbox. everything works fine until I add the command "\caption" in the title. Someone could help me fix the error. ...