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

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

1
vote
1answer
25 views

tcolorbox options in nested style fail to work

Please see the picture and code for my question. \documentclass{article} \usepackage[most]{tcolorbox} \begin{document} % define a new style named selfsetcontainer by container/.code \...
1
vote
0answers
27 views

Same item indent for flushleft inside tcolorbox

I want to use itemize (or enumerate) where some items use an environment that basically amounts to flushleft inside a tcolorbox. They get another indent for the item marker, as seen for #4 here. I can ...
-2
votes
1answer
37 views

Bottom and and top rule when box break using tcolorbox package

Here I want box breaking with continued text and top and bottom rule when its breaking to next pages. Could you please help in this case. Here I attached the required output image. \documentclass{...
0
votes
0answers
23 views

How to write a \dummybox command? [closed]

I would like ta have a command with two parameters (width and height) to create provisory dummyboxes in beamer using tcolorbox. My MWE is here: \documentclass{beamer} \usetheme[width=.185\...
15
votes
3answers
1k views

How to make boxes like these?

I'd like to have custom commands for making boxes that look like the Wolfram|Alpha entities in Mathematica notebooks: \LinguisticAssistant{france} \Entity{France}{country} I've done the work of ...
1
vote
1answer
49 views

Why does a definition of macro containing multi raster column n/.style fail in \tcbset of tcolorbox

I make up a macro \allcw which contains some definition of raster column width style like this: raster column 1/.style={width=2em},raster column 2/.style={width=6em},raster column 3/.style={width=12em}...
1
vote
1answer
37 views

Unwanted newline after a tcolorbox

How to avoid new line jump after each tcolorbox ? \documentclass[10pt,a5paper,landscape]{article} \usepackage{pgffor,luacode,array,tcolorbox,bm,geometry} \geometry{margin=1.5cm} \pagestyle{empty} \...
3
votes
2answers
110 views

Getting errors while trying to box a colored text + math with less than 6 lines of code

First time Latex user here I am trying to box a text plus math using the following code \documentclass[]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{xcolor} \begin{document} \...
0
votes
0answers
23 views

How do I get tcolorbox to start at the current location

I am using tcolorbox to create framed text in a multicols environment. Even though my frame is defined as breakable LaTeX tries to start frames at the top of a column which can result in very awkward ...
1
vote
2answers
71 views

I want to change the straight red line in the code bellow to winding line

How can I create a windling line like in the picture? \documentclass[10pt,a4paper]{article} \usepackage[many]{tcolorbox} \usepackage[tikz]{bclogo} \usepackage{mathtools,systeme,amssymb,amsfonts,...
1
vote
1answer
35 views

How to add a text box in table of contents

I want to insert a text box below the title in the Table of Contents, as in the picture below: I tried to use a \tcolorbox in \addtocontents but I got an error.
0
votes
1answer
25 views

Error with ifthenelse

The code \newcommand{\variableBackgroundColor}{% \ifthenelse{1=1}%\(\boolean{Colle} \OR \boolean{DM}\)} %then {black!10!white} %else {white} } \tcolorboxenvironment{private_exo}{boxrule=...
1
vote
1answer
19 views

Additive space in the lower part with tcolorbox

Using the tcolorbox package to produce exercises for a textbook, I use the option invisible to let space for students for writing their solutions. In practice, the students need more space to write ...
0
votes
0answers
29 views

How to add a background color to an environment

I would like to add to an environment (called exo) a background — without changing anything of the layout, if possible. I tried \tcolorboxenvironment{exo}{boxrule=0pt, ...
2
votes
1answer
65 views

Help to reproduce this box?

I'm trying to reproduce this box but with a title box placed on the top right and slightly rotated. I am not satisfied with the results: the right and left border rules are not very parallel and the ...
1
vote
1answer
31 views

Help lines only in the lower part with tcolorbox

Using the tcolorbox package to produce exercises for a textbook, I use the option invisible to let space for students for writing their solutions. Now I want to use the help lines in overlay commands ...
1
vote
1answer
18 views

Cancel the modification of an environment by `\tcolorboxenvironment`

The command \tcolorboxenvironment can modify an environment to change the way it appears and add around it some graphical elements (background color, etc.) From the doc: \newenvironment{myitemize} {\...
3
votes
1answer
124 views

How do I set a background color and font for inline verb text?

I wish to customize the verb command such that I can customize the font and color, as well as set a rounded colored rectangle as background. I found this in the Tcolorbox manual: \DeclareTotalTCBox{\...
2
votes
2answers
98 views

help to create these environments (tcolorbox or tikz)?

I'm trying to create these environments but without much success ... I wonder if it will be better to create it with tikz or if it is easier to customize the title of a tcolorbox and rotate it a bit ? ...
-1
votes
1answer
51 views

Parallel box with different style in tcolorbox

with many help in this forum, i was created one box with box inside. i want to embed 3 boxes from link to my box: Varying Headerbox Color in baposter My box is attachment. Thanks \documentclass[...
0
votes
1answer
20 views

tcolorbox, lstlisting has hanging indent by default even for TeX source?

MWE: \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{listings} \tcbset{ codefullblock/.style={ listing only, listing options={ language=TeX, style=tcblatex, texcsstyle=...
2
votes
2answers
101 views

Create Page layout with beautiful boxes/tcolorbox

from this topic: Inspired beautiful box from Indesign. Now, i want create page layout with differentboxes like attachment image. Use tcbposter if possible or other solution. Thanks This boxes code: ...
3
votes
1answer
43 views

Text in tcolorbox by using new enviroment

how can I insert a text line under the picture? If I try to take a text after \includegraphics[...] it goes wrong. \documentclass{article} % Standard Packages \usepackage[utf8]{inputenc} \usepackage[...
1
vote
1answer
76 views

alternative box style: table and curve

i see code in this forum and have a box "AAAA". now i want create box BBBB & CCCC with other style and same curve. BBBB box: add B1/B2/B3 box CCCC box: rotate "header" but don't rotate text ...
1
vote
1answer
81 views

Three box side by side - tcolorbox

i want to create 3 box side by side like attachment image. Please help My code: %\documentclass[a4paper]{article} \documentclass[a4paper]{book} \usepackage{amsmath,amssymb}% pour les maths \...
0
votes
3answers
38 views

Correct vertical spacing correction for AMS multline within tcolorbox?

My objective is to put a tcolorbox around one or more AMS multline environment(s). However, there is extra space above the first equation. Presumably I'm running into an issue like this. I have not ...
2
votes
1answer
39 views

Box with Semicircular Parshape in a Savebox

This question is related to Box with Semicircular Parshape at Top and Bottom. Here I am trying typesetting the top portion into a \savebox using a semicircular \parshape in the MyRoundedBox* ...
11
votes
2answers
139 views

Box with Semicircular Parshape at Top and Bottom

I am trying to design a box that has a semicircular parshape at the top and bottom as shown here: If the text is small enough then this is intended to shrink to a circle of the given \Radius (and not ...
0
votes
1answer
57 views

Header Exam package

I am try make example header in picture exam class with minimal \documentclass{exam} \usepackage{tcolorbox} \usepackage{graphicx} \usepackage[export]{adjustbox} \begin{document} \begin{minipage}{3cm}...
1
vote
2answers
32 views

tcolorbox inside strip inserting vertical space where it shoudn't

I have a two column book and I want to have a simple breakable tcolorbox that spans the whole page. However I've found that a lot of vertical space is being inserted where it shouldn't be. Here is a ...
3
votes
2answers
48 views

Block with title on the same line as content

I'm looking for a block environment with title on the same line as content. Something like this but with possibility to set a different background color for the title, in order to get something like ...
2
votes
1answer
44 views

How to set different length for different borderline of a box using tcolorbox?

I would like to create box of example using tcolorbox as the picture below: and so far this what i got Here is my code : \documentclass[justified]{tufte-book} \usepackage[most]{tcolorbox} \...
2
votes
1answer
27 views

Trouble with newtcolorbox title positioning and optional arguments in .sty file

I'm trying to recreate this info box, but I'm having trouble making optional arguments for the title of the box and the position of the title. This is what I have so far. Aesthetically it is almost ...
1
vote
0answers
56 views

How to use tcolorbox with ieeeaccess.cls? [duplicate]

Whenever I try to use tcolorbox with ieeeaccess.cls, the main title and section topics disappear!! anyone know what the problem is? Thank you in advance. Here, without using tcolorbox. Here, using ...
1
vote
1answer
28 views

Strange paragraph formatting using tcolorbox and wrapfigure

First of all, my apologies for the quite large MWE; I tried to reduce it to the minimum but, given that the problem occurs quite randomly, it is difficult to maintain it. Given the following MWE, ...
0
votes
0answers
34 views

Controlling vertical space after tcolorbox

I'm creating some empty boxed using tcolorbox in a \begin{tabularx}{\textwidth}{X X} {\raggedleft \begin{tcolorbox}[colback=white,enhanced jigsaw,sharp corners,width=4.1cm,grow to ...
1
vote
1answer
29 views

Line in margin of page alongside some content

I would like to mark some parts of my document by addign a wide line in the margin, ideally in a fashion like this: preceeding text \begin{sideLine} Text \begin{float} \end{float} more text \...
0
votes
0answers
33 views

Putting definitions in color boxes

I've found a awesome document (doing some research in Model Theory). I would like to know how I can do those color boxes for definitions, theorems and other stuff. Thanks a lot!
0
votes
0answers
33 views

How can I get a figure environment inside a tcblisting?

Consider this MWE \documentclass{article} \usepackage{graphicx,etoolbox} \PassOptionsToPackage{final}{listings} \usepackage[% skins ,listings ,breakable ,xparse ,documentation ]{tcolorbox} ...
2
votes
1answer
47 views

How to center horizontally a tcolorbox in the page?

I would to center a tcolorbox in the page (or column, etc.) that has a smaller width than \linewidth. Is there a better way to do it than nesting the tcolorbox in a \begin-\end{center}? \...
1
vote
1answer
67 views

Strange behaviour with textwidth

I was trying to reproduce some tcolorbox– boxes. Now consider the following MWE: \documentclass[12pt]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \...
2
votes
1answer
37 views

Aligning tcolorbox in enumerates to first baseline

I have lost hours to this... How do I align a series of tcolorboxes based on the first baseline (or a certain mm of shift). I'll have somewhere around 60 of these per document, and 15 documents...I ...
1
vote
1answer
28 views

Latex Beamer - Vertically center aligned text to the left of tcolorbox

I want to place three tcolorboxes among themselves with arrows between them. To the left of each colorbox is a text that should be center aligned with respect to the box. The following code produces ...
0
votes
0answers
28 views

How to force or allow line breaks in \tcolorbox no listings mostly just on word or expression

Hello Community Fellows, I just want to highlight little Code snippets in my document as well and as lookalike like here with the tcolorbox (<- best example) but the line breaks will not appear, ...
2
votes
2answers
29 views

How can I get a wide image right below the title of a twocolumn document followed by twocolumn text?

I want to have a onecolumn image on the first page right below the title of a twocolumn document. The image should span the text width. I am not using the multicols package because it causes problems ...
2
votes
1answer
37 views

CV with (adjustable) sidebar over mulitple pages

I have been trying to create a CV in latex with a gray sidebar that runs over multiple pages. On the first, I would like it to be a little wide (~0.3 sidewidth) with text inside and on the other pages,...
4
votes
2answers
61 views

Aligning minicolumn with tcolorbox

I'm trying to align two minipage environments to the page margins (the left minipage to the left margin and the right minipage to the right margin) but it does not seem to work. I also need a space ...
0
votes
0answers
41 views

border line width is changed in `\newtcolorbox` when tcolorbox is breaking

The border line of the first tcolorbox is normal, in the the second when I move to a new page the border line width change. this is the code: \documentclass[9pt,a4paper]{article} \usepackage{...
2
votes
1answer
59 views

How to gather tcolorboxes at the end of a document

I want to add remarks at different places in a document, using tcolorbox (which I found a very nice package) and at the end of the document to get a compilation of all the remarks added along the ...
2
votes
1answer
44 views

Floating tcolorbox environment in another tcolorbox

I defined a new environment with \newtcolorbox in the preamble. If I call it in the document I can use it. That´s fine! \documentclass{article} % Standard Packages \usepackage[utf8]{inputenc} \...