{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
20 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
35 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
35 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
32 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
34 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
55 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
128 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
60 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
63 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
94 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
40 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
64 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
60 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
54 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
85 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
79 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
81 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
85 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
84 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
72 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
169 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
91 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
50 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
116 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
80 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
72 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
108 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
83 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
97 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
66 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
138 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
82 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
102 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
127 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
110 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 ...
3
votes
1answer
73 views

Using \DTLforeach for defining multiple \newtcolorbox

Concerning this project, I'm now trying to define an own tcolorbox environment for every conversational partner by creating a "conversational partner database" with the datatool package and then using ...
2
votes
2answers
112 views

Customise bullet points inside shadowbox

I'm writing a report and using shadowbox for some important points. I have used the code below and it is working fine. However, when I tried to use the bullet points an extra space is added to the ...
5
votes
1answer
74 views

How to store tcolorbox's (multiple) settings in a macro?

I'd like to store tcolorbox' (multiple) settings in a (single) macro (in fact, a xkeyval's \cmdKV@fam@key macro) and use them afterwards via this macro (I know I should use pgfkeys instead, but my ...
4
votes
1answer
126 views

Alignment of image in tcolorbox

Many times we see in books, some significant points, some tips and tricks are put in an attractive box with an image in it (usually the text will be in italics). I would like to achieve the same ...
5
votes
1answer
203 views

How to reproduce this box in tcolorbox

I'm working with tcolorbox, I saw the pdf here and I want to reproduce the little green box in this image: Can anyone help me please?
1
vote
1answer
63 views

tcolorbox overlay app does not work

I'm trying to build this mwe taken from the tcolorbox manual p. 270 (I have simplified it a bit): \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{skins} ...
5
votes
1answer
85 views

Is it possible to reuse tcolorbox definitions in another tcolorbox definition?

TiKZ allows to define a .style which can be later be used in another one: \tikzset{ first/.style={rectangle, draw}, second/.style={first, inner sep=2mm} } any change in first is ...
2
votes
1answer
223 views

How to Blend Fcolorbox with Surrounding Text

Based on \usepackage{xcolor} you can box text using the commmand \fcolorbox{declared-color-frame}{declared-color-background}{text}. Colored boxes with colored frames and linebreaks can be created by ...
1
vote
1answer
119 views

The xcolor package detected undefined color

I was writing a coloured book that requires to define 12 colours. However, sometimes I get !package xcolor Error: Undefined color. However, it does not specifiy any colors went wrong but indicates the ...
1
vote
1answer
46 views

error when using tcolorbox + listings for multipage source

I'm try to highlight source code with colored background, but I face a bit error. first image is created with listings only and that is what I need. You can see on the last image that basicstyle ...
3
votes
1answer
94 views

Vertical alignment of “nobeforeafter” tcolorbox

Is there a way to vertically center the little tcolorboxes ? \documentclass[]{article} \usepackage[skins]{tcolorbox} \begin{document} \newtcbox{\LittleBox}[1][]{enhanced,nobeforeafter,#1}% ...
7
votes
2answers
159 views

tcolorbox empty title but with frame?

I want a box with the header frame for empty title. How can I do that? If I remove the title, the header frame will be removed automatically. I've tried to put an empty title so that I can keep the ...
14
votes
1answer
151 views

Should tcolorbox enforce inner boxes to be unbreakable?

The tcolorbox package provides breakable boxes. Also, a tcolorbox can be nested inside another tcolorbox, even inside a breakable one. But there is no real support for nesting a breakable box inside a ...
6
votes
3answers
120 views

Using \autoref with tcolorbox

Is there a way to refer to a tcolorbox created theorem (created with \newtcbtheorem) using hyperref's \autoref? I've tried to set \<name>autorefname, as I would have done it for a theorem ...
0
votes
0answers
33 views

How to highlight few sentences in a paragraph? [duplicate]

I would like to get a simple result, as the following Is it possible?