{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
1answer
53 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
40 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
50 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 ...
1
vote
0answers
40 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
77 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
62 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
76 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
61 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
42 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 ...
4
votes
2answers
60 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
38 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?
0
votes
0answers
36 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
57 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.
5
votes
4answers
121 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
70 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
29 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
53 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
55 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
46 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
59 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
72 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
162 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 ...
2
votes
1answer
78 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
88 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
110 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
54 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
84 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
71 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
76 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} ...
4
votes
1answer
95 views

It doesn't displayed \section name, number… at header in \tcolorbox

I am trying about section's in tcolorbox. My code is \documentclass[a4paper,twoside,openright,11pt]{scrbook} \usepackage[left=1cm,right=1cm,top=3cm,bottom=1.5cm,marginparwidth=6cm,marginparsep=.5cm, ...
1
vote
2answers
96 views

refstepcounter in tcolorbox option

I want to increment a counter and update the current label in the phantom key of the tcolorbox environment, but it is not working, as can be seen in the example below: \documentclass{article} ...
2
votes
2answers
93 views

Counters for Chapter and Section environments when using tcolorbox for listings

This is a followup question of this question. With my MWE I'm getting wrong Listing numbers, wrong toc (including Chapter and Section environments from listings) and wrong bookmarks in pdf toc. Any ...
2
votes
1answer
109 views

Reading code from external file in tcolorbox and getting pdflatex> ! paragraph ended before \tcb@set@label was complete

I want to read code from external file in tcolorbox in new defined \texexptitled environment but could not succeeded (See MWE). Without this my MWE also throws two other errors pdflatex> ! ...
3
votes
1answer
108 views

listings using tcolorbox for beamer documentclass

I'm trying to get listings using tcolorbox for beamer documentclass. My MWE is given below but could not get it working. Any help will be highly appreciated. Thanks MWE \documentclass{article} ...
4
votes
1answer
95 views

listings using tcolorbox package without Chapter and Section environment effects

I want to get listings using tcolorbox package but without counting Chapter and Section environments. See in MWE, I used section environment withing listings which effects the counter for following ...
5
votes
1answer
229 views

Sharp corners to tcolorbox

This works: \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{theorems} \tcbuselibrary{skins} \newtcbtheorem[number within=section]{coloredtheorem}{Theorem}{colback=red!15{th} ...
5
votes
1answer
109 views

tcolorbox: lines after break?

Is there something equivalent to "lines before break" for the end part in tcolorbox? If there is I can't find it ;-) The following box should have at least 3 lines on the second page. As the code is ...
1
vote
1answer
67 views

Showing Arabic script inside tcblisting (tcolorbox)

in this MWE \documentclass[a4paper]{article} \usepackage{listings} \usepackage{tcolorbox} \tcbuselibrary{listings} \usepackage[no-math]{fontspec} \usepackage{polyglossia} ...
7
votes
2answers
150 views

Unwanted vertical separation between tcolorboxes

I am trying to make printer labels for the spine of ring binders. The text is designed to be printed on label paper sheets with A4 format, having top and bottom margins of 26.5mm and left/right ...
3
votes
1answer
103 views

List of listing (using tcblistof) vertical spacing, group by chapter

I'm currently trying to set the vertical spacing within \tcblistof command. The template which causes my problems can be found here: https://github.com/ManuelRauber/LaTeX-Template At first here are ...
2
votes
1answer
87 views

Remove additional space before section in tcolorbox

When I set the parbox option of a tcolorbox to false, every section, even the first one, is preceded with additional whitespace. Is there any way to tell tcolorbox to handle the first section ...
2
votes
2answers
129 views

using paracol with breakable box (tcolorbox)

see this MWE \documentclass{article} \usepackage{lipsum} \usepackage{tcolorbox} \usepackage{paracol} \tcbuselibrary{breakable} \begin{document} \begin{paracol}{2} \begin{rightcolumn} \lipsum[1-2] ...
5
votes
2answers
101 views

Use algorithm2e inside tcolorbox

I use the algorithm2e package to typeset algorithms. Now I would like to put a tcolorbox around an algorithm. My first approach looked like this: \begin{tcolorbox} \begin{algorithm} $a ...
4
votes
2answers
111 views

How to set fit height and width for tcbox according to the text inside?

I want to place a word into a \tcbox, but the box has too much space around the word. For example, the word "EQUAL".
3
votes
1answer
80 views

xelatex and tcolorbox incompatibility?

I have a serious problem when using xelatex with tcolorbox: the text that follows a breakable tcolorbox simply disappear! The problem does not arise with pdflatex, just with xelatex. I am using ...
10
votes
1answer
153 views

Very large tcolorbox

I have a very large breakable tcolorbox \documentclass{article} \usepackage{blindtext} \usepackage{tcolorbox} \tcbuselibrary{breakable} \begin{document} \begin{tcolorbox}[breakable] ...
3
votes
1answer
92 views

tcblistof, book class and vertical spacing

It deals with the displaying of the tcblistof feature with the package tcolorbox, which differs from the classic \listoffigures when used with the book class. In the example below (with tcolorbox v ...
5
votes
1answer
107 views

“Overfull \hbox” when using tcolorbox with parskip=half KOMA-option

When I use the tcolorbox package with the KOMA-option parskip=half, I get the error Overfull \hbox every time I use a tcolorbox. This warning appears despite the fit warning=false option of the box. ...
3
votes
1answer
149 views

Identify tcolorbox page breaks

I would like to render a breakable tcolorbox with mulitple short paragraphs of text where each pair of paragraphs is separated by a rule. \documentclass{article} \usepackage{pgffor} ...
4
votes
2answers
117 views

Last xe(la)tex colors text in white in some circumstances

Last xe(la)tex: XeTeX, Version 3.14159265-2.6-0.99991 (preloaded format=xelatex 2014.6.19) (the one shipped with TeX Live 2014) colors text in white in some circumstances: in the following MWE file ...