New answers tagged

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[...
user avatar
  • 19.6k
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}, ...
user avatar
  • 2,390
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 ...
user avatar
  • 51.7k
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. ...
user avatar
  • 2,390
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
user avatar
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}[ ...
user avatar
  • 2,390
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 ...
user avatar
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} \...
user avatar
  • 20.4k
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 ...
user avatar
  • 13

Top 50 recent answers are included