Stack Exchange Network

Stack Exchange network consists of 175 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

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.

1
vote
2answers
29 views

Beamer: Onslides messes up tcbraster

I have issues with my beamer presentation: I want to have 3 boxes next to each other, they should first appear all at the same time and then I would specify when the boxes should appear. Without \...
0
votes
0answers
34 views

How to manually update to tcolorbox 4.2? [on hold]

I am compiling with a MacTex installation with packages managed by TexLive. There is a bug in the tcolorbox package that has been fixed in the latest release; v 4.20. I am in fairly urgent need of ...
0
votes
0answers
18 views

Conditionally add options to tcolorbox highlight math style

I have defined the following package: % Configuration \NeedsTeXFormat{LaTeX2e}[1994/06/01] \ProvidesPackage{eqbox}[2018/01/01 Boxed Equations] \RequirePackage{xcolor} \RequirePackage{pgfopts} \...
5
votes
2answers
85 views

tcolorbox: Potential bug with duplicate label for hyperref link

I noticed that a 'tcolorbox' with auto counter including the section number causes a warning in the log file and the respective hyperref links point only to the first occurence. MWE: \documentclass{...
4
votes
2answers
207 views

Coloring maths inside a tcolorbox

My TeX level isn't the greatest, I am trying hard to improve but I am always struggling. I would like to change the color of text inside a tcolorbox and that this color formatting survives a ...
1
vote
1answer
26 views

Chat bubbles within a twocolumn document

I'm trying to make a document with chat history and found a sample code here except for the twocolumn option in the documentclass. But the chat bubbles don't keep inside the column. Someone who know ...
0
votes
1answer
32 views

right align in itemize with different itemstep

i use itemize in posterbox. And space between items is different. When i add "\vspace*{xcm}, right alignment is changed. My MWE: \documentclass{article} \usepackage{tikz} \usepackage{tcolorbox} \...
3
votes
2answers
94 views

rotate text in posterbox

friends i have posterbox and i want to put text in this box. Please see image Minimal working example: \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{poster} \usepackage{tikz} \...
0
votes
1answer
34 views

Text shown at tcolorbox with image

I'm trying to put an image with spaces at the file name. There is a way to fix it? I try with this - enter link description here - but it's doesn't help :( MWE: \documentclass{scrartcl} \...
0
votes
0answers
28 views

Strange expand on tcolorbox

I don't understand why the following code fails with the error ERROR: File ended while scanning use of \thmt@collect@body. Indeed when I define before upper={\begin{thm}[my title]} it works, but ...
0
votes
1answer
26 views

xparse: forward empty optional argument

I'd like to use tcolorbox to call a theorem environment. My tcolorbox is supposed to ask for an optional title, and a mandatory label, so in the xparse specification I chose O{}m. Then, in the ...
1
vote
1answer
24 views

Can not break Tcolorbox

I have used tcolorbox as an item to highlight some content. It works fine in general. However, when the box gets big, instead of breaking between the pages, it simply moves to the new page. This ...
2
votes
1answer
57 views

Dynamic row spacing if total character is variable

I use datatool to get data and row spacing can change. Count word/character of Total character of (Text A + Text B) if: Total charater of (Text A + Text B) < 20 characters => set row space of ...
5
votes
2answers
102 views

How to add double frame in tcolorbox?

Is it possible to add double frame in a tcolorbox? Actually I am trying to design a chapter using titlesec and tcolorbox which has two borders. Inner border colour will be white ( same as the page ...
3
votes
1answer
67 views

How draw tcolorbox with shadow effect

I need to draw a rectangle with a shadow effect with color. Please help Actual result Expected Result The following is my code please help \documentclass{article} \usepackage{lipsum} \...
9
votes
1answer
132 views

How to use lstlisting with tcolorbox?

I want to insert lstlisting inside a tcolorbox which must has a title and title can be hidden whenever I need, also it's top right and bottom left corner will be rounded something like this: I know ...
2
votes
2answers
33 views

Problem with Counters and Cleveref

I like using amsthm for my theorems, etc, but to highlight their importance, I like exercises to be in tcolorboxes. I want the exercises in the boxes to share the same counter as my theorems. I ...
0
votes
1answer
30 views

Colorboxes within in Paracols at the end of the page

I am currently implementing a dynamic PDF-creator. Therefore I need to be the last two columns of the paracol env. always at the end (bottom) of the page. Is there any way which achieves this? It ...
0
votes
0answers
35 views

How to make groups equal height after break …?

\documentclass[12pt,a4paper]{book} \usepackage[vmargin={0.6cm,0.6cm}, hmargin={0.6cm,0.6cm}]{geometry} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{makeidx, marvosym, ...
1
vote
0answers
31 views

capture=hbox inside newtcblisting doesn't work

I can include a minted listing inside a tikz node using newtcblisting from the tcolorbox package. However, when I do that it takes all horizontal space available, because the default is to use ...
2
votes
1answer
40 views

How to insert theorems to tcolorbox?

I trying to insert a theorem to tcolorbox without title. Here is MWE (with LyX): % Preview source code %% LyX 2.3.2-2 created this file. For more info, see http://www.lyx.org/. %% Do not edit ...
0
votes
0answers
22 views

standalone: compiled child file tex displayed pages different with compilled parent file tex (main.tex)

My Main file hat ex one file: child.tex And i \usepackage{standalone} for begin/end{document} in child tex file MWE: 1x/ Main.tex \documentclass[12pt]{article} \usepackage[a5paper,landscape,left=1....
1
vote
1answer
67 views

tcolorbox: Vertically center title box

I'd like to vertically center the title of a box on the top rule of the box. Unfortunatley I can't seem to find a way to calculate the height of the title box dopending on the title text and margins. ...
0
votes
0answers
60 views

Mimic InDesign Chapter Style

In our attempts to convince friends to use (La)TeX, one of them asked if it is possible to create a document like this one : The code for boxes has been discussed in this page and the result is ...
3
votes
1answer
36 views

change code of newtcolorbox to posterbox (tcbposter)

i want to use beautiful box in link: Box with fancy colors In this post, this code is definited by newtcolorbox. Can you transfer this code to posterbox, so i need to create some box: different title,...
2
votes
2answers
45 views

wrong Notepad when use \node and \tikz

i want to resize and move Notepad from link: poster-layout: background and boxes and link Change width, height of Notepad Minimal working example: \documentclass{article} \usepackage[most]{tcolorbox}...
0
votes
2answers
40 views

Regular arrangement of tcolorboxes on a beamer slide

I would like to have a regular arrangement of 4 identical tcolorboxes on a slide. Here is my code: \documentclass{beamer} \usepackage{tcolorbox} \begin{document} \begin{frame} \tcbset{width=(\...
1
vote
0answers
20 views

Problem defining a fancyvrb verbatim environment within tcolorbox

I want to define an environment for verbatim text using fancyvrb functionality, but within an entitled frame drawn using tcolorbox. Here is an example: \documentclass{article} \usepackage{fancyvrb} \...
1
vote
0answers
25 views

savenote with tcolorbox, numbering problem

I use tikz-boxes and tcolorbox and I want to have the footnotes outside of the boxes at the bottom of the page with the same numbering with the others. To sum up, I want the tikz or tcolorbox ...
1
vote
0answers
30 views

savenotes problem

I use tikz-boxes and tcolorbox and I want to have the footnotes outside of the boxes at the bottom of the page with the same numbering with the others. To sum up, I want the tikz or tcolorbox ...
0
votes
0answers
27 views

How do I make the page break occur in the following document, with \minipage and \tcolorbox

\documentclass[11pt]{book} \usepackage[top=1cm, bottom=1cm, lmargin=3cm, rmargin=1cm]{geometry} \usepackage[english,spanish]{babel} \usepackage[...
0
votes
1answer
46 views

footnote outside tikzbox and tcolorbox

I use tikz and tcolorbox for theorems. Also I want footnotes outside of the boxes, at the bottom of the page and with the same numbering like the others. I want something like this, but with the ...
1
vote
1answer
80 views

Move item right or left

I use texmarker with documentclass = article. How can i change/move element itemize (a,b,c,d,e) to the left or right. Thank so much. \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc}...
1
vote
1answer
29 views

How to create numeric columns with bars in table

I wonder how could the following columns be created in (La)TeX for a table that has fixed/known column widths. I've been tinkering with tcolorbox but I couldn't find a way to make the text lay over ...
1
vote
0answers
30 views

Conditionally include a line based on an option with pgfpackages

I am trying to design a small package, mostly for test purpose. Currently the package looks like this: % eqbox.sty \NeedsTeXFormat{LaTeX2e}[1994/06/01] \ProvidesPackage{eqbox}[2019/01/01 Boxed ...
1
vote
1answer
29 views

Modify distance of enumerate item in tcolorbox

i want to add line (A) and change distance between rows (B) My code \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[margin=1in]{geometry} \usepackage{tcolorbox} \begin{...
0
votes
0answers
26 views

Tcolorbox Box continue style

How to insert below space of "Continued" when box breakable into the odd page, at same time top space should not vary in the top of even page Below is tex code: \documentclass{book} \RequirePackage{...
2
votes
1answer
35 views

Shaded surround Boxes with margins

How to set shade surround boxes in the left right and bottom margins in tcolorbox, I tried lot of options in tcolorbox using borderline, leftrule, etc. which is not worked to me, please help us how to ...
3
votes
1answer
76 views

Why I don't get the wanted width of tcbox?

Here is a MWE: \documentclass{scrartcl} \usepackage[svgnames,x11names]{xcolor} \usepackage{fancyhdr,tcolorbox} \pagestyle{fancy} \cfoot{\tcbox[colback=Khaki1!25!white,colframe=DarkGoldenrod2!75!black,...
10
votes
1answer
137 views

Why does overlay work only on the first tcolorbox?

I'm trying to create a customized tcolorbox with some TikZ code in the overlay option. But it works only the first time I use my new box. What am I doing wrong? \documentclass{book} \usepackage{...
0
votes
0answers
40 views

Tcolorbox breaking issues

How to insert two line space above triangle symbol while splitting boxes(verso pages alone), vertical spaces no needed even page(verso page), triangle symbol should be odd pages alone? \...
0
votes
0answers
61 views

Tcolorbox source outside of box

How to insert source outside of boxes using tcolorbox, in my case box splitting as many pages. MY MWE: \documentclass{book} \RequirePackage{lipsum} \RequirePackage[breakable,hooks]{tcolorbox} \...
1
vote
1answer
58 views

How to make a line break at the title of the parts?

As a continuation of this question: How to center a tcolorbox at a part title at KOMA-script article, if you see the But note of this answer this solution is good only if I don't break lines, i.e., I ...
0
votes
1answer
41 views

How to center a tcolorbox at a part title at KOMA-script article

I'm trying to center the part title. The is the MWE: % Preview source code %% LyX 2.3.2-2 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what ...
1
vote
0answers
51 views

Tcolorbox continued page odd page height

We facing issues in tcolorbox that placed continue icon odd pages alone, now issues is that last line of odd pages and symbol base to base needed more vertical space (two line space needed approx.) ...
5
votes
2answers
105 views

Cross out words with overlapping to nearby words

I have figured out how to add a cross over words with tcolorbox \documentclass{article}\usepackage{xcolor} \usepackage[most]{tcolorbox} \begin{document} Of course, presenting this solution would be ...
6
votes
1answer
150 views

Tcolorbox as an item in list environment

I have used tcolorbox as an item to highlight some content. It works fine in general. MWE: \documentclass{article} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage{adjustbox} \...
1
vote
2answers
72 views

Extra interline spacing in two sided mode with scrlttr2, and tcolorbox environment redefining quoting environment

While experimenting with two sided settings in scrlttr2 while using quoting in combination with tcolorbox, I came across an oddity. The following example shows interline spacing in text outside the ...
0
votes
1answer
45 views

attach boxed title: blank title to hand write

Latex friends, I use tcolorbox and need "Blank field" in title and i will hand writing into this Field. \documentclass[11pt]{report} \usepackage{caption} \usepackage{tikz} \usepackage[many]{...
2
votes
1answer
43 views

center vertically the content and absolute position of tcolorbox, tcbraster

I would like to create a tcolorbox, but now I need your help: Centering vertically the content Absolute position of tcolorbox: when I change position x or y My minimal code: \documentclass{article}...