New answers tagged boxes
2
votes
Colored and inclined boxes
The solution by @user187803 using tcolorbox is probably the right way to do this, especially is you want the fuzzy shadow. For variety, here is a TikZ solution using drop shadow.
\usepackage[...
4
votes
Colored and inclined boxes
You can use tcolorbox:
\documentclass{article}
\usepackage[most]{tcolorbox}
\newtcbox{mybox}[2]{
enhanced,
frame hidden,
colback=#2,
arc=2pt,
tikz={rotate=#1,transform shape},
...
1
vote
Accepted
Automatic line breaking of boxes
You need to use \global before \setbox, because \foreach from pgf does each loop-step in a group. The local setting is forgotten when the group is leaved. And you want to use \penalty0 in order to ...
2
votes
Accepted
Drawing a color swatch/palette for CMYK
This isn't a solution based on your code but based on tcolorbox. I'm not an expert in color systems, so I don't know if CMYK works properly here.
EDIT: Color name and CMYK code are now separate. ...
1
vote
Accepted
top align lrbox
An lrbox is always single line so doesn't have an alignment option, but inside it you want \begin{minipage}[t] to top align the minipages
2
votes
How to do this theorem environment (this exact style)?
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{mathpazo}
\usepackage{amsthm}
\usepackage[most]{tcolorbox}
\newtheorem{theorem}{Th\'{e}or\`{e}me}
\begin{document}
\begin{tcolorbox}[
...
0
votes
Suppress black box at end of line
Fixing the illness directly, not the symptoms
The black boxes usually occur alongside the error:
Overfull \hbox (3.14159pt too wide) in paragraph at lines 41--42
This usually means that there is too ...
3
votes
Accepted
Splitting a tcolorbox into two columns
Another approach using tcolorbox options sidebyside:
\documentclass[margin=5pt]{standalone}
\usepackage{amsmath}
\usepackage{bm}
\usepackage{tcolorbox, xcolor, lmodern}
\tcbuselibrary{skins}
\...
0
votes
Splitting a tcolorbox into two columns
I was almost there—turns out all that was left to do was tweak the 0.5 in the minipages to the correct ratio I wanted. I had in fact succeeded in splitting the tcolorbox into two sections, they were ...
Top 50 recent answers are included
Related Tags
boxes × 1498tikz-pgf × 114
spacing × 104
color × 100
framed × 84
vertical-alignment × 69
horizontal-alignment × 66
tables × 65
tcolorbox × 65
beamer × 61
tex-core × 60
line-breaking × 58
minipage × 56
math-mode × 54
equations × 49
macros × 46
warnings × 41
environments × 38
mdframed × 35
align × 34
graphics × 33
positioning × 33
page-breaking × 31
formatting × 30
floats × 28