0% found this document useful (0 votes)
1K views1 page

TCB High Math

The \tcboxmath command creates a tcolorbox that fits the width of the given mathematical content. It can be used as a replacement for the \boxed macro from amsmath. \tcbhighmath is a special case of \tcboxmath that uses the /tcb/highlight math style to provide context sensitive highlighting of formula parts inside and outside of theorems or other colored areas. The examples show using \tcboxmath and \tcbhighmath inside equation and align environments to highlight mathematical expressions.

Uploaded by

jimusos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views1 page

TCB High Math

The \tcboxmath command creates a tcolorbox that fits the width of the given mathematical content. It can be used as a replacement for the \boxed macro from amsmath. \tcbhighmath is a special case of \tcboxmath that uses the /tcb/highlight math style to provide context sensitive highlighting of formula parts inside and outside of theorems or other colored areas. The examples show using \tcboxmath and \tcbhighmath inside equation and align environments to highlight mathematical expressions.

Uploaded by

jimusos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

\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)

You might also like