{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
2answers
43 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
18 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
29 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
70 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
53 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
111 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
57 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
35 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
45 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 ...
1
vote
1answer
44 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
107 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
53 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
41 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
29 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
66 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
50 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
44 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
59 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. ...
2
votes
2answers
72 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
67 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} ...
5
votes
2answers
77 views

Adjust frame title rule with tcolorbox

I have been unable to locate an example using tcolorbox which sets the color and width of the line below the frame title independent of the background color of the frame title. With mdframed one can ...
5
votes
1answer
47 views

tcolorbox autoreference

According to the answer posted by Thomas F. Sturm in this thread: http://tex.stackexchange.com/a/180000/62477 the next MWE should be able to use the autoreferencing name 'Voorbeeld' to my ...
8
votes
1answer
106 views

How to define an inner margin for a tcolorbox?

I created a poster with the baposter class. The basic structure is defined through posterbox objects. Within these, I did embed pictures, using tcolorbox as frame. Actual Code: ...
5
votes
1answer
70 views

Possible Lualatex problem with documentation library from tcolorbox

I am developping a package which uses some lualatex features. In order to show examples in the documentation, I have to use lualatex for the compilation as well. I decided to use the documentation ...
2
votes
1answer
109 views

Marginalia inside tcolorbox

I created some fancy tcolorbox for writing solutions of the problems: \documentclass{scrartcl} \usepackage[breakable, many]{tcolorbox} \usepackage{changepage} \usepackage{lipsum} \NewTColorBox[auto ...
3
votes
1answer
107 views

Maintaining text colour change in a breakable tcolorbox

I try to maintain the current text colour in breakable boxes from tcolorbox, but the manual clearly states (see manual of the current version, section 15.2, page 292, version 3.34) • If your text ...
2
votes
1answer
61 views

Vertical spacing \vfill inside tcolorbox

Why \vfill does not work inside tcolorbox? Here is my MuWE (Minimal unWorking Example) \documentclass[]{scrartcl} \usepackage[many]{tcolorbox} \newtcolorbox{bilety} { enhanced, ...
2
votes
1answer
58 views

Boxes with black borders

I am here referring to an old post: Inline boxes: alternative to pifont's non-filled-but-shadowed box? For all the boxes, how can I define a black border? \documentclass[11pt,a4paper]{article}% ...
3
votes
1answer
39 views

savelowerto option from tcolorbox fails inside a wrapper command

I am experimenting a little bit with a favorite package of mine: tcolorbox, the following code is cut out/reduced from a larger 'project', cut down to a command \newcommand{\splitmycontent}[2]{% ...
4
votes
2answers
90 views

Highlight / emphasize a string in tcblisting

How can I emphasize a string in a tcblisting like it is possible with the "moredelim" option in a lstlisting environment? The goal ist to be able to situational epmhasize arbitrary strings in a ...
0
votes
1answer
51 views

Side-effects of adding tcolorbox and enumerate inside wrapfigure

I am pleased to have your help from ![my questions][A lot of unexpected spaces between paragraph after inserting colorbox such as ![this answer][http://tex.stackexchange.com/a/219787/14409] or ![the ...
3
votes
1answer
102 views

tcolorbox and enumerate inside wrapfigure generating unexpected spaces below

I have had a problem of unexpected spacing below the object with tcolorbox inside the wrapfigure environment. You can see the attached snapshot. Below is my MWE. ...
3
votes
1answer
63 views

tcbox raise base for selected text only

tcbox raise base is wonderful to help align my text and tcbox. However, what if I want tcbox raise base for some text and not for others? Meaning that I am trying to get 0.0.1 and 0.0.3 in the same ...
4
votes
1answer
121 views

tcolorbox & text vertically center align

tcolorbox and text does not vertically align to the center with one another. \documentclass{book} \usepackage{tcolorbox}% for framed rounded boxes ...
1
vote
1answer
68 views

examination paper keeps answer's space white

I make an examination paper template, the paper contains the questions and answers, a switcher is defined for showing on/off answers. it gives all when switcher is on, otherwise only the questions ...
3
votes
2answers
50 views

Automatically append capture=hbox in tcolorbox

I'd like to append the key hbox to all my tcolorboxes. I was unsuccesful doing so by including it in my tcbset, so what other options do I have at my disposal for getting it done? ...
5
votes
1answer
92 views

tcolorbox box width

In this question, Measure distance from text to bottom margin, an answer is using tcolorbox to provide a box that fills the remaining length of the page. However, when the box is indented by, say, an ...
3
votes
1answer
76 views

Indentation inside tcolorbox

I have a environment solution created with xparse and tcolorbox. I do not understand why package \usepackage{indentfirst} does not work inside solution. \documentclass[12pt]{book} \usepackage{xparse} ...
5
votes
3answers
102 views

numbering tcolorbox toc

I'm writing a quite large document and would like to make a toc of used boxes. I'm using the tcolorbox package because i like the way it gives you freedom to modify the appearance of the boxes. While ...
4
votes
3answers
84 views

Positioning of tcolorbox in list enviroment

For emphasis some key features in my texts I use tcolorbox, which is pushed to the outside border. in normal text this work fine but in itemize environment it is pushed more outside then I desire. ...
6
votes
1answer
109 views

Suppress a page break before a breakable tcolorbox

I'm trying to avoid page breaks between a sectioning command and a following tcolorbox. With "normal" boxes I can use \nopagebreak, e.g. in the before option: \documentclass[]{article} ...
2
votes
1answer
92 views

tcolorbox, equations and indentation

I have used the tcolorbox to highlight my equations, the problem i have i that the indentation does somehow not work properly. If i use regular equations i just have to remove the lines before and ...
1
vote
0answers
56 views

tcolorbox line numbers

I am trying to make a generic environment to use for all my boxes in my document. I want all my boxes to have line numbers. I can only get this to work some of the time. I don't get line numbers when ...
3
votes
2answers
90 views

How to place a title in the tcolorbox to the bottom (left right) of the box

The question is how to place a title in the tcolorbox to the bottom left/right of the box. I want to create something like the following picture. The main point here is the caption "My picture box" ...
2
votes
1answer
59 views

How to make gradient ellipse title box with border?

I am using the tcolorbox package, and I want to use a gradient ellipse title box with border on the titlepage. It is possible somehow or I have to use another package to manage this?
2
votes
0answers
73 views

Marginnotes and tcolorbox problem

Does \marginnote mess a little when it comes to tcolorbox? I have adapted some code from this other question and the first box renders fine, but the following ones are a disaster. I've struggled a ...
3
votes
1answer
74 views

Set line spacing in tcolorbox

My entire document is double spaced. But I want the content in my \tcolorbox to be single spaced. Is this possible? I am not seeing anything in the documentation regarding line spacing.
6
votes
4answers
166 views

tcolorbox: how do I align on the baseline of the title

I would like to the two boxes titled personal and other to appear on the same line and to be aligned on the baseline of the title. So far, I can't even get them on the same line even though there ...
4
votes
1answer
105 views

How to modify colbacktitle, coltext in a tcolorbox with AAUsidebar theme?

I'd like to produce a presentation with beamer. I use the AAUsidebar theme. I want to use my own boxes that I defined with \newtcolorbox. But, I can't not modify the background colour of the title ...
0
votes
0answers
36 views

How to set math equation boldface in tcolorbox

How can I set the font of the tcolorbox content as boldfaced \begin{tcolorbox}[colback=white!5!gray] $x=\sqrt{y}$ \end{tcolorbox} Also still intrigued b how the colors are defined in colback ...