tcb high math
TRANSCRIPT
-
7/26/2019 Tcb High Math
1/1
\tcboxmath[options]{mathematical box content}Creates a tcolorboxP. 12 which is fitted to the width of the given mathematical boxcontent. This b ox is intended to be applied as part of a larger formula and may be usedas 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}
a2
= 16
Implication
a = 4 a = 4. (3)
\tcbhighmath[options]{mathematical box content}This is a special case of the \tcboxmath macro which uses the style /tcb/highlight
mathP. 335
. It is intended to provide context sensitive highlighting of formula parts. Thecolor settings via /tcb/highlight math styleP. 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}
n=1
1
n
= . (4)
x
2 dx = 1
3x3
+ c. (5)
n=1
1
n
= . (6)
x
2 dx = 1
3x3
+ c. (7)
328
http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-