You are here

Drawing diagram with equations

There are several ways to put equations into an fig diagram. However, some of these methods may lead to some problems when the diagram is converted to pdf or doc format. This example uses an efficient way of drawing diagram with equations using xfig and latex command. The procedures are as follow:

1) open the xfig program and draw your diagram

2) insert you equation into the diagram using latex command such as $\mathbf{u}$. Remember to use 'special flag' in your text. The special flag option is 'Normal' by default, you need to choose 'Special'. You can check that by looking at the window of the text editor, where you can change the size, colour, justification, choosing the option for Hidden Flag, Rigid Flag, Special Flag and etc, of the text.

3) save the file in fig format.

4) use the the program `figtex2eps' to convert the fig file to eps file by: ./figtex2eps [your diagram].fig
[your diagram].eps will be produced. You can then use epstopdf command to convert the diagram into pdf format if you want.

This method is very user friendly and has no problems compared to the method such as the 'psfrag' method.

 

 

 


Michael Ng

Last modified: Fri Feb 3 17:29:15 GMT 2006

University of Southampton: