[pstricks] array alignment inside a psframebox

Herbert Voss Herbert.Voss at FU-Berlin.DE
Thu Dec 22 09:52:42 CET 2016


Am 22.12.2016 um 00:19 schrieb Luís Lopes:
> I would like to put something like
>
>
>    aa=aa
>  bbb=bbb
> cccc=cccc
>    aa=aa
>
>
> inside a psframebox in a pspicture environment.


\documentclass[]{article}
\usepackage{mathtools}
\usepackage{pstricks-add}
\usepackage{varwidth}

\begin{document}

\begin{pspicture}[showgrid](10,10)
\rput[lb](1,1){\psframebox*[fillcolor=red!40]{\parbox{0.5\linewidth}{%		
   \begin{align*}
     I & = \int_1^4 (u-1)\sqrt{u} \, du  \\
       & = \int_1^4 \left(u^{\frac{3}{2}}-u^{\frac{1}{2}}\right) \, du  \\
       & = \left[\frac{2}{5} u^{\frac{5}{2}} - 
\frac{2}{3}u^{\frac{3}{2}}\right]_1^4
   \end{align*}%
}}}
\end{pspicture}

\end{document}


Herbert

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto vom 2016-12-22 09-52-16.png
Type: image/png
Size: 24974 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20161222/f39fa9f0/attachment-0001.png>


More information about the PSTricks mailing list