I need to typeset a few cluster diagrams (statistical mechanics) and planning to use the handy pst-node in pstricks to do that. Basically, it's some circles and connecting lines.
However, I wanted to display the diagram(s) inside an equation environment. Is it possible to contain the pspicture environment inside equation environment, perhaps by using \mbox? Is it possible to issue pstricks commands inside an \mbox?
Graphics, Figures & Tables ⇒ pst-node/pstricks object inside equation environment?
NEW: TikZ book now 40% off at Amazon.com for a short time.

pst-node/pstricks object inside equation environment?
Never mind. Yes, it is possible, and here is the code to do it:
The \rule command was used to create an invisible strut and stretch the box vertically over the image, since nodes themselves do not take up any space. This way, proper amount of vertical space is allotted to the equation so that it does not affect surrounding text.
Code: Select all
Code, edit and compile here:
\begin{equation}\makebox[3.2cm][l]{\rule[-1.366cm]{0cm}{2.732cm}\Cnode[radius=0.5cm](0.5,-0.866){A}\rput(0.5,-0.866){a}\Cnode[radius=0.5cm](2.5,-0.866){B}\rput(2.5,-0.866){b}\Cnode[radius=0.5cm](1.5,0.866){C}\rput(1.5,0.866){c}\ncline{A}{B}\ncline{A}{C}\ncline{B}{C}}\end{equation}