{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

4
votes
1answer
51 views

footnote in a tcolorbox environment

How can I get a footnotemark defined in an tcolorbox environment that appears in two or three pages, but the respective footnotetext printed out in the footer of the first page? The image shows ...
3
votes
1answer
35 views

How to set the label for listings?

Hi I'm new in Latex and I'm using this code from the Board everything is working, but I don't know how to set the label for the listing with this code \usepackage[many,minted]{tcolorbox} ...
2
votes
1answer
31 views

Referring to example numbers in tcolorbox

In a question I asked before, I implemented method 2 by feculededentier. However, now I am facing difficulty in referring to different examples in this case. For example, what should be the Latex code ...
1
vote
1answer
45 views

define colorebox with chapter

I have defined the following: {\theorembodyfont{\rmfamily}\newtheorem{Bsp}{Beispiel}[chapter]} to use in the text \begin{Bsp} bla bla \end{Bsp} Now I want to color just the "Beispiel" include ...
4
votes
2answers
59 views

Example numbers with respect to chapters in tcolorbox title

I found this link which explains how to add index number to example in tcolorbox. However, I have been unable to modify it to include chapter reference numbering (e.g., Example 1.1, or 4.3, etc.). Any ...
3
votes
1answer
66 views

page break issue with tcolorbox's height fixed for

When using the height fixed for=first and middle option on a tcolorbox, the page break behavior becomes awkward. Try uncommenting the identified line in the following MWE to see what happens. ...
2
votes
0answers
56 views

tcolorbox and pstricks are conflicting? [closed]

The following code comes from a much larger document of mine containing several pstricks and boxes generated by using tcolorbox. \documentclass[fontsize=12pt,letterpaper,openany]{scrbook} ...
2
votes
1answer
48 views

Package `tcolorbox` within `titlesec`

It may not be a very good idea, but I am trying to use tcolorbox for formatting titlesec as follows: \documentclass[10pt,twoside]{book} \usepackage{fontspec} \usepackage{lipsum} ...
4
votes
1answer
65 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 \\ ...
2
votes
1answer
52 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
55 views

Matlab figure background color inside tcolorbox [closed]

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
71 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
43 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
72 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
47 views

Define new command using \DeclareTotalTCBox in tcolorbox package [closed]

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
63 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
43 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 ...
2
votes
0answers
82 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
66 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
64 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
81 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
71 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
109 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
46 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
91 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
74 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
132 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
113 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
47 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
69 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
141 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
86 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
42 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}{ ...
5
votes
1answer
73 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
209 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
69 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
70 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
22 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
108 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
54 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
49 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
82 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
54 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
353 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
135 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
102 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
64 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
47 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
108 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
53 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 ...