\tcboxmath[hoptionsi]{hmathematical box contenti}
Creates a tcolorbox P. 12 which is fitted to the width of the given hmathematical box
contenti. This box is intended to be applied as part of a larger formula and may be used
as replacement for the \boxed macro of amsmath.
\begin{equation}
\tcbset{fonttitle=\scriptsize}
\tcboxmath[colback=LightBlue!25!white,colframe=blue]{ a^2 = 16 }
\quad \Rightarrow \quad
\tcboxmath[colback=Salmon!25!white,colframe=red,title=Implication]%
{ a = 4 ~\vee~ a=-4. }
\end{equation}
Implication
a2 = 16
(3)
a = 4 a = 4.
\tcbhighmath[hoptionsi]{hmathematical box contenti}
This is a special case of the \tcboxmath macro which uses the style /tcb/highlight
math P. 335 . It is intended to provide context sensitive highlighting of formula parts. The
color settings via /tcb/highlight math style P. 335 may be different inside theorems or
other colored areas and outside.
\tcbset{myformula/.style={colback=yellow!10!white,colframe=red!50!black,
every box/.style={highlight math style={colback=LightBlue!50!white,colframe=Navy}}
}}
\begin{align}
\tcbhighmath{\sum\limits_{n=1}^{\infty} \frac{1}{n}} &= \infty.\\
\int x^2 ~\text{d}x
&= \frac13 x^3 + c.
\end{align}
\begin{tcolorbox}[ams align,myformula]
\tcbhighmath{\sum\limits_{n=1}^{\infty} \frac{1}{n}} &= \infty.\\
\int x^2 ~\text{d}x
&= \frac13 x^3 + c.
\end{tcolorbox}
X
1
n=1
x2 dx =
X
1
n=1
= .
328
1 3
x + c.
3
= .
x2 dx =
(4)
1 3
x + c.
3
(5)
(6)
(7)