{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
26 views

Making colorbox left align

I am using same template for resume as was written about here, Latex - width of the colorbox. I am trying to align the words in the black boxes to the left. They seem to be aligned to right as ...
9
votes
5answers
402 views

Creating a multi-line colored box in LaTeX

I am trying to create a colored box in LaTeX that has two lines. I would like the text to be centered. Ideally, I want to be able to change the text font and the size of the colored box. So, an ...
2
votes
0answers
33 views

how can I create a tcolorbox with line numbering?

I created the following tcolorbox: \documentclass{article} \usepackage{tcolorbox} \usepackage{lineno} \begin{document} \begin{tcolorbox}[middle=0mm,boxsep=0mm] Headers \tcblower ...
0
votes
0answers
38 views

Bug with luatexja-fontspec and tcolorbox [on hold]

I found a bug with luatexja-fontspec and tcblisting of tcolorbox. Specifically, when I use "style=tcbstyle" and "\setsansjfont", I get a following error. ! Missing number, treated as zero. <to be ...
5
votes
2answers
69 views

Reference with compound labels

I created an environment, Procedure, using the package tcolorbox. The procedures are numbered by \thechapter-\theproc and I would like to use cleveref to refer to them. Here is a minimum working ...
1
vote
1answer
47 views

Chart using tcolorbox

Hi I'm making a chart using tcolorbox. I'll show you my code: \begin{center} \begin{tcolorbox}[halign= flush center, halign title= flush center, fonttitle=\sffamily\bfseries\large, title={Lecteur DVD ...
0
votes
0answers
20 views

tcolorbox latest version not working with windows 8.1

Why the latest version tcolorbox 3.80 is not working in windows 8.1? Unable to install that version. MikTeX comes with old version. How to change that?
1
vote
1answer
37 views

Problem with horizontal alignment in minipage environment

This may be a very stupid question, but it is driving me crazy. I have three tcolorbox linked by arrows. The second line of boxes are in a minipage environment, and I want one flushleft and one in ...
2
votes
1answer
56 views

Drawing arrows using tikz

I am trying to make a small chart and drawing arrows between tcolorbox, using tikz and the 'remember as' tool. My code is this \begin{center} \begin{tcolorbox}[enhanced, overlay, width=1.5in, ...
1
vote
1answer
25 views

numbering of tcolorbox

I have a series of tcolorboxes, and i used the \thetcbcounter to number them (they represent different stages of a project). The thing is, it automatically numbers like this 1.1, 1.2, 1.3 and so on, ...
1
vote
0answers
15 views

Use tcolorboxes as nodes to create arrows with tikz [duplicate]

I'm trying to draw an arrow between 2 tcolorbox. But I don't know how to do it, because tikz requires "nodes" If I have this: \documentclass{article} \usepackage[utf8]{inputenc} ...
7
votes
2answers
83 views

Mimicking a calculator inputs and screen

I want to mimic a calculator inputs and display with latex, after looking at several packages like tipfr and ticollege and finding them unsatisfactory to my needs I decided to do it myself with ...
2
votes
2answers
45 views

\colorbox{color}{text} display issue with same math expressions but different syntax

My following LaTeX file in MikTeX' TeXworks editor on my Windows 8.1 is showing the highlighted content with different sizes when the highlighted content is inside quadratic formula but not when it's ...
0
votes
1answer
21 views

How do I use colorbox to make the a black box header with white text with different alignment

So I'm trying to make a black box header like that of below: http://hkimr.org/uploads/publication/433/wp-no-27_2015.pdf I can't figure out how the text can be also left adjust for one phrase and ...
2
votes
2answers
54 views

If (interior.north west) is the north west anchor A of a tcolorbox, how can I draw a line from this point to A + (1cm,1cm) (for instance)?

Ok thanks to cfr, I have a much simpler reformulation of my question. Using an example from the tcolorbox doc \begin{tcolorbox}[enhanced,title=My Title, overlay={% \begin{tcbclipinterior} ...
2
votes
1answer
49 views

Drawing colourful box in a A4 page

I am writting my masters thesis. I want to put 2x2 block boxes in some pages. For example: I can add as image but I do not want to do that. I can draw box using tcolorbox using the following code: ...
2
votes
2answers
104 views

tcolorbox: remember height and tikz-external and tikzscale

This question is related to the answer of tcolorbox: get height of actual box from inside box Is it possible to get the newly defined option remember height working with ...
3
votes
1answer
46 views

tcolorbox: how to set a coordinate in the box which can be used by the finish key?

I'm trying to connect the frame of a tcolorbox with some of the content but have difficulties to set a suitable tikz node: The finish environment seems not to use the remember picture key and so ...
2
votes
1answer
36 views

tcolorbox: `height fill` as option to `tcbraster`

I already asked some questions and I wonder if I am to stupid. There is a nice option called height fill for the last tcolorbox on the page. Isn't it possible to have height fill as option to the ...
4
votes
1answer
36 views

tcolorbox: height fill in the middle of the page

I am looking for a tcolorbox that has the hight like a \vfill. I have a page with tcolorboxes. If there is some space left on the page, I would like to extend the hight of a box in the middle of the ...
5
votes
1answer
65 views

Can tcolorbox enhanced boxes be combined with TikZ externalisation and save boxes? If so, how? If not, what's the best workaround?

I am getting the following compilation error when combining TikZ-enhanced boxes from tcolorbox with TikZ's externalisation: ! Argument of \tikzexternal@laTeX@collect@until@end@tikzpicture has an ...
3
votes
2answers
52 views

tcolorbox: get height of actual box from inside box

tcolorbox with \tcbuselibrary{raster} can distribute boxes to fill the hole page. After that I want my tikz image to fill the hole box. The width of the box content is given by \linewidth but how ...
0
votes
2answers
42 views

Equation numbering using floating tcolorbox

There is an issue in the numbering of equation when using a floating tcolorbox. I would like the equations to be numbered in the order of appearance. Here is a MWE \documentclass{article} ...
1
vote
2answers
51 views

tcolorbox without background color (transparent)

I would like to have transparent background in tcolorbox. Most time colback=white is a work-around but it is not clean. \documentclass{article} \usepackage{pagecolor} \pagecolor{yellow} ...
2
votes
0answers
33 views

tab is displayed as “^^I” in tcblisting environment [duplicate]

My tabs inside the tcblisting environment are not showing correctly and becomes "^^I". I have tried everything to fix this but not worked. Could anyone please help me so the tabs are displayed ...
2
votes
1answer
87 views

How to comment out a particular kind of boxes

I have three boxes created with \newtcolorbox command. Let’s consider the first as Red, the second as Green and the last as Blue. How could I generate a pdf file containing only one kind (or more, ...
0
votes
0answers
38 views

Extra large row longtable in tcolorbox

I use longtable into a tcolorbox to spread it on multipage. I manage to do it but, I think that there is a best way for the size calculation : p{\linewidth-55mm-6\tabcolsep}} I want to know if ...
3
votes
1answer
43 views

storebox conflicting tcolorbox

According to this topic How to design a command inquiring internally required packages? I am getting in trouble with the package storebox. Have a look at this MWE example. compiling with pdflatex, ...
8
votes
2answers
182 views

Draw a box with tcolorbox

I'm trying to draw something like the following: but with my following ( note that i'm tired with tcolorbox) Code : \documentclass{article} \usepackage{amsmath,amsfonts,amssymb} ...
10
votes
1answer
118 views

Set different hyperref color inside frame of tcolorbox

I currently have the following MWE: \documentclass{article} \usepackage[usenames,dvipsnames]{xcolor} \usepackage[colorlinks=true]{hyperref} \hypersetup{allcolors=blue} \usepackage[most]{tcolorbox} ...
4
votes
1answer
43 views

Split page in two contents which are independent of each other

I would like to compare two exam so I'm trying to split page in two contents which are independent of each other to show The differences between 2014 Exam VS 2015 For this reason, I wrote the ...
1
vote
0answers
39 views

Error compile in tcolorbox with package polyglossia [closed]

Where is the error \documentclass[a4paper, x11names]{article} \usepackage[margin=2.5cm]{geometry} \usepackage{enumitem} \usepackage{array,tabularx,multirow} \usepackage{amsmath,amsfonts,amssymb} ...
7
votes
1answer
118 views

Personalize titles

I need to change the aspect of the chapter's title. I tryed tikz, using this other thread: Is there is a package so you can add text with visual effects like "WordArt" from "Word" ...
4
votes
1answer
38 views

part number alignment in exam class with tcolorbox

I have two questions on the following package combination of the MWE: First, how to shift part number/label while using tcolorbox? \documentclass[a4paper,12pt]{exam} \usepackage{tikz} ...
1
vote
1answer
57 views

How we can design our own boxed titles?

\begin{tcolorbox} \centering I am a fool..\\ I dont know How to make this box small as text has. \end{tcolorbox} I am using the above code to create boxed titles in my notes.. My output is ...
3
votes
1answer
36 views

Misaligned “Aboxed” block and incorrect text size

In the code below, my aboxed block is misaligned and also of a different size font than the normal text. Can you help me re-align the aboxed block with the above line and also correct the size of the ...
4
votes
1answer
59 views

Flipped box with tcolorbox

In the second box I tried to imitate the layout of the first box but with the title down. Obviously, the result is not correct. In fact, the result that I foresee is in the third box; but I do not ...
4
votes
1answer
298 views

Inspired beautiful box from Indesign

I found these beautiful box in Math ebooks which is created by Adobe Indesign, I tired mdframed, tcolorbox but I didn't try Tikz. So could someone create them using LaTeX please? ...
3
votes
1answer
60 views

What makes my array-like macro get contaminated

The following MWE is the simplified version of my project. \CreateMacro is used to create macros representing vocabularies. For example, \CreateMacro{Newton}{$F=ma$} creates \Newton with body $F=ma$. ...
0
votes
1answer
38 views

How do you change the border dimensions of tcolorbox

Given the following minimal working example: \documentclass{article} \usepackage[many]{tcolorbox} \begin{document} \begin{tcolorbox} foobar \end{tcolorbox} \end{document} How would one change the ...
3
votes
0answers
77 views

Override optional parameters of \newtcblisting from tcolorbox

This question follows the one I asked here. I would like to override the following custom listings command from the tcolorbox package and be able to have the following features implemented using ...
0
votes
1answer
41 views

description list with long label and wrapping run into the second label, and problem with \tcbline in tcolorbox package

This problem is related to this one Since long enumerate list is not acceptable in table, we have to live with list. Ulrike Fischer provide a frame work to attack this problem with package tcolorbox. ...
3
votes
1answer
61 views

How to avoid “overfull” warnings with tcblistings and parskip package?

Consider the following MWE: \documentclass{article} \usepackage{lipsum} \usepackage{tcolorbox} %%% this two following packages are used in the format I have to use \usepackage[parfill]{parskip} ...
1
vote
1answer
45 views

It is possible to define “styles” in tcolorbox listings? [duplicate]

I am writing a document where I use tcolorbox to list code. I would like to have a couple of commands to list code from an external file, and one (or two) environment for inline snippets. What I have ...
1
vote
0answers
27 views

tcolorbox, not displaying symbols in listings (using minted) [closed]

I have the following latex code \begin{ipythonnb} \begin{ipyin} A = np.array([[3, 2, -1], [2, -2, 4], [-1, 0.5, -1]]) b = np.array([1, -2, 0]) np.linalg.solve(A,b) \end{ipyin} \begin{ipyout} array([ ...
2
votes
1answer
103 views

lstlisting environment with caption on the first line separated with a dashed border

Still on my way to write my own LaTeX class file. My today's purpose is to write an environment similar to the result available here, in the Arch Linux Media Wiki. My question is deeply linked with ...
3
votes
1answer
57 views

Longtable in tcolorbox makes itemized lists unbreakable

Structure: Using tcolorbox to take advantage of page-breakable paragraph or list contents, I am trying to use a long table above this to align some summary information. But I am observing that if I ...
1
vote
0answers
57 views

Package transparent, tcolorbox and tikz incompability [duplicate]

I had a problem with transparency, it wasn't show in pdf output. I have a similar problem with some tikz picture, that were not visualized well. I noticed that the problem with this two package ...
1
vote
0answers
53 views

Box around one or multiple equations using tcolorbox [duplicate]

I want to put (1) a box around 1 equation inside an align environment, and also (2) a box around all equations in align environment. I'm already using tcolorbox and would like to use that. I have ...
1
vote
1answer
62 views

Equation wider than tcolorbox in twocolumn

I have a large equation I would like to fit within tcolorbox in a \twocolumn page without split it. Could you please help me to fix this? i tired even \begin{minipage}[c]{5in} but with no luck MWE ...