{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
8 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
43 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
57 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".
2
votes
0answers
37 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
112 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
57 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
65 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
78 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
0answers
69 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
44 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
75 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
64 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
75 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
129 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
44 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
60 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
198 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
47 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
36 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
48 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
106 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
124 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
91 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
32 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
149 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
100 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
105 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
53 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
91 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
71 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
91 views

interference listings styles in tcolorbox

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
86 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
59 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
93 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
166 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 ...
5
votes
1answer
66 views

How to pass two options to tcolorbox

Could someone kindly let me know how I can pass one option to minted options and one to tcolorbox at the same time to a pythoncode tcolorbox listing? I mean, I want some options get passed to minted ...
3
votes
1answer
58 views

Problem in adding a title to tcolorbox

I have defined a python environment in my document using tcolorbox. I would like to add a title to the listing. However, the compiler complains about adding the following to pythoncode environment: ...
2
votes
0answers
80 views

I do not know the keys /tcb/flush right upper — pgfkeys error

On compiling with PdfLaTeX, the below MWE generates me the following error I do not know the keys /tcb/flush right upper. To resolve this issue, I downloaded tcolorbox and pgfkeys package from CTAN ...
4
votes
1answer
96 views

Help about tcboutputlisting and tcblisting (tcolorbox package}

When using the tcolorbox package and creating latex exercises with solutions, I have a problem of inserting tcblisting in tcboutputlisting (solution). The listing which appeared in the solution is ...
5
votes
1answer
91 views

problem with footnote in tcolorbox (math mode)

I have problem with footnote in tcolorbox, footnote mark on math mode is numbering with arabic while in the footnote area is numbering with alphabet. This is an example to show you what I mean, ...
1
vote
0answers
61 views

\tcbox inside of tabu sticks out

I use \tcbox inside of tabu environment cells. As you see at the screenshot, the tabu is enclosed in tcolorbox as well. So, tabu doesn't measure the size of the content in the cells, when the content ...
3
votes
2answers
149 views

Typeset source code with tcolorbox

I want to typeset source code with tcolorbox package. How is possible in this package not to create static boxes but rather boxes that adjust according to the width of the code I write both vertically ...
7
votes
3answers
240 views

tcolorbox, divided box

I use tcolorbox. How I can achieve box like draft bellow? -------------------- |Lorem |ipsum | | | | -------------------- |Lorem ipsum dolor | | | ...
2
votes
1answer
69 views

Problem in using tcolorbox with c++ #if #endif directives

I am using tcolorbox to highlight a c++ code in my document. Could someone shed light on why it the compiler complains about the #if directive? The error I get is: Extra }, or forgotten $ ...
5
votes
1answer
44 views

Problem in breaking codes in tcolorbox

I have a code which extends more than one page and I would like to break it into more than one page. I used breakable library but it has no effect on the created PDF and all the code appeared in the ...
6
votes
1answer
56 views

Problem in using comment line in tcolorbox in a bash code

I am recently introduced to tcolorbox, which is a great package. I am trying to use it to highlight computer codes such as bash, python, and c++ in my document. When I run the following MWE, I get the ...
5
votes
2answers
99 views

Compile error “Missing \endcsname inserted.” with code and tcolorbox

I get this error when trying to compile into pdf my document. It is important to know that my project did compile a month ago without errors: I opened it today and it fails without being modified at ...
2
votes
1answer
134 views

Resume visually separated

I'd like to separate professional experiences in my resume in such a way that each part are visually surrounded like this: So : is there a package to have header like this (date + Company + ...
8
votes
2answers
117 views

Dimension too large with tcolorbox and fading paths

I have this "Dimension too large" error that I don't understand: \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{skins} \usetikzlibrary{positioning,shadows} \newtcolorbox{mybox}{ ...
5
votes
1answer
102 views

Deciding the width of a centered box withTcolorbox

I'm writing a book and I want to use boxes, using the package tcolorbox. I've found on some old discussion here the commands of \newtcolorbox{blankbox} with the command width=0.9\textwidth, it ...