Author Topic: center equation in framebox  (Read 9411 times)

smrock

  • Newbie
  • *
  • Posts: 2
    • View Profile
center equation in framebox
« 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

Andreas

  • Administrator
  • Full Member
  • *****
  • Posts: 140
    • View Profile
Re: center equation in framebox
« Reply #1 on: September 24, 2012, 11:25:52 AM »
Did you try \begin{center} ... \end{center} around your formula?
This forum belongs to www.schmidt-web-berlin.de/winfig

smrock

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: center equation in framebox
« Reply #2 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. 

Andreas

  • Administrator
  • Full Member
  • *****
  • Posts: 140
    • View Profile
Re: center equation in framebox
« Reply #3 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}%
This forum belongs to www.schmidt-web-berlin.de/winfig