{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

0
votes
0answers
7 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
35 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
42 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
125 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
54 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
23 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
42 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
189 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
46 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
58 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
17 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
85 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
41 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
39 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
64 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
40 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
223 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 ...
10
votes
0answers
59 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
80 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
44 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
38 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
94 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
50 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
35 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
64 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
48 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
98 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
66 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
149 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
81 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
49 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 ...
5
votes
1answer
93 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
59 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
61 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
55 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
57 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
59 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
44 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
56 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
127 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
180 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
50 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
89 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
59 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
185 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
68 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
71 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} ...
4
votes
1answer
86 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
28 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
105 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?