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
2
votes
1answer
39 views

Enclosing leaders by a border/frame

Following-up this answer, how can I edit the command \FillAnswerRules to enclose the leaders by a border/frame by using tocolorbox or mdframed so that I can get the same output of \CountAnswerRules? \...
3
votes
2answers
50 views

How to read tikz/pgf and tcolorbox manuals

When reading the tikz/pgf and tcolorbox manuals there are often lines of the form (these are just examples) /tikz/current point is local=⟨boolean⟩ /tikz/cs/radius=⟨dimension⟩ /pgf/number format/sci ...
0
votes
1answer
43 views

How to put a break in a tcolorbox table?

I am very new to LateX and don't understand the other posts on tcolorbox breaks. It all seems too complicated, I am unable to follow what they do. With pagebreaks it is so easy \pagebreak... I would ...
0
votes
0answers
33 views

Vertical space above align (not surrounded by text)

So I know of the fact that you should never begin a paragraph with display math if you want to avoid that weird space above your math. But in my case I have a box, and inside that box I want my ...
2
votes
2answers
55 views

Math inside title tcolorbox as an argument

\newtcolorbox{boxProblem}[2][sidebyside=false, lower separated = true]{ colback=purple!5!white, colframe=violet, colupper=violet!50!black, fontupper=\bfseries, fonttitle=\bfseries, label = problem #2, ...
1
vote
1answer
52 views

How do I get a text box with thicker, non-rounded solid corners?

I am looking in discussions, but I have not found, a solution to obtain a text box that has the characteristic of having solid corners, that is, a text box with fine lines but the corners of the four ...
3
votes
2answers
89 views

tcolorbox inserting indent after code box

(the commented lines will be used later but as we can see in MWE, they aren't related with the problem) Why is there a par indent after the code box? MWE \documentclass{report} \usepackage{lipsum} ...
0
votes
1answer
33 views

Display number in tcolorbox like the auto number in equation

I want to make a tcolorbox with a number. I currently have created a new command \newenvironment{mybox}{\begin{tcolorbox}\centering}{\end{tcolorbox}} I want to display numbering inside the ...
0
votes
1answer
48 views

Beamer box with image - how do I achieve this in latex?

I wish to have a coloured box with an encircled image at the top left(see pic). How do I achieve this in LaTeX for a beamer presentation?
2
votes
2answers
50 views

Attach boxed title to a theorem tcolorenvironment

Context : I wanted to create a colored box to make nice looking theorems. Using the tcolorbox package, I managed to do so, using the following code : \documentclass[12pt]{report} \usepackage[utf8]{...
0
votes
1answer
31 views

Fixing my exercise frame

Firstly, My english is not good so if there is any mistake, please let me know. I want to create a new environment in latex in order to make this frame But when the text in frame is too long, there ...
2
votes
1answer
51 views

\section{} within a tcolorbox

I'm working on a LaTeX template for an article appendix that will be used by a whole team. My current challenge is creating a color-filled box around \section{} headings, while maintaining the ...
1
vote
2answers
65 views

Classified ads with tcolor box

I am trying to make a classified ads paper in LaTex using tcolor box. I am new to this so please be patient with me. Here is a screenshot of what I am trying to emulate. Here is what I have been ...
2
votes
1answer
35 views

parbox=false not working in posterbox

tcolorbox internally uses parbox or minipages which means it does not respect paragraph spacing from parskip package. This can be changed by passing a parbox=false to a tcolorbox which forces it to ...
0
votes
0answers
35 views

tcolorbox: How to spread last posterbox in a column

Consider the example below from tcolorbox users guide. Is there an option to make box B to spread all the way down to the red surrounding border? I know this can be achieved with rowspan but that ...
0
votes
0answers
46 views

Box design with tikz or tcolorbox

I found this box template in the tcolor box document, but didn't know the design. Can you share the sample with me? or maybe help me design it myself. thanks
2
votes
3answers
71 views

Conditional yshift in \newtcolorbox

I'm currently writting a book in xelatex, and in the progress of creating a couple of highlight boxes, I've encountered a problem. Some boxes have titles and some doesn't have, because of that, the ...
2
votes
0answers
45 views

LaTeX: How can I change colors according to chapter number in Memoir?

I would like to change the color of some page elements (rules, headers...) depending on the chapter number, like first chapter, color blue, second, color green... and cycle after four chapters; this ...
1
vote
0answers
39 views

How can I use a minted listing inside a tcolorbox's top half *and* bottom half?

I'm creating reference documentation for a intro-to-programming class. As part of this, I'm going to have syntax definitions and examples of the syntax. To write this, I'd like to have LaTeX syntax ...
2
votes
1answer
60 views

Format the section heading

I would like to have the section headings formatted as follows (Please note the top-right corner is curved): I tried many things like : (1) using a tcolorbox - In this case, I cannot shift the left ...
0
votes
1answer
39 views

Cell text will not align with top using \multicolumn

I hope you guys can help me. I am trying to top align the cell text. But no matter what I do, the text will not align with the top. See my code and the result below. \begin{mytable}[label={tab:frame}...
0
votes
0answers
39 views

Fixed width for box using tcolorbox

How to set fixed width (50pt or any other fixed value) for box using tcolorbox. Please find MWE file below: \documentclass{book} \usepackage[most]{tcolorbox} \newtcbox{rhbox}{colback=red,colframe=...
2
votes
1answer
32 views

Defining optional arguments for `\newtcolorbox`

\documentclass[12pt,a4paper]{ctexart} \ctexset{ section = { name = {Week}, number = {~\arabic{section}} } } \usepackage{amsmath,enumerate} \usepackage[top=2cm,left=1cm,right=...
0
votes
1answer
44 views

How to add an macro below tcolorbox

How can I add an macro "Loi giai" which is bold and center below this tcolorbox and add contents after it (if needed). \documentclass[12pt,a4paper]{article} \usepackage[most]{tcolorbox} \begin{...
0
votes
1answer
34 views

Hiding title of tcolorbox

I have the code of tcolorbox as below \documentclass[12pt,a4paper]{article} \usepackage[utf8]{vietnam} \newcounter{dang}\setcounter{dang}{0} \renewcommand{\thedang}{\arabic{dang}} \newtcolorbox{dang}[...
1
vote
1answer
35 views

tcolorbox image not fitting

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage[a4paper, total={8in, 11.9in}, margin=0.75 in]{geometry} \usepackage[most]{tcolorbox} \usepackage{varwidth} \...
1
vote
1answer
60 views

Defined color not working in tcolorbox

I am using xcolor to define two custom colors and try to implement them in my tcolorbox boxes. MWE: \documentclass{article} \usepackage[dvipsnames]{xcolor} \usepackage{tcolorbox} \definecolor{myblue}...
0
votes
1answer
37 views

Section title with as subtitle as the title for tcolorbox?

To get a section title with a subtitle (where I also do not want the subtitle to show up in the table of contents) I've been using something like: \section[Title]{Title\\ \footnotesize{Subtitle}} ...
0
votes
1answer
61 views

SWOT Table with tcolorbox

I'm trying to adapt this SWOT table example to my needs. Everything is fine except two issues which I'm unable to solve: Re-centering the header text horizontally and vertically after removing some ...
2
votes
1answer
40 views

Divide a page into smaller parts with tcolorbox features

I want to have an A4 size paper, split it to 8 equal parts and each part have features of tcolorbox package. Using the codes for the other question on TeX.SE, I have prepared this, but the height of ...
0
votes
2answers
46 views

tcolorbox: problem with alignment of text

I have created 3 tcolorbox, one left, one right and one down. The idea is for the text to be at the left of the graph, at the right and below of the graphs ( I included the graphs so it can be better ...
0
votes
1answer
32 views

Insert vertical spacing after all \includegraphics

I'm using tcolorbox which recommends not using float environments like figure and table inside a box, and instead suggests directly using includegrapghics and tabular combined with \captionof. I ...
2
votes
2answers
71 views

Putting specific subtitle on tcolorbox

I want to put the "(2+2+2=6 points)" into a little subtitle card below the tcolorbox. Here is my minimal example: \documentclass[12pt,english]{article} \usepackage{tcolorbox} \tcbuselibrary{...
0
votes
1answer
59 views

How to make font sizes scale with paper size

I'm trying to create a poster using tcolorbox which has worked great but I noticed that I have done everything on a4paper paper size. When I change it to something like a1paper all the fonts are way ...
0
votes
0answers
40 views

Why tcolorbox crash with caption?

Any idea what is the use of: \usepackage[most]{tcolorbox} in simple explanation? This is because I need to include \usepackage[hypcap=false]{caption}, but it crash with \usepackage[most]{tcolorbox}....
2
votes
1answer
44 views

How to combine multiple tbox commands into one command

I have the following code, \documentclass{article} \usepackage{amsmath,amssymb,amsthm} \usepackage[most]{tcolorbox} \begin{document} \begin{tcolorbox}[enhanced, sharp corners, colback=white, ...
2
votes
1answer
61 views

how can I kept caption figure {\pie }in tcolorbox

How can I kept caption figure {\pie} in tcolorbox I want to put the pie in tcb but I have to delete \begin{figure}[h] & \end{figure} so the caption removed, any solutions please, Thanks. look ...
5
votes
1answer
69 views

How to move tcolorbox's boxed title to place in front of the box?

How to move tcolorbox's boxed title on foreground (move to place in front of the box)? As you can see in screenshot (red rectangle, my highlights), the grid is overlap the title, this behaviour is ...
3
votes
1answer
51 views

Tcolorbox parbox=false option breaks by height fill option

Tcolorbox parbox=false option breaks by height fill option \documentclass[]{article} \usepackage[most, many]{tcolorbox} \usepackage{lipsum} \begin{document} \begin{tcolorbox}[ parbox=false, height ...
0
votes
1answer
27 views

How to enlarge unused space of tcolorbox interior to the bottom of a page?

How to enlarge unused space of tcolorbox interior to the bottom of a page? \documentclass[]{article} \usepackage[most, many]{tcolorbox} \usepackage{lipsum} \usepackage[showframe]{geometry} \...
1
vote
0answers
76 views

Printing numbers in tcolorbox

I was able to solve a significant part of the problem, trying to alter the game header in this manner. The last problem is the handling number. How can I alter the header below to transform it the ...
1
vote
1answer
53 views

Breackable tcolorbox: wrong odd/even page recognition

Tcolorbox package does not corect recognize odd/even. A primer from here does not work correct any more for twosided documents \documentclass[]{article} \RequirePackage{changepage} \RequirePackage[...
1
vote
1answer
90 views

Highlighting aligned equation lines using tcolorbox

In my first box I've shown the three lines of math I want to display. I then wish to highlight the first and the last lines according to the design of box A and box B, seen below. Is it possible to ...
0
votes
1answer
77 views

Footnote outside theorem environment

I tried to add a footnote in a tcolorbox based theorem environment, which is showing right inside the theorem box. How to position footnote at the bottom of the page? \documentclass[a4paper]{article} ...
2
votes
2answers
79 views

Text around boxed/framed equation

I want the text closer to my equations, but the equations jump down a line. The equation box also insists on centring itself instead of sticking to the margin. Is there a way to automatically adapt ...
0
votes
0answers
36 views

Problem with the extension of the file which is used to save listings [duplicate]

I want to display a snippet of Python code as a colored framed box in a beamer presentation. Besides, I'd like to save the snippet in a file. The code below gets the job done: \documentclass{beamer} ...
0
votes
1answer
61 views

Numerator jumping outside fraction inside tcolorbox/hbox

What's going on with my fraction???? \documentclass[a4paper,12pt]{report} \usepackage[many]{tcolorbox} \tcbset{enhanced,boxrule=0.8pt,bottomrule=1.6pt,arc=0pt,auto outer arc,lifted shadow={1mm}{-1mm}...
4
votes
1answer
72 views

SVG as page layout in Latex

I know we can use parshape and the shapepar package to have customized paragraph shapes, but I wonder if it is possible to read an SVG file and use it as page layout? A possible solution might be to ...
0
votes
1answer
61 views

Changing “dot” to “dash” in “tcolorbox” package

I have created a box by using tcolorbox package that has been shown below: Now, I want to change “dot” to “dash”. How can I do it?
1
vote
0answers
37 views

Background color for stringstyle in lstlisting

I'd like to make a lstlisting style definition, where strings are highlighted with a background color, to make them stand out more. I'm not even sure it's possible, but let me explain. Here is an ...

1 2 3 4 5 26