Skip to main content
6 votes
Accepted

How to put text in a vertical direction inside a tcolorbox?

Quick hack: Use the enhanced, rotate=90 options to let tcolorbox rotate the boxes and then use tikz={xshift=...} to fix the alignment \documentclass{article} \usepackage{graphicx} % Required for ...
samcarter_is_at_topanswers.xyz's user avatar
4 votes
Accepted

Save tcolorbox text height and reuse in another one

When /tcb/geometry node is set true (usually indirectly set by skin options), five TikZ nodes are created for each tcolorbox. Among them the frame node has the same size of the current tcolorbox ...
muzimuzhi Z's user avatar
4 votes
Accepted

Clash between breakable tcolorbox with tikz externalize

You could use the shield externalize option to protect your tcolorbox from getting externalised: \documentclass{book} \usepackage[most]{tcolorbox} \tcbuselibrary{breakable,theorems} \newtcbtheorem[...
samcarter_is_at_topanswers.xyz's user avatar
3 votes
Accepted

How to make a tcolobox stick the bottom of the page ? (and why \vfill is not perfectly working?)

My issue was actually caused by a spacing specific to tcolorbox (that one can find in their documentation, page 11). Therefore, to solve my issue one just need to add after=0pt as option for the ...
OursPolaire's user avatar
3 votes

Save tcolorbox text height and reuse in another one

If you want to use \tcbtextheight in the body of the box, it will only work for boxes which have a fixed height. See this quick example: \documentclass{minimal} \usepackage[most]{tcolorbox} \newlength{...
samcarter_is_at_topanswers.xyz's user avatar
3 votes
Accepted

How to add colors in boxes and arrows?

It is often convenient to add an argument to a style when you want to change one particular aspect. For example, you can add fill=#1 to your block style. Then you can use the option block=<color>...
Sandy G's user avatar
  • 46.5k
3 votes

How to add colors in boxes and arrows?

Added the colors in the boxes. \documentclass[12pt]{article} \usepackage{geometry}%<----To have centered the blocks \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows, positioning} \begin{...
Sebastiano's user avatar
  • 56.5k
3 votes
Accepted

How can I get the title in tcolorbox partly framed and not framed?

tcolorbox has the IfEmptyTF key which you can use to check if the title is empty or not instead of manually setting the counters, use the auto counter,number within=chapter option to automatically ...
samcarter_is_at_topanswers.xyz's user avatar
3 votes
Accepted

Image and text in tcolorbox; How to make the text span remainder of interior width?

I'd use a sidebyside box: \documentclass[twocolumn]{article} \usepackage{tcolorbox} \begin{document} \begin{tcolorbox}[sidebyside,lefthand width=2cm, lower separated=false] \includegraphics[width=\...
David Purton's user avatar
  • 26.4k
2 votes
Accepted

How to prevent breakable tcolorbox ending up on next page without breaking?

You could use the ignore nobreak key, or enlarge the page a bit: \documentclass{scrreprt} \usepackage[skins, breakable]{tcolorbox} \usepackage{lipsum} \newtcolorbox{mybox}[2][]{ enhanced, ...
Ulrike Fischer's user avatar
2 votes
Accepted

Change order of words in LaTeX tcolorbox or tcbtheorem

This would warrant a feature request for tcolorbox. You can add a key based on the already present theorem number and name with the difference that a period is added after the number. \documentclass[...
egreg's user avatar
  • 1.1m
2 votes

How to make the title sections in a tcolorbox raster the same height?

A variant of @Ignasi's answer by factoring the box options instead of placing them individually in each box. skin=enhanced,left=1mm, attach boxed title to top*, boxed title style={equal height group=...
AndréC's user avatar
  • 25.6k
2 votes
Accepted

How to put a text inside a box within a boxed environment?

Your problems are independent from using boxes in boxes. There are several issues with your code, e.g., your usage of math mode. Boxex like \parbox switch to text mode. So you would need to use $…$ ...
cabohah's user avatar
  • 13.6k
2 votes

Fit tcolorbox to table

Since you have a note inside the table I'd use threeparttable, setting no border separators for the tcolorbox: \PassOptionsToPackage{usenames,dvipsnames,svgnames,table,cmyk,x11names}{xcolor} \...
CarLaTeX's user avatar
  • 64.5k
2 votes

Special characters in \lstinline cause an error when used in tcbox

As said in comments, create a suitable box with \NewTotalTCBox: \documentclass{article} \usepackage{listings} \lstdefinestyle{LaTeX-inline}{ language=[LaTeX]TeX, basicstyle=\linespread{1}\...
samcarter_is_at_topanswers.xyz's user avatar
2 votes

How to make tcolorbox with 3 segments?

Hm, some general suggestions, as your intended result isn't clear enough: a sketch of your intended result is needed here the motivation to use tcolorbox remains unclear I suggest to scan its manual ...
MS-SPO's user avatar
  • 13.4k
1 vote
Accepted

How to create two or more \tcolorboxenvironment for the same environment?

Your proof environments are not numbered, so I don't know what you mean with your second question about refering to them. But because you should never mix several questions into one, I would recommend ...
cabohah's user avatar
  • 13.6k
1 vote
Accepted

Using parbox inside marginnote misaligns the baseline

Use \parbox[t] otherwise you get vertical centering which naturally moves things off the baseline.
David Carlisle's user avatar
1 vote

How to set a phantom box in tcolorbox?

You can try something like beforeafter skip balanced=\parskip, before upper=\strut, after upper=\strut, If you need many paragraphs inside the tcolorbox, you can add parbox=false to get the ...
jlab's user avatar
  • 3,759
1 vote

Changing rows in the same tcbox

You could use a tcbox with the varwidth upper option: \documentclass[aps]{revtex4} \usepackage{amsmath} \usepackage[most]{tcolorbox} \usepackage{varwidth} \newtcbox{\tccheckbox}[1][]{on line,...
samcarter_is_at_topanswers.xyz's user avatar
1 vote
Accepted

Tcolorbox remove part of box border

You could manually draw the frame, this way your title does not need a background colour: \documentclass[a4paper]{book} \usepackage[most]{tcolorbox} \usepackage{contour} %\pagecolor{green} \tcbset{ ...
samcarter_is_at_topanswers.xyz's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible