
Me gustó el cuadro y el color alrededor de la ecuación, que se produce al usarempheq
Me gustaría mantener ese carácter pero poder escribir texto + ecuación en la misma línea.
\documentclass[10pt,a4paper]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{empheq}
\definecolor{myblue}{rgb}{.8, .8, 1}
\newcommand*\mybluebox[1]{%
\colorbox{myblue}{\hspace{1em}#1\hspace{1em}}}
\usetheme{Warsaw}
\begin{document}
\begin{frame}
the equation of the tangent line is \begin{empheq}[box=\mybluebox]{align*}
y=f^{'}(x_0)(x-x_{0})+f(x_{0})
\end{empheq}
\end{frame}
\end{document}
lo que produce la siguiente imagen:
Respuesta1
Puedes tenerlo con el flalign*`` environment and a small patch for the
comando \Aboxed`:
\documentclass[10pt, a4paper]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{empheq}
\definecolor{myblue}{rgb}{.8, .8, 1}
\newcommand*\mybluebox[1]{%
\colorbox{myblue}{\hspace{1em}#1\hspace{1em}}}
\usetheme{Warsaw}
\usepackage{xpatch}
\makeatletter
\newcommand{\colorboxed}[1]{\colorbox{myblue}{\m@th$\displaystyle#1$}}
\xpatchcmd{\@Aboxed}{\boxed}{\colorboxed}{}{}
\makeatother
\begin{document}
\begin{frame}
\begin{flalign*}
& \text{the equation of the tangent line is} &\Aboxed{\quad y & =f’(x_0)(x-x_{0})+f(x_{0})\quad} &
\end{flalign*}
\end{frame}
\end{document}