{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
18 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
29 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
37 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
37 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
51 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
55 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
49 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
61 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
43 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
82 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
65 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
101 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
85 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
55 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
56 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
34 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
75 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
38 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
77 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
52 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
88 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
63 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
46 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
66 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 ...
2
votes
0answers
51 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
95 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
71 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
89 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
79 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
48 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
81 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
42 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?
1
vote
0answers
58 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
66 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
149 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
95 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
32 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 ...
3
votes
2answers
68 views

Automatically add \vfill for breakable tcolorbox

I'm using tcolorbox with nested tcolorboxes, the upper level ones being breakable. Here is an example. \documentclass{article} \usepackage{lipsum} \usepackage{tcolorbox} ...
4
votes
1answer
65 views

Simultaneous left and right justification in TOC with tcolorbox

A tcolorbox can have a title and an after title. Is it possible to put them simultaneously in the TOC, the title being left aligned and the after title right aligned ? \documentclass[11pt]{book} ...
3
votes
2answers
52 views

Label at the end of a breakable tcolorbox

I use the tcolorbox package to draw breakable boxes across pages. I can refer to the beginning of the box with the label key. Is there an automatical way to refer to the (page of the) end of the box? ...
2
votes
1answer
69 views

tcblisting: two listings side by side

can anybody tell me, how to place two source doe listings side by side within a tcblisting? Something like: \begin{tcolorbox}[colback=red!5!white,colframe=red!75!black,sidebyside, listing ...
6
votes
2answers
84 views

tcolorbox equation and fleqn: not vertically centered

Using tcolorbox with ams equation, there is sometimes additional leading space before the equation comes: \documentclass[fleqn]{article} \usepackage[many]{tcolorbox} \usepackage{amsmath} ...
3
votes
2answers
174 views

Problem in TikZ with fancy contour around a chapter title

\documentclass[11pt]{book} %\usepackage{estructuraLibro} \usepackage[utf8]{inputenc} % Required for including letters with accents \usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs ...
3
votes
1answer
84 views

math inside title in tcolorbox

I am writing a script to emulate a mathematica notebook with tcolorbox in latex. it seems to be perfectly ok as long as I do not have an equal sign in the title. If I do, it breaks ...
3
votes
2answers
100 views

How to create gradient text boxes as wide as paperwidth

In a beamer presentation I would like to create boxes without frame but filled with gradient from left (light grey) to right (dark grey) and text in the box. I also want the box to touch the edge of ...
0
votes
1answer
121 views

Beamer: How to showcase LaTeX-Code and results that look like scrartcl

We are currently working on a beginner's course for LaTeX. We are using LuaLaTeX and Beamer for the slides. We typeset code with the listings-package. We often show Code on the left and a result ...
4
votes
1answer
59 views

tabularx key fails inside a newtcolorbox declared box

Consider the following code: \documentclass{article} \usepackage{tabularx} \usepackage{colortbl} \usepackage{array} \usepackage{tcolorbox} \newtcolorbox{testbox}{ width=.5\textwidth } ...
4
votes
1answer
97 views

tcolorbox/makebox to take up the rest of page

I am trying to make a \begin{tcolorbox} which consumes the remainder of the page and other nested tcolorbox within, which consume the of remaining available area of the outter tcolorbox, Ie Nested ...
1
vote
1answer
75 views

longtabu + rounded box in the header

This question is a continuation of How to combine mdframed and tabu I have lots of rows and it won't work with tabluarx. I would like to present this rounded box around the heading rows of a ...
3
votes
1answer
91 views

Indentation in tcolorbox package

I'd like to have the same indentation within a tcolorbox as I have in the rest of the document. How can I get it? Thanks. MWE: \documentclass[a4paper]{book} \usepackage{lipsum} ...