{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
1answer
50 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
49 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
44 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
79 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
67 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
70 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
71 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
77 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} ...
3
votes
1answer
64 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 ...
4
votes
1answer
142 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
78 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
41 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
103 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
75 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
60 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
92 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
70 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
84 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
63 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
131 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
73 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
94 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
105 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
108 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
65 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
96 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
71 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
105 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
177 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
57 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} ...
4
votes
1answer
73 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
213 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
92 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
43 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
78 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
141 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
141 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
106 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?
6
votes
2answers
214 views

framed or colored box with text and margin notes

I am using pdfTeX and I have in my text an example which just is a kind of a short story. What I want is: The story should be visually distinct from the normal text, by frame or background colour. I ...
6
votes
2answers
118 views

tcolorbox spacing with \center environment and \centering switch

In LaTeX, the way \begin{center}....\end{center} spaces the tcolorbox is different from how \centering does it. The center environment, provides enough space but the vertical spacing done with ...
8
votes
2answers
124 views

Tcolorbox in footer with nobeforeafter adds space to other elements in footer

EDIT: \documentclass[10pt]{article} \usepackage{geometry} \usepackage[skins]{tcolorbox} \usepackage{fancyhdr} \renewcommand{\footrule}{\hbox to\headwidth{\color{blue}\leaders\hrule height ...
3
votes
1answer
62 views

tcolorbox doesn't print offset correctly? [closed]

Edit: It turned out to be my PDF viewer. So I made this little tcolorbox and the distance between each subsequent pair of rules does not match for all rules: The code I have is this: ...
5
votes
1answer
116 views

Only draw part of a borderline in tcolorbox

I want to tune the type of tcolorbox that I'm making. I want specifically to only draw a border on one side of the image, similar to how minted allows to draw only a border on one side by specifying ...
6
votes
1answer
82 views

Segmentation code ignored when a tcolorbox breaks

Consider the following mwe: \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{skins,breakable} \usetikzlibrary{calc} \usepackage{lipsum} \begin{document} ...
0
votes
0answers
110 views

interference listings styles in tcolorbox [closed]

I'm trying to create a package to encapsulate pstricks examples using tcolorbox and showexpl. Defined a new environment PSTexample and style for listings (mystyle) that does not interfere with ...
4
votes
2answers
103 views

How to fit the width of a tcolorbox to a long title (single line)?

Using "clip title=false" enables a tcolorbox long title to sit on a single line. However, the width of the tcolorbox itself remains fitted to the content. How can the tcolorbox width be fitted to the ...
4
votes
1answer
87 views

Tcolorbox sidebyside right side “top align” problem

When a tcolorbox is inside the right side of a sidebyside tcolorbox, it is vertically centered. Using "\vfill" or "align = top" don't put the tcolorbox at the top of the right side. The space between ...
6
votes
1answer
107 views

Aligning and centering a lstlisting with two columns on a page

Consider the following code taken from here to produce a fancy listing : % PACKAGES \documentclass[11pt,a4paper]{book} \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry} ...
4
votes
1answer
241 views

Fancy colored array in LaTeX?

I would like to reproduce these kinds of arrays in Latex (probably with tcolorbox) but I have no idea how to achieve this. So is there a way to make these kinds of tables ? Note : I would like the ...