{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
0answers
6 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
72 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
47 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
134 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
60 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
37 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 ...
4
votes
1answer
68 views

tcolorbox leaves faded number on slides in beamer

It's my first week in beamer and tcolorbox. I recently prepared a slide presentation with the beamer class and tcolorbox. The program works fine but I have a little hiccup: tcolorbox leaves a faded ...
4
votes
1answer
40 views

Every \newtcbox{\FOO} with a certain text-color?

Imagine having a certain tcolorbox (manual) named FOO, called for via: \documentclass{article} \usepackage[most]{tcolorbox} \newtcbox{\FOO}{colback=red,colframe=blue} \begin{document} ...
2
votes
1answer
42 views

tcolorbox: How to create layout of single box on one side, multiple boxes on other?

I have three tcolorboxes where I would like the layout to be similar to this: I can make the titles of the first and second box align using the adjustbox package (as seen here), but I'm unsure how ...
2
votes
1answer
45 views

Problem with example in tcolorbox package

When I try to run this simple example from the manual: \documentclass{report} \begin{document} \tcbset{frame style={top color=red!20!white, bottom color=red!20!white!75!black}, ...
2
votes
1answer
54 views

Problem with tcblisting at page break

I use a tcolorbox to display my listings and thats actually works pretty well. But if in my listing a page break occurs, then my predefined "basicstyle" property will be removed. And I have no idea ...
3
votes
1answer
50 views

Node in the corner of tcolorbox with text “wrapped” around it

I use the tcolorbox package to produce titled boxes. I put the node of the title on the right- corner of the box but it overlays the text of the example. How can I make a box with the title- ...
1
vote
1answer
42 views

Add image, after long space in begin environment [Title changeable]

MWE \documentclass[a4paper,twocolumn,12pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[turkish]{babel} \usepackage[listings,skins,breakable]{tcolorbox} ...
0
votes
1answer
37 views

Unknown option `breakable' for package `tcolorbox'?

I am running TeXLive 2012 however when I run this... \documentclass{article} \usepackage[breakable]{tcolorbox} \usepackage{lipsum} \begin{document} \begin{tcolorbox}[breakable, title=My breakable ...
4
votes
2answers
106 views

tcolorbox incompatibe with color package?

I am trying to add a tcolorbox into my Xelatex document but it does not seem to work. I tracked the problem to the color package which if disabled produces the box. However I need to use the color ...
6
votes
2answers
109 views

How to restrict width of tcolorbox according to the length of the text it contains

I have created a tcolorbox (as given in tcolorbox version 3.40 manual - page 155) LaTeX Code: \tcbset{ enhanced, colback=red!5!white, boxrule=0.1pt, ...
0
votes
0answers
36 views

Listings tcbinputlisting

This is a follow up question. Have a look at my comment on the answer to this one: Listings: line number separator rule How do I use the input and the environment of tcolorbox? I have created a ...
4
votes
1answer
73 views

Customize stackoverflow like source code box using tcolorbox extrude, with constant space around word [duplicate]

I try to change font familly in my tcolorbox to have similar font than the font for source code in stackoverflow, without success. The height of line is also not correct, there is a difference ...
1
vote
0answers
55 views

Section number disappears with tcolorbox [closed]

I'm having an issue working with tcolorbox. I'm using a text marker box (page 183 http://mirror.ibcp.fr/pub/CTAN/macros/latex/contrib/tcolorbox/tcolorbox.pdf) and then I declare a new section but the ...
6
votes
1answer
129 views

Custom Shape with tcolorbox/tikz

I'm trying to make a custom rectangle to surround my section headers. It's a regular rectangle with the upper-left and lower-right corners "cut" so they're diagonal. I want it to look like this: I ...
2
votes
2answers
65 views

if statement with tcolorbox?

I used Mr. Medina's very helpful code (below) but when the example runs from one page to another, there is a line at the bottom of the first page and one on top of the second page. Could someone ...
1
vote
1answer
57 views

Boxed text inside tcolorbox tcblisting?

I am writing a text which includes lots of programming snippets which I've put into environments which use tcolorbox/tcblisting: \usepackage[pdftex]{xcolor} \definecolor{vlgray}{gray}{0.9} ...
3
votes
1answer
65 views

Captioning tcolorbox

Inside my latex document I have several tcolorbox-es and several tcblisting-s and they are just fine. However, I would like to add a caption on every of them and mark then so they will be visible in ...
1
vote
1answer
25 views

Listing of /etc/vsftpd.conf is not displayed in tcolorbox due to errors:

I have following MWE: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[color=red,opacity=0.1,contents={}]{background} \usepackage{hyperref} \usepackage{indentfirst} ...
0
votes
1answer
62 views

Theorem boxes in beamer

Usually I use beamer with the Warsaw theme which puts theorems (and other things) in boxes. Now I switched my theme to Marburg but i still want to keep the boxes. How can one do that?
6
votes
2answers
158 views

Inserting pictures in tcolorbox

I have a picture that I would put in a tcolorbox, but the image is too large and comes out. The code: \documentclass{report} \usepackage{geometry} \usepackage{float} \usepackage[italian]{babel} ...
1
vote
0answers
33 views

Error loading the correct version of the tex file

I got the following error message while using a custom block environment in my document. ! Package tcolorbox Error: tcolorbox version '3.40' loads library 'tcbskinsjigsaw.code.tex' with version ...
4
votes
1answer
131 views

Counter outside tcolorbox?

I'm preparing a document using tcolorbox as basic cells, like this: \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{skins, breakable} \newtcolorbox[auto counter, number ...
2
votes
1answer
80 views

Adjustment of text inside \tcolorbox and getting rid of ident after box

I have following chunk of text: \begin{tcolorbox}[boxrule=0pt,arc=0pt,colback=gray] tar: Ignoring unknown extended header keyword 'SCHILY.fflags'\\ tar: Ignoring unknown extended header keyword ...
2
votes
1answer
79 views

Frame only around the boxtitle in Tcolorbox. Making “half-background”

Writing a book in arabic, using polyglossia, I use Tcolorbox to make examples, exercises, theorems and so.. I have two kinds of titled examples: one with Arabic title, in RighToLeft mode, obtained by ...
4
votes
2answers
80 views

How to define labels within a tcolorbox?

Inspired by this great answer, I'm trying to typeset my definitions using tcolorbox. My document contains hundreds of definitions which follow the pattern: \begin{definition} % ... ...
1
vote
1answer
41 views

How can I achieve multi-page theorems?

I'm using tcolorbox theorems as following: \usepackage{tcolorbox} \tcbuselibrary{theorems} \newtcbtheorem[number within=section]{example}{Example}% ...
2
votes
0answers
31 views

Setting color text to improve eye movement from the of one line to the start of the next? [duplicate]

The web site http://www.beelinereader.com/ provides a chrome browser extension which colorizes paragraphs so that moving your eyes from one line to the next is much quicker than with just black ...
1
vote
1answer
92 views

How to draw arrows between colourboxes

I have written a Z specification and drawn boxes around the schemas. I'm trying to work out how to draw an arrow from schema to schema. \documentclass{article} \usepackage{zdra} \begin{document} ...
1
vote
0answers
68 views

tcolorbox vs KOMAoptions: TeX capacity exceed

I tried to put a box around a definition, but got an error. The problem is, I am using a huge template, so I do not really understand most of the settings. If I add this to my file: ...
4
votes
1answer
143 views

Nice title highlighted

I would like to construct a title highlighted by two horizontal lines look like the picture below: To add it to the front of document I have the following segement of code, for example ...
1
vote
1answer
100 views

Adding a horizontal rule between caption and lstlisting inside a tcolorbox

I have example listings for a book. I'd like a horizontal rule the width of the tcolorbox between the caption and the listing. The code used to produce it: ...
2
votes
1answer
50 views

What are the advantages of the different ways you can use tcolorbox together with minted? Is one to be preferred over the other?

I'm listing code with the minted package and drawing the box around it using the tcolorbox package. However, there are two ways to do it, and I don't know which one is best. To list code that resides ...
6
votes
1answer
57 views

tcolorbox: “enlarge bottom finally by” doesn't work in all cases

I want to make sure that a short text (a signature) after a tcolorbox doesn't end on a page of its own. I'm using a \raisebox and tried to enlarge the bounding box of the tcolorbox with enlarge bottom ...
2
votes
1answer
81 views

Multipage table using tcolorbox and tabularx

Good day, Sirs and Madams! I am experiencing issues while composing a big table over several pages. I'd like to use tcolorbox in combination with tabularx. Unfortunately, this does not work out as ...
3
votes
2answers
159 views

How to make a rectangle of 3 colors with Tikzstyle and Tcolorbox

I've to write a book in arabic, with a background given by an image with stripes in 2 colours in the margin of the page. I include it in the document without any problem with the package bachground. ...
1
vote
1answer
82 views

figure with figure caption showing outer par mode error

When compiling figure with tint box it's showing ERROR. How to achieve sidebyside (it's means text is leftside and figure is rightside). My MWE is: \documentclass{article} ...
2
votes
1answer
50 views

tcolorbox and bidi behaviour

When using bidi with tcolorbox package the box is not inline with the text. Running the MWE with bidi commented or not makes it all clear. Can somebody explain this behaviour and possibly come up with ...
0
votes
0answers
53 views

Float interferes with breakable tcolorbox

Today I noticed, that a breakable tcolorbox can be interrupted by a floating object, e.g. a figure. IMHO this is rather strange and shouldn't happen. Thus I wonder, how I can force the floating object ...
1
vote
1answer
139 views

Two column minted listing inside tcolorbox

I have a quite long but narrow code I want to typeset inside a tcolorbox. Is it possible to enable a two (or more) column mode inside the box (not break the box and set the parts adjacent). The ...
1
vote
1answer
66 views

Suppress paragraph indentation after tcblisting environment?

I am writing a document containing lost of snippets of code, and I've defined an environment using tcblisting from the tcolorbox package to do this. The environments work fine. What I want to do ...
1
vote
0answers
64 views

Solved - Skins and pgfkeys problems using tcolorbox special features [closed]

I'm new to this forum where I have often found useful replies. I hope I'll be accurate enough here. I've been trying to create a new environment where there would be a left border line and my text ...
6
votes
2answers
71 views

Is it possible to apply shadow only to the last part of a breakable tcolorbox?

I'd like to apply (drop lifted) shadow only to the last part of a breakable tcolorbox but I couldn't find any hint for this in the documentation. The following MWE is a non working attempt. ...
3
votes
2answers
129 views

Breaking problem in tcolorbox — break at — breakable

My MWE, \documentclass[a4paper,twoside,openany,12pt]{book} \usepackage[left=1cm,right=1cm,top=2.5cm,bottom=2.5cm,marginparwidth=0cm,marginparsep=0cm,outer=1cm]{geometry} \usepackage[T1]{fontenc} ...
2
votes
1answer
93 views

Rotate `tcolorbox` with shadow

How to rotate a tcolorbox with shadow? I tried tikz={rotate=15} but as you can see on the bottom of the image, this gives not the desired result. \documentclass{beamer} \usepackage{tcolorbox} ...