Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I would like the frame to fit the text inside?

\documentclass[a4paper]{memoir}
\usepackage{mdframed}
\begin{document}
\begin{flushright}
\begin{framed}
$\textsc{casregner}$
$(f(x)=g(x),x)|x>0$
$x=32.5552$
\end{framed}
\end{flushright}
\end{document}
share|improve this question

1 Answer 1

\documentclass[a4paper]{memoir}

\begin{document}
\begin{flushright}
\fboxsep=10pt% local change inside flushright
\fbox{\strut%
$\textsc{casregner}$
$(f(x)=g(x),x)|x>0$
$x=32.5552$}
\end{flushright}
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.