# Tag Info

### Boxes with text or numbers

You can define your own box with the height of a k and the depth of a j by using \vphantom{$jk$} in the definition. You can change which blocks have \overbrace and \underbrace if you like. Then put ...
• 21.4k
Accepted

### How can I have two different background colors in one tcolorbox title?

You need load the skin library, use enhanced option and create your own title frame box. Fill the whole title region with white color first. Then fill the left side until the words 'Example X.XX' to ...
• 4,033

### Boxes with text or numbers

Here is one way to create your first diagram or drawing: I use tikz, its shapes.multipart library for split rectangles, and positioning for relative placement. Please find details in the pfg manual. ...
• 1,733
1 vote

### How to write text in each subpart of box?

With nodes, relative positioned to each other, size is node parameter: \documentclass[border=3.141592]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{...
• 255k
1 vote
Accepted

### How to write text in each subpart of box?

Here is a way. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) -- (5,0); \draw (5,0) -- (5,5); \draw (0,0) -- (0,5);...
• 4,033
1 vote
Accepted

### How to place the subscript below and above the box

Simply replace \mathord with \mathop. Of course, the limits will be above and below only in display style. \documentclass[12pt]{report} \usepackage{amsmath,amsthm,amssymb,setspace} \usepackage{...
• 992k
1 vote

### How can I have two different background colors in one tcolorbox title?

You can use only TeX primitive commands \hbox, \vbox, \hrule, \vrule, \setbox, \kern etc. You need not use the tcolorbox package in this case. Advantage: all is controlled by you. \documentclass{...
• 53.4k
1 vote

### How can I have two different background colors in one tcolorbox title?

Tikz library tikzmark should be the ultimate solution but I didn't succeed. Here's a lengthy way: a costumed \xcolorbox[<options>]{<color>}{<text>} similar to \colorbox but through &...
• 21.7k

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