Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [tcolorbox]

{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 ...

2
votes
1answer
20 views

Adjusting the width of a tcolorbox to its content?

I want to embed tikzcircuits in tcolorboxes in a document; I am struggling to find a way of making the box behaving more or less like an fbox with respect to the width. I am solving the problem by ...
0
votes
1answer
27 views

Titles of \tcolorbox in different toc levels

I have several tcolorboxes in my document: \documentclass[10pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[most]{tcolorbox} \newtcolorbox[list inside=toc]{mybox}[1]{...
1
vote
1answer
22 views

Modify a particular posterbox from tcolorbox in a sequence

Here is an example of sequence with poster in tcolorbox: \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{poster} \usepackage{lipsum} \begin{document} \begin{tcbposter}[ poster = {...
2
votes
1answer
26 views

Center enumerate in tcolorbox

I have been trying to center an enumerate included in a tcolorbox and it does not work. My code is: \subsection*{Section Name} \begin{tcolorbox} \begin{center} \textbf{Heading)} Decription of ...
7
votes
3answers
884 views

Creating a nice-looking box without using minipage

I would like to create the following box and title without using minipage With : small box before Title Title with counter \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{...
4
votes
0answers
44 views

One tcbcolorbox with alternative color in different lines

\documentclass{article} \usepackage{geometry} \geometry{left=2.5cm,right=2cm,top=2.5cm,bottom=2.5cm} \usepackage{fontawesome} \usepackage{varwidth} % tcolorbox \usepackage[dvipsnames, svgnames]{xcolor}...
3
votes
4answers
64 views

Issue with opacity option in tcolorbox

The following \documentclass[10pt]{article} \usepackage[most]{tcolorbox} \usepackage{graphicx} \newtcbox{\mytransparentbox}{blank, on line, opacitytext=0.4} \begin{document} \includegraphics[scale=...
0
votes
1answer
25 views

No list with \tcblistof and getting error [on hold]

For my thesis i'm using the package [most,minted]{tcolorbox} to highlight code fragments. But for some reason i cannot have a toc of my code fragments... and keep getting following error: !incomplete ...
1
vote
1answer
62 views

Pandoc: Exporting Tikz Figures and Other Environments from Latex to other formats

How can I alter the answer from this question (which uses a lua-filter), so that it outputs tikz figures in a docx document, but also extracts content from non-pandoc friendly environments (as it does ...
2
votes
1answer
51 views

TikZ: Draw in the background of tcolorbox tcboxeditemize

Based on this question I would like to add a background around multiple tcboxeditemize environments from the tcolorbox package. In my MWE the tcboxeditemize rasters remains in the background and I ...
0
votes
1answer
34 views

Adding more space between words in tcolorbox

Here is the code: % Preview source code %% LyX 2.3.0 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[a4paper,...
3
votes
1answer
47 views

How to add label for referencing in this example tcolorbox

I am a new learner in LaTeX and want to add label for referencing to the below code done in tcolorbox. This program example was provided by @Gonzalo Medina in his improved version where both ...
0
votes
1answer
27 views

How to add label for referencing to customized newtcolorbox and body text font color change not working in case of page break

I am very new to LaTeX. I needed customized colourbox and got this excellent customization provided by @Gonzalo Medina . I have got this from here Create a color box? and just copy pasting the program ...
1
vote
1answer
41 views

Why I get huge space between the box to the image?

Here is the result: Here is the file: % Preview source code %% LyX 2.3.0 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \...
1
vote
2answers
60 views

How to customize color in tcolorbox having counter

I am new to the LaTeX. I want to customize tcolorbox for custom title with auto counter and background colour as per my choice say light red. Also I want to change the font colour of title and inside ...
1
vote
1answer
45 views

How to create a box title with the following format, height and width adjustable to title text using tcolorbox package?

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \begin{document} \definecolor{c1b1918}{RGB}{27,25,24} \begin{tikzpicture}[y=0.80pt, x=0.80pt, yscale=-1.000000, xscale=1.000000, ...
1
vote
1answer
44 views

Why the text at the box not in the center?

Look at the code below: % Preview source code %% LyX 2.3.0 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[...
1
vote
1answer
32 views

Passing label as argument for tcolorbox so that it is accessible by cleveref

I have recently started working with the fabulous tcolorbox package and have successfully been able to generate the boxes I need with the label as an argument. However, I want to be able to use that ...
0
votes
1answer
33 views

How do I return the normal ToC format?

I use a styled section format with titlesec (and mdframed, but it also happens with tcolorbox), and it change the style of the TOC. How I return it to the normal style? (see picture and file below) % ...
0
votes
1answer
46 views

How to put section at a title of colorbox and the text at the box itself?

As a continue to this answer: https://tex.stackexchange.com/a/226751/29476 I want to know if there is an option to make something like this: That the title will be the section number and name and the ...
1
vote
1answer
34 views

tcolorbox listings and percent sign

I'm trying to create a tcolorbox listing for a command that includes the percent sign. However, somehow that percent sign always switches the font to italics, and I have no idea why. Minimum example: ...
0
votes
2answers
46 views

Creating a Table with Varying Columns

I'm trying to create a table that looks like : but have no idea how to fiddle with the number of varying columns. e.g. "Term Plan" row has 1 column, week 17 has 2 columns, other rows have 3 columns. ...
3
votes
1answer
39 views

Including custom listings style in lower of two-part tcolorbox

I am preparing a tutorial for NetLogo, a programming language that does not have a predefined listings format. No problem to create one. However, I am trying to present the code inside a tcolorbox. ...
1
vote
1answer
52 views

Moving tcolorboxes inside beamer frames

Let's assume we have a tcolorbox in the following environment: \documentclass[17pt]{beamer} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{pgfkeys} % \...
3
votes
2answers
51 views

How to make overlay of tcolorbox span over multiple pages

I want to span two columns of (mainly) text over mutliple pages (to create a CV). I found a solution in How to make minipage spanning multiple pages which is almost exactly what I want to do. ...
2
votes
1answer
24 views

Get rid of doubled lines in tcbraster

When I tex the following, the lines have different heights (double the size if between two boxes) \documentclass[12pt]{article} \usepackage[fitting,raster]{tcolorbox} \begin{document} The brown Fox ...
0
votes
0answers
14 views

tcolorbox folding corner with shadow [duplicate]

In the manual of tcolorbox package on page 15 and 68 at the top they show yellow folded box, but if I am correct they did not explain how to make it. For example
5
votes
1answer
43 views

Dashed border but custom shape

I know that tcolorbox can have dashed border. However the stripes are rectangular. But is it possible to change the rectangles to parallelograms (45 angled) with inner and outer border as well, such ...
1
vote
1answer
57 views

Subsection in frame with tcolorbox package

Please help me though I have tried so hard! I added thesubsection to the frame header but was not. I want to subsection the subsection in the image below as an automatic, not manually! I will thank ...
0
votes
0answers
37 views

Note frame with tcolorbox package [duplicate]

How to create frames as shown below with tcolorbox package. Although I did learn about it but did not know how to create the begging you help me thanks!
1
vote
1answer
85 views

Do `most` options of tcolorbox still work?

In my distribution, the MWE fails to compile: \documentclass{article} \usepackage[most]{tcolorbox} \begin{document} Test \end{document} with the error message: This is pdfTeX, Version 3.14159265-2....
6
votes
1answer
84 views

Interference between `ragged2e` and `tcolorbox`: Additional spacing for centered bold text

When centering bold text in a tcolorbox using [halign upper=center], additional horizontal spacing occurs when the package ragged2e is loaded additionally. I guess this is unintended behavior. – Is ...
2
votes
1answer
73 views

tcolorbox + minted: a box always starts on a new page/column leaving a big empty space

I'm trying to write a command to insert a boxed listing that break across pages. To this goal I'm trying to use minted for prettyprinting the listing and tcolorbox for creating the boxes (but I've ...
2
votes
2answers
37 views

Using tcolorbox (or mdframed) to reformat standard floats (figure and table)

I have been trying to reformat the table and figure environments in a custom class file I am building. The idea is to put them in a box with a shaded background. I have been trying to accomplish this ...
1
vote
1answer
62 views

enforce total height of tcolorbox title

I have a few tcolorbox'es in my document and I want to make them all have title sections with the same height. But some of my titles have characters that go under the baseline and others don't. So, ...
0
votes
1answer
70 views

Loading tcolorbox with the minted option breaks tikzexternalize and results in compilation error with makeglossaries

I have a weird problem that has now been localised to either of the lines: \usepackage[minted]{tcolorbox} \makeglossaries{} in my preamble. I am using luatex with shell-escape enabled (for minted). ...
3
votes
1answer
41 views

Adding a custom title for each definition

I'm currently writing a thesis and would like to format my definitions nicely. This question helped me creating a nice layout for my definitions. The following code \documentclass{book} \usepackage[...
0
votes
0answers
45 views

I want to make a box like this chat bubble

I have typeset some chat app messages, like Facebook or QQ, but iwant some beautiful chat bubbles like this, could someone use tikz or tcolorbox make it
3
votes
1answer
53 views

Using tcolorbox to produce a box that looks like beamers block environment

I'd like to mimic beamer's block environment with tcolorbox because the latter seems more flexible to me. I have several box-style environments that I'll ultimately need to create. My first (failed) ...
3
votes
2answers
85 views

Making a box completely around a enum item

I want to make grey box around every enumerate item. Therefore I tried the following: \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{enumitem} \begin{document} \...
0
votes
1answer
42 views

Why does the former work but the latter doesn't?

The following MWE works well: \documentclass{beamer} \usepackage[most]{tcolorbox} \begin{document} \begin{tcolorbox}[title={This is a title},hbox] This is a body. \end{tcolorbox} \end{...
4
votes
1answer
88 views

inline tcolorbox with rotated title

I'm desperately searching for a way to recreate those really nice inline-tcboxes they used in tcolorbox manual for, as an example, emphasizing libraries' names. I found some topics about left-sided + ...
1
vote
1answer
55 views

A title for upper part and another for lower part of a tcolorbox

I need to define a tcolorbox with a title for the upper part and another for the lower part as in the image. But I can't find a solution to properly insert the fancy "POR QUE?" on the lower part of ...
0
votes
0answers
30 views

New position after objects are rotated by \rotatebox

The option "origin=lb" in the macro \rotatebox which comes frome the package graphicx, means the object will rotates by its left-hand bottom. So the "typeset-1 & typeset-2" in the following code \...
-1
votes
1answer
59 views

why this command don't work?

\tcbset{colback=white,colframe=black,coltitle=black,colback=white} \begin{tcolorbox}[breakable,title=Quantum Lyapunov Control Theory,title style={white}] %it will show errors . . . \end{...
1
vote
1answer
30 views

Problems setting up minted and tcolorbox to include source code and set title

For my PhD thesis, I am using minted package for source code listings. I'd like to have a custom command \mylisting something along the lines of \mylisting[Name in title]{filename of source code} or ...
3
votes
1answer
68 views

create Inline Boxes

I would like to create two boxes next to each other horizontally, each containing text. I'd like the border to be black and the background white. Here's my attempt at reproducing it \documentclass{...
0
votes
0answers
37 views

Minitoc doesn't show

I run the following code under OS windows 7 with TeXnicCenter but the minitoc doesn't appear Would someone please fix this problem \documentclass[a4paper,12pt,pdftext]{book} \usepackage[a4paper,...
1
vote
2answers
159 views

tcolorbox with title on the left side

How can I put the title of a box (with tcolorbox) on the left side (text rotated by 90°), like this? _______________________________ | | | | T | Lorem ipsum ...
4
votes
0answers
79 views

TASKS package issue with TColorBox: unwanted carriage returns

The package TASKS is very useful for horizontal lists. However, when using Tasks lists inside TColorBoxes, Tasks behaves oddly, adding carriage returns when not necessary. Is there a way to restore a ...