Starting from this question \boxed border color I wanted to color only the box, but I also have number colored. Without to use mdframed
, tcolorbox
, or other package is there a very simple alternative (without macro) to have the color of the box? My MWE is:
\documentclass[12pt]{article}
\usepackage{amsmath,amssymb,xcolor}
\begin{document}
\begin{equation}
\colorlet{oldcolor}{.}
\color{magenta}
\boxed{\color{oldcolor}{F(x)=\int_{0}^{x}f(t)dt}}
\end{equation}
\end{document}
\color{oldcolor}
after the box,\begin{equation} \colorlet{oldcolor}{.} \color{magenta} \boxed{\color{oldcolor} F(x)=\int_{0}^{x}f(t)\,\mathrm{d}t}\color{oldcolor} \end{equation}
. – user194703 Dec 30 '19 at 20:36