WinFIG forum

WinFIG => WinFIG and LaTeX => Topic started by: smrock on September 22, 2012, 06:11:34 PM

Title: center equation in framebox
Post by: smrock on September 22, 2012, 06:11:34 PM
I am trying to draw block diagrams and need to center a latex equation in each of the frameboxes.   Does anyone know how to do this?  I tried aligning my text entry and the box, but that aligns the raw latex command (e.g. $\gamma$, not the resulting greek symbol.  Thanks
Title: Re: center equation in framebox
Post by: Andreas on September 24, 2012, 11:25:52 AM
Did you try \begin{center} ... \end{center} around your formula?
Title: Re: center equation in framebox
Post by: smrock on September 24, 2012, 04:22:56 PM
Thanks for the suggestion.  I just tried it -- but it doesn't work.   

The only way I've succeeded so far is to edit the exported .tex file to change the coordinates in the \put command.  That works, but is pretty awkward. 
Title: Re: center equation in framebox
Post by: Andreas on September 25, 2012, 01:55:16 PM
ah, ok it's probably because the "put" overrides the \center. However, Perhaps there is a way to change the LaTeX export to include the centering inside the box. Right now it looks like this:

Code: [Select]
\put(3001,-6549){\makebox(0,0)[b]{\smash{{\SetFigFont{12}{14.4}{\rmdefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}sdfsdfdsdsf}%