[Tex/LaTex] Dashed version of \boxed

boxesequations

Is there an easy way of putting an equation inside a dashed box?

Ideally similar to \boxed from amsmath. The output should look something like this:

enter image description here

Best Answer

You can use the small dashbox package:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{dashbox}
\newcommand\dboxed[1]{\dbox{\ensuremath{#1}}}

\begin{document}

 \[ \dboxed{t\cdot u}\iff\dboxed{t} * \dboxed{u}\]%

\end{document} 

enter image description here