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 output. Another common use case is the setting of theorems. The package supports saving and reuse of source code and text parts.

Filter by
Sorted by
Tagged with
1 vote
1 answer
91 views

Overlaid tcolorboxes with tcolorbox 5.1.1

I've had a problem with tcolorbox 5.1.1 : sometimes the boxes are superimposed. All is working fine with tcolorbox 5.0.2. MWE : \documentclass[DIV=45,landscape,a4paper,headinclude=true,footinclude=...
user avatar
  • 705
0 votes
0 answers
28 views

Is there a way to get hyperlinks in Change History using the tcolorbox documentation library?

When I create documentation using doc the page numbers in my Change History become hyperlinks. That doesn't happen when I use tcolorbox's documentation library. Is there a way to get page numbers to ...
user avatar
0 votes
0 answers
26 views

Warnings from footnotes within tcolorbox with varwidth

I'm getting various warnings when adding footnotes within tcolorbox with a varwidth, and even though the file compiles fine, i'd like to understand the reasons behind these. From Overleaf: Argument of ...
user avatar
2 votes
2 answers
51 views

Vertical alignment within tcolorbox using varwidth

I'm using tcolorbox to have a "warning" box. I'd like the "warning sign" to be at the very top of it, but it's not achieved even by using the [t] option of the varwidthenvironment. ...
user avatar
0 votes
0 answers
17 views

Always align environments on top of page

I am working with exam class, and I would like to create my own environment to hold the questions as per the code below: \documentclass[twosides,11pt]{exam} \usepackage{geometry} \geometry{letterpaper}...
user avatar
1 vote
1 answer
15 views

How to skip newtcblisting from numbering if no title is provided

I have a custom newtcblisting defined, with an optional title. I would like to keep on the \lstlistoflistings only the ones with titles on it (this also affects numbering). Also, i have that unwanted ...
user avatar
1 vote
3 answers
42 views

Tilde character spacing too large while using fractions [closed]

I am facing a strange issue while using \tilde option in LaTex : I keep having a very large space between the tild character and the letter related to like this (in the second line) : The fact is ...
user avatar
  • 185
6 votes
2 answers
303 views

How to define new key properties in l3keys

From interface3.pdf, we can see l3keys has provided several key properties such as .code:n, .tl_set:N, .usage:n. But I don't know how to define a new key property. At this time, my code is like this: \...
user avatar
  • 8,650
0 votes
1 answer
48 views

tcolorbox overflowing text when using parbox=false

I have the problem that when I add parbox=false to the options of tcolorbox, the text within the box is not breaking properly. Do you have an idea what might be the issue? Here is the code: \...
user avatar
  • 103
0 votes
0 answers
36 views

Sidebox with tcolorbox

I'm searching for a package, that can produce an overlay colorbox that goes to the right side and it would be still possible to right on the left side. With the package tcolorbox and the option ...
user avatar
0 votes
1 answer
83 views

Most efficient way to fill an area under a curve in TikZ

I would really like to have a simple explanation to how the path and fill functions work in TikZ. For instance, I don't know why I am unable to fill the whole area under the curve despite putting a ...
user avatar
  • 185
1 vote
1 answer
32 views

How to redefine the same command differently over multiple theorems

i was wondering if there was a way to renew the emph command for each new newtcbtheorem you define. I have the following code already, adapted from an older solution by user egreg. The goal is to ...
user avatar
0 votes
1 answer
17 views

tcbset error with optional color arguments and `attach boxed title`

i'm having a issue with tcolorbox involving tcbset, newtcbtheorem, optional color arguments and attach boxed title to .... The error is the following : Package xcolor Error: Undefined color `visible'. ...
user avatar
0 votes
3 answers
107 views

How can I have two different background colors in one tcolorbox title?

Basically, I am defining a tcolorbox and I want the title of the box to be of the form "Example X.XX Name of the example", with "Example X.XX" having a colored background and "...
user avatar
1 vote
0 answers
37 views

Very slow compilation when biolinum, tcolorbox's listings library, and multiple listings' dialects involved

