{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
34 views

How to repeat title in tcolorbox?

\centering \tcbset{enhanced jigsaw, width=7cm, left=0mm,right=0mm,top=0mm,bottom=0mm,boxsep=0mm,boxrule=2pt, colback=white} \begin{tcolorbox}[breakable,title=Titulo ] %, boxsep=-4mm paragraph \\ ...
1
vote
1answer
32 views

Matching width of Caption background with Table width

I am trying to color a table with a background color and the caption with a different background color. I must use the tabular environment, none of the tabulary, tablarx, tabu, tabular* will be ...
0
votes
0answers
36 views

Matlab figure background color inside tcolorbox

I am using the following code for placing a figure inside a tcolorbox. .... \tcbset{breakable,enhanced,colback=gray!3,colframe=orange,fonttitle=\bfseries} .... ...
4
votes
1answer
43 views

why tcolorbox example on pp. 345 doesn't work

I wish to improve my (very basic) knowledge about tcolorbox .. so I try to compile example in pp. 345 (chapter 18: Library "hooks"). Compiling it I receive warning: ...
0
votes
1answer
33 views

How to use a marginfigure environment inside a tcolorbox environment?

\documentclass{book} \usepackage[demo]{graphicx} \usepackage[paperwidth=170mm, paperheight=240mm, left=42pt, top=40pt, textwidth=280pt, marginparsep=20pt, marginparwidth=100pt, textheight=560pt, ...
3
votes
1answer
53 views

Undefined control sequence using tcolorbox in TOC

I get an toc error when I use the tcolorbox for getting a grey background in the contentline of the Parts. Despite the error, the pdf is created correctly. Undefined control sequence. \contentsline ...
1
vote
0answers
40 views

Define new command using \DeclareTotalTCBox in tcolorbox package

I have defined a command using \DeclareTotalTCBox command in tcolorbox package as blew: \documentclass{article} \usepackage[most]{tcolorbox} \DeclareTotalTCBox{\myverb}{ O{red} v O{} } { ...
1
vote
2answers
54 views

How to force the tcolorbox package to cover the upper and lower part of pages?

The code \documentclass{book} \usepackage[many]{tcolorbox} \usepackage{lipsum} \begin{document} \chapter{Foo bar} \lipsum[1-2] \begin{tcolorbox}[size=tight,oversize, sharp corners, breakable, ...
1
vote
2answers
38 views

spacing between text and frame of table?

I use tcolorbox to define a new environment as suggested by Gonzalo at Create a color box?. In that environment, I put the figure inside the frame as the code shown below. I want to adjust the space ...
1
vote
0answers
67 views

Undefined control sequence since tcolorbox version 3.71 [2015-07-23] [closed]

I had a code that was perfectly fine before I update tcolorbox. Here is a MWE: \documentclass[11pt, twoside]{report} \usepackage[usenames,dvipsnames,svgnames,rgb]{xcolor} \usepackage{setspace} ...
3
votes
3answers
59 views

Customized color box

Referring to question at Create a box using tcolorbox package?, I would like to attach a small square box at top right of the main box rather than attach it on the left along with full height of the ...
2
votes
1answer
53 views

Fancybox question

i've been messing around with boxes recently, and i'm struggling with doing 2 siple things. Here is the tex code first. \documentclass{article} \usepackage{lipsum} \usepackage{tcolorbox} ...
3
votes
1answer
66 views

Why some commands in \tcolorbox do not work?

For example, when trying to center the title of a box, the manual says that I should use halign title = center in the options of the box, for example, like this: \documentclass{article} ...
6
votes
2answers
65 views

tcolorbox 0pt wide lines visible in some PDF viewers

After compiling my document, boxes that should have some of the lines invisible (0 pt) have them still visible in some PDF viewers, namely Ubuntu's Evince, Firefox's default PDF viewer, and others. ...
5
votes
2answers
94 views

Can I have a tcolorbox behave like wrapfig, without using the wrapfig package?

I want to have the text go on the right side of my tcolorbox (like this), instead of it just being white space on the right side of my tcolorbox. This code illustrates a tcolorbox with all white on ...
1
vote
1answer
38 views

tcolorbox `interior titled code app` does not work

This is my MWE: \documentclass{article} \usepackage{tcolorbox} \usepackage{lipsum} \tcbuselibrary{skins,hooks} \newtcolorbox{mybox}[2][]{enhanced, frame code app={\draw[yellow,line width=1cm] ...
2
votes
1answer
72 views

Use the Exercise environment from Legrand Book template

I am using the Legrand Orange book template and like the typesetting of the exercise environment. I wanted to use the same environment to just have my text within the ocre color box. From the ...
1
vote
1answer
62 views

how to creat color boxes as the picture

I want to creat color boxes as the picture. Could anybody help me
5
votes
1answer
110 views

chapter style with tcolorbox?

Is it possible to customize chapter style like below picture by using tcolorbox package? if not, can you show me which package could generate that such style? Thanks
5
votes
1answer
100 views

Create a box using tcolorbox package?

Regarding to question of voduchoangvu from Create a color box?, I would also like to make a box like the figure below. Can you assist me with tex code using tcolorbox as well? Thank you so much.
4
votes
1answer
46 views

Length operation within a newtcblisting

Consider the following code: \documentclass[10pt,letterpaper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{calc} \usepackage{tikz} ...
0
votes
0answers
61 views

Strange Error after upgrading to MacTeX 2015

After the Upgrade to TeXLive 2015 the document of mine produces a strange pdf output. If you compile the given TeX file as it is, you see that the background grid on the first page is shifted. Now ...
4
votes
2answers
132 views

How to use \newenvironment; why doesn't this code work? How do I fix it?

I've been trying to find out but my latex skills are too weak to understand what seem like similar problems. When I try this: \documentclass{memoir} \usepackage{graphicx} \usepackage{exsheets} ...
3
votes
1answer
72 views

Tcolorbox with horizontally separated title and subtitle

I want to make a tcolorbox that looks roughly like this ----------------------------------------------------------------------------------- | Subtitle (If the subtitle is too ...
2
votes
1answer
32 views

Is it possible to change the background color of the \tbclower in a tcolorbox?

I've been using tcolorbox to show formulas this is the code I'm using \documentclass{article} \usepackage[many]{tcolorbox} \tcbuselibrary{skins} \newtcolorbox[auto counter]{formula}{ ...
4
votes
1answer
55 views

Arguments in a tcolorbox

Following with the answer for this question Create a color box? given by Gonzalo Medina I just made a few arrangements for a list of exercises the code is this \documentclass{article} ...
2
votes
2answers
203 views

How to make a two level colored box with text?

I need some help to create boxes with two layers, color and text (as in the picture) that fit into textline. I thought about using tcolorbox but didn't work out for me yet. It is "needed" (it is not ...
1
vote
1answer
61 views

Create a color box in beamer class

I did follow the instruction from Create a color box?, and succeed in the \documentclass{article}. However, if I put the Tex code in the beamer class, it does not work. The code is: ...
3
votes
1answer
67 views

Beamer dynamics with tcolorbox

How can I make a box of the tcolorbox-package appear in a beamer presentation? For exemple I want the box to appear together with point 3... ...
0
votes
0answers
21 views

Defining keywords for SQL using listings

Problem: I use listings package to highlight SQL code but for some reason, unknown to me, I can't get certain keywords in SQL to highlight in a different color. Minimal Working Example: ...
5
votes
1answer
95 views

Add text inside a box inside another box

Problem: Trying to create a label for programming code by using text inside a color box inside another color box. However, I am not sure of the best practices regarding putting one box inside the ...
4
votes
1answer
46 views

How to place a code snippet using minted inside a tcolorbox?

This is a piece of my LaTeX code: \documentclass[a4paper,oneside] \usepackage{minted} \usepackage{tcolorbox} \tcbuselibrary{breakable,skins} \usepackage{etoolbox} \usepackage{fancyvrb} ...
2
votes
1answer
43 views

How to add text in the margin, level with first line of paragragh?

I am having trouble adding text (one or a few words) to the left margin of a page. The result should be like the text in the margin in the answers here (without the brace). But with the difference ...
3
votes
2answers
73 views

Vertically adjacent tcolorboxes

A similar question is asked here. What I'm asking is somewhat different: to have a command which makes two tcolorboxes vertically adjacent. My attempt is: \begin{tcolorbox} \end{tcolorbox} ...
3
votes
2answers
46 views

Normal body text within tcolorbox

Minimal example: \documentclass{report} \usepackage{tcolorbox} \usepackage{lipsum} \begin{document} \begin{tcolorbox} \lipsum[1-2] \end{tcolorbox} \end{document} I want the paragraphs in the ...
4
votes
1answer
316 views

Create a color box?

anyone can help me with latex code how to create a box as the following figures? the second box is I tried to use package{tcolorbox}, but not succeed. I would like to create a box exactly as in ...
14
votes
2answers
128 views

tcolorbox: Can one store the parts of a breakable tcolorbox for later use?

I would like to delay the output of some parts of a breakable tcolorbox (I want to use them in a "notes column" and try to implement a way to split them if they get too long for a page). Has someone ...
1
vote
2answers
91 views

Package for framed boxes

I saw the following framed box in a Tex-generated PDF and was wondering what package had been used to make it: Does anybody recognize it?
2
votes
2answers
55 views

How to add space around tcolorbox theorem

In amsthm you can easily change the space before and after a theorem. Can this be done with tcolorbox theorem? If so, how? I haven't been able to find anything in the documentation. Minimal ...
1
vote
1answer
41 views

Tcolorbox: force labelling to take on specific number

Using tcolorbox, how can I label a box and give the box whatever number I want? \documentclass{memoir} \usepackage[breakable]{tcolorbox} \newtcolorbox[use counter=table,number ...
3
votes
2answers
102 views

Problem with labelling tcolorboxes

I have the following problem: using the tcolorbox package I get inconsistent results for the labelling: in this example I get that the boxes are both referred to as 1.1 : The code for this is: ...
1
vote
2answers
51 views

Problem with tcblisting: First listed LaTeX command is missing

Following code shows the problem. I've declared a \newtcblisting with an optional argument. \newtcblisting{codiltxb}[1][]{listing only, #1} When the optional argument is present in further ...
2
votes
1answer
41 views

Problem with gobble listing option inside a tcblisting

Please, compare next two listings inside a beamer frame. The upper one is made with listings and the second with tcblisting (form tcolorbox). Both use same source and listing options. Following ...
4
votes
2answers
73 views

how to draw a bicolor tcolorbox without frame?

Sometimes I want to draw tcolorboxes without frames and although I use boxrule=0pt some border frame is still visible. I would like to know why. As an example, take a look at next code which draws a ...
4
votes
2answers
52 views

tcolorbox theorem which isn't framed on the sides

Minimal example: \documentclass[]{report} \usepackage{tcolorbox} \tcbuselibrary{theorems} \tcbuselibrary{skins} \newtcbtheorem[number within=chapter]{thm}{Theorem} {theorem style=change ...
6
votes
1answer
103 views

How do I repeat the first table row on every page using longtable inside of tcolorbox?

I'm using the \endfirsthead and \endhead but the first row is not repeated for some reason. Here's a piece of my code, I'll appreciate any help. \documentclass[12pt]{article} \linespread{1.2} ...
2
votes
1answer
79 views

Customizing breakable boxes with tcolorbox

I use the tcolorbox package to produce coloured boxes in arabic environment (a right-to-left language), under the polyglossia package. I explain some of the commands in the environment example, in the ...
1
vote
1answer
159 views

Using MikTeX how can we color some text

I am using MikTeX 2.9 on Windows 8.1. The PDF output of the Following TeX file does not display the word "example" in fore color or background color. I'm using TeXWorks editor - that comes with MikTeX ...
1
vote
1answer
87 views

Exact dimensions in tcolorbox and tikz nodes

I use tcolorbox in arabic document with polyglossia for theorems examples, and so. I put the titles of environments in tikz boxes what I put in the margin (in the right margin, the arabic is written ...
2
votes
1answer
55 views

Setting tcolorbox color to Frankfurt default color

I want to create boxes for which I can specify width, height and position at will. For this I used the command tcolorbox as was suggested to me on this forum. But I want to specify the color of the ...