{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

2
votes
1answer
37 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
43 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
69 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
34 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
60 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
30 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
35 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 ...
3
votes
1answer
26 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
37 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
30 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
89 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
40 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
72 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
27 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
26 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
38 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
29 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
18 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
105 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 ...
7
votes
1answer
80 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
25 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
52 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
52 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
96 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
47 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
40 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
102 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
59 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
65 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
62 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
29 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
52 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
119 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
44 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. ...
3
votes
2answers
46 views

Increase fuzzy shadow steps for tcolorbox

Is there a way to increase the number of steps for the fuzzy-shadow option of tcolorbox? The shadow has about the size and feather-range I am looking for but seems a bit ragged. Can the number of ...
4
votes
1answer
64 views

Of two boxes rasterized by tcolorbox, the left one is cut short

The following compiles under cleveref v0.19 and tcolorbox v3.80 with TeXLive 2013 under osx 10.6.8 but the left box is cut short. % !TEX TS-program = pdflatexmk \documentclass{book} ...
2
votes
1answer
36 views

undefined reference in tcolorbox

The following compiles under cleveref v0.19 and tcolorbox v3.80 with TeXLive 2013 under osx 10.6.8 but the reference does not work. I have added an example (commented out) from the doc where the ...
2
votes
1answer
47 views

How can I imitate the colframe title background behavior in a custom tcolorbox?

I'd like to make custom tcolorbox boxes, but I ran into a snag with the title background. I know how to draw the frame, but I am not sure how to apply the red background behind the title. I would ...
3
votes
1answer
101 views

Highlight Text with Background Color

I try to highlight text with \texttt font and background color (somehow like the highlighting on StackExchange: this). I tried with a colorbox, but the problem is that it doesn't support line breaks, ...
3
votes
1answer
104 views

How to create theorem boxes

I wrote a chapter for a book, and we use a structure.tex with a lot of definitios and macros. Now I'm writing other book and I would like to use those kind of boxes as below. Note that when the box ...
2
votes
0answers
39 views

A second newtcolorbox causes a missing reference with the first [closed]

Here is an example: % !TEX TS-program = pdflatexmk \documentclass[11pt]{book} \usepackage{cleveref} \usepackage{tcolorbox} \newcounter{sum} \newtcolorbox[use counter= sum,number ...
2
votes
2answers
52 views

Text not wrapping to margins if highlighted with \colorbox

In a test file such as; \documentclass{article} \begin{document} \begin{itemize} \item Short line of text \item Comparatively long line of text to illustrate that latex is wrapping my text ...
1
vote
1answer
71 views

How to wrap the title in an a0poster with a page width color box?

Current Preamble I want to wrap the top part of my document with a colored banner, spanning the entire page width and to the very top of the document. Here is my preamble and title section: ...
2
votes
1answer
46 views

Use preamble to put all descriptions in a tcolorbox

I want to style all my \begin{description} elements with a \begin{tcolorbox}. As my code is autogenerated from pandoc, I do not want to edit the .tex code within the body of the document. How do I add ...
2
votes
2answers
49 views

Weird vertical spacing within paragraph using multicol within tcolorbox

The basic idea would be to put a caption next to an image and center it vertically. I tried this within a tcolorbox environment since it's being used on a poster. I'm not sure, how much the tcolorbox ...
7
votes
1answer
174 views

Generating grid in a box

I'm using the following preamble \documentclass[10pt]{article} \usepackage{graphicx} \usepackage{colortbl} \usepackage[table]{xcolor} \usepackage[many]{tcolorbox} \usepackage{XCharter} ...
4
votes
2answers
80 views

Package animate conflicts with tcolorbox

\PassOptionsToPackage{dvipsnames}{xcolor} \documentclass[dvipsnames]{article} \usepackage[skins]{tcolorbox} \usepackage{animate} \providecommand{\actiontext}{Attention} ...
1
vote
1answer
52 views

Mini TOC next to chaper

I would like to place a mini table of context directly next to the chapter like in the following. For compatibility reasons the toc should be created using titletoc as suggested in this answer. The ...
6
votes
1answer
65 views

Breakable tcolorbox causes ragged bottom

When using a tcolorbox with the breakable option, this may cause a "ragged bottom" in some special situations. The following MWE demonstrates this behaviour: \documentclass[DIV=10, BCOR=10mm, ...
2
votes
1answer
55 views

dramatist remove spacing between speech items

I'm typesetting a drama script using the dramatist package, which defines the drama environment, which is basically a list environment, and each speech entry is a list item. Since I need to print the ...