The compilation of the following MCE is very slow: about 14 second on my “normal” computer. (Of course, my real use case does load different dialects, not the same one several times.) \documentclass{...
user avatar
0 votes
3 answers
80 views

Drawing a customized frame using tcolorbox or tikz

I am trying to draw this (it should adapt to text width and height). I would like to use either tcolorbox or tikz. Sorry for not providing any MWE, I have no clue how to start. Thank you!
user avatar
0 votes
1 answer
60 views

A practical way to color pairs of brackets [duplicate]

I would like to find an option in order to color automatically pairs of brackets because I am starting to have a very long equation (that is splitted in two lines) and I was wondering if it was ...
user avatar
  • 185
0 votes
0 answers
28 views

Segmentation code in tcolorbox does not work when a box breaks [duplicate]

I want to make a box with a problem and an answers as below. When a box is unbroken, I can make this by using "segmentation code". Otherwise "segmentation code" is ignored, then ...
user avatar
0 votes
1 answer
50 views

Centering a text while using wrapfigure

I would like to ask why it is not possible to center a text/equation just after using a wrapfigure that allows to create a customized box. For instance, I would like to avoid to obtain this ...
user avatar
  • 185
0 votes
1 answer
29 views

Why is some vertical space added around text in a tcolorbox while textcolor or itemize are active?

If I remove the textcolor specification (and the corresponding 2 curly braces), the useless space around "someItem" disappears. If I replace the "\begin{itemize} ... \end{itemize}" ...
user avatar
  • 114
0 votes
1 answer
65 views

Theorem with tcolorbox

Please how to write "name of theorem" behind " نظرية" \documentclass[12pt,a4paper]{book} \usepackage[arabic]{minitoc} \usepackage[most]{tcolorbox} \usepackage[pdfstartview=FitH,...
user avatar
  • 541
0 votes
0 answers
24 views

before skip and after skip only for text with tcolorbox

I want to keep the same vertical space between boxes and text/other boxes. If I set before skip=0.3cm the spaces between boxes add up and create a gap. MWE: \documentclass{article} \usepackage[utf8]{...
user avatar
  • 145
0 votes
1 answer
40 views

how to set value of an option by the value of another option in tcolorbox

In the following example, I want to calculate/set the value of leftright skip automatically. How to do it? \documentclass{article} \usepackage{tcolorbox} \begin{document} \begin{...
user avatar
  • 2,355
5 votes
2 answers
150 views

tcolorbox inside tabularray leading to [0]s

I am creating a program that produces .pdf files based on .xlsx input through a .py GUI with .tex files. So far, in order to create the respective .tex file, I have used Overleaf. However, now that I ...
user avatar
  • 51
1 vote
2 answers
45 views

Lost bullets in a custom environment

I have defined two custom enumitem environments with a grey background. The first one is for an inline itemize and a second one is for a normal itemize. The second one lost the bullets and I wonder ...
user avatar
  • 111
0 votes
2 answers
63 views

drawing colored balls in urn

I want to draw and add these two boxes in my latex code my code is \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath,amssymb,amsfonts,tikz} \usepackage[paperheight=...
user avatar
  • 37
0 votes
0 answers
44 views

How to make two environments "stick together"

So I have a theorem and proof enviroment defined as follows: \documentclass{article} \usepackage[dvipsnames]{xcolor} \usepackage{tcolorbox} \usepackage{hyperref} \usepackage{cleveref} \tcbuselibrary{...
user avatar
  • 1
2 votes
1 answer
67 views

Tcolorbox without a toprule

Using tcolorbox I want to create a box that has now inner toprule. With the options below, there is still a line visible. Also the body block clashes with the frame. Do you know how to fix that? \...
user avatar
  • 35
0 votes
1 answer
34 views

Positioning of upper part in tcolorbox

I have some trouble with the package tcolorbox. I want the pie chart icon to be larger, appear at the beginning of the box and be horizontally centered instead of vertically centered. In my MWE the ...
user avatar
8 votes
2 answers
149 views

tcolorbox calculation of the length of the title gets wrong for 10 and 100

I use tikz and tcolorbox to create boxes for theorems. I calculate the length of the title in order to cut the frame. Everything works until the counter gets to 10 or 100, the calculation of the ...
user avatar
  • 145
0 votes
3 answers
59 views

How to determine if an argument in tcolorbox is empty?

I'm defining a tcolorbox environment with xparse library. \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{xparse} \DeclareTColorBox[auto counter, number within=section]{mybox}{g} {...
user avatar
  • 1,143
3 votes
2 answers
54 views

Adjusting the position of a box with tcolorbox

I have already asked a similar question but I think that my request was unclear. I have created a box using tcolorbox and I want to adjust it in order to fit the length of my "normal" text (...
user avatar
  • 185
0 votes
1 answer
37 views

How to adjust a box position with tcolorbox

I would like to adjust the position of a box created with tcolorbox by respecting the values of the horizontal margin on each of the two sides. For instance : I would like to avoid the box to appear ...
user avatar
  • 185
0 votes
1 answer
75 views

Creating a box surrounded by text in Tcolorbox

How is it possible for me to put a box of adjustable size surrounded by a text in a latex document ? For instance : my inspiration is from the yellow boxes in this image : \documentclass{article} \...
user avatar
  • 185
0 votes
1 answer
62 views

Creating 2 boxes side by side with tcolorbox

I want to create 2 boxes side by side (image below) in order to have the red box on the right of the blue one : I wrote this code but I don't know how to do it (I am just specifying the width to fit ...
user avatar
  • 185
1 vote
1 answer
26 views

\crefname with multiple language definitions

I am making a LaTeX template with 2 languages, and use \selectlanguage{english} to set the document language after \begin{document}. This works fine for the cleveref package, except that I have made a ...
user avatar
  • 1,022
2 votes
1 answer
50 views

ArXiv compiler adding additional margin to tcolorbox

I'm trying to compile the following code on arXiv, involving a tcolorboxenvironment which wraps an existing environment like quote in a tcolorbox: \pdfoutput=1 \documentclass{article} \usepackage{...
user avatar
0 votes
0 answers
35 views

tcolorbox: several row heights at tcbitemize

I have a whole-page tcbitemize-structure and in that there are some rows, that are higher or maybe less high than the others. What do I have to set that the height adapts to the content? The box with ...
user avatar
  • 6,323
0 votes
0 answers
22 views

tcolorbox: two column scheme, number of raster rows

I need a whole-page-structure like this: With several items in a left and in a right part, in this order (left: L1, L2, L3,... and right: R1, R2,...). That this works, I have to set the number of ...
user avatar
  • 6,323
0 votes
1 answer
55 views

tcolorbox vertical alignment title changing

mdframed always creates bad breaks, I tried to solve this and read about people saying it is not supported anymore and that tcolorbox is a better solution. I recreated my theorem boxes with tcolorbox ...
user avatar
  • 145
0 votes
0 answers
62 views

How to make content fill the height of two column tcolorbox

I have a two column tcolorbox and I am trying to make the content in the right column vertically expand to have similar height with the content of the left column. I tried adding \par\vfill or \par\...
user avatar
  • 1
0 votes
2 answers
80 views

Tabularx multicolumn

Hello this is my table: \documentclass[12pt, oneside,titlepage]{book} % add a4paper \usepackage[italian]{babel} \usepackage{geometry} %\geometry{a4paper, top = 2cm, right = 2cm, left = 2cm, bottom = ...
user avatar
  • 3
1 vote
2 answers
69 views

adjust text in itemize environment in a tikz node

I am trying du align my text of the items in the itemize environment in the tikz nodes. I also tried to use the topsep parameter but it didn't work out as I thought. The text should be on the top of ...
user avatar
  • 249
0 votes
0 answers
33 views

get value of tcolorbox options

I tried to get value from tcolorbox's option as the following example shows, but failed. Am I missing something? \documentclass{article} \usepackage[most]{tcolorbox} \begin{document} \begin{tcolorbox}[...
user avatar
  • 2,355
0 votes
0 answers
26 views

tcblisting box w/ minted shows incorrect listings

When using one of the tcblisting boxes for code and comments with minted, I often have problems getting the code snippets to show up. Previously, I used listings and had no problems, but the second I ...
user avatar
  • 163
2 votes
2 answers
119 views

tcolorbox and pause

I have problems using \pause inside a tcolorbox with the option \setbeamercovered{transparent}. Doing so results in the order of uncovering to be messed up. For instance, when using an itemize inside ...
user avatar
  • 205
1 vote
0 answers
51 views

<replace> of “literate” option still on in tcblisting environment of tcolorbox

I set @ and | as <replace> of the literate option(from the package listings), and use it in tcblisting(from tocolorbox). They work all right except that in the text part of tcblisting, @ and | ...
user avatar
  • 2,355
0 votes
0 answers
27 views

How to control option values in nested tcolorbox

I want to construct nested tcolorboxes by a macro who has an optional argument by which options of both inner and outer boxes are set. That is to say, how to control/change option value of outer box ...
user avatar
  • 2,355
0 votes
1 answer
87 views

How to get a tcolorbox with only frame

I want to construct a pure framed box (which is like the typeset of \fboxsep0pt\fbox{\parbox{\textwidth}{...}} with tcolorbox. This box has not any layout, except the frame whose width is 2pt. I'd ...
user avatar
  • 2,355
0 votes
1 answer
52 views

Tcolorbox breakable with different styles and rounded corners

Let's take the following MWE: \begin{tcolorbox}[title=Remark,arc=10pt,breakable,drop lifted shadow, skin=enhancedlast, skin first is subskin of={enhancedfirst}{arc=10pt,no shadow}, skin ...
user avatar

1
2 3 4 5
40