<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16821"><LINK rel=stylesheet 
href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}"></HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT size=2 face=Verdana>
<DIV><FONT 
size=4>  I found the package mpgraphics on Ctan, and It do make me fell more convenient to draw graphics by MetaPost. Here I owe you a lot of thanks.</FONT></DIV>
<DIV><FONT 
size=4>  But still, there are two questions I want to solve.</FONT></DIV>
<DIV><FONT 
size=4>  First, I found that the figure that produced by mpdisplay is not labeled; </FONT></DIV>
<DIV><FONT 
size=4>  and Second, I want to use my TeX code file name instead the main file name_ fignum; This is quite helpful since I want to write all the Tex Code of figures in a main file(imagin in a paper there are more than ten graphics), and through which I called the file of figure code, which named by the chapter: such as fig1-2.tex or if there are two figures in the figure 2 of  chapter 1, I'd like to name it fig1-2_1.tex and fig1-2_2.tex respectively. </FONT></DIV>
<DIV><FONT size=4></FONT></DIV>
<DIV><FONT 
size=4>The following is a example of main file and figure file:</FONT></DIV>
<DIV><FONT size=4></FONT></DIV>
<DIV><FONT size=4>--------------------------------------</FONT></DIV>
<DIV><FONT size=4>This is the main file</FONT></DIV>
<DIV><FONT size=4>--------------------------------------</FONT></DIV>
<DIV><FONT size=4>\documentclass{article}</FONT></DIV>
<DIV><FONT size=4>\usepackage[compilation=on]{mpgraphics}</FONT></DIV>
<DIV><FONT size=4>%\NoProcess[1-38]</FONT></DIV>
<DIV><FONT size=4>\configure[mpggraphic][linewidth=1pt]</FONT></DIV>
<DIV><FONT size=4>\begin{document}</FONT></DIV>
<DIV><FONT size=4> \begin{mpdefs}</FONT></DIV>
<DIV><FONT size=4>   u:=10pt;</FONT></DIV>
<DIV><FONT size=4>   \input metaobj.mp</FONT></DIV>
<DIV><FONT size=4> \end{mpdefs}</FONT></DIV>
<DIV><FONT size=4>\input{source/fig1-1}</FONT></DIV>
<DIV><FONT size=4>\input{source/fig1-2}</FONT></DIV>
<DIV><FONT size=4>\input{source/fig2-1}</FONT></DIV>
<DIV><FONT size=4>\input{source/fig2-2}</FONT></DIV>
<DIV><FONT size=4>\end{document} </FONT></DIV>
<DIV><FONT size=4></FONT></DIV>
<DIV><FONT size=4>-------------------------------------</FONT></DIV>
<DIV><FONT 
size=4>This is the figure code for fig1-1; which</FONT></DIV>
<DIV><FONT 
size=4>as the \input say, is located in ./source/</FONT></DIV>
<DIV><FONT size=4>folder</FONT></DIV>
<DIV><FONT size=4>--------------------------------------</FONT></DIV>
<DIV><FONT size=4>%fig1-1_1</FONT></DIV>
<DIV><FONT size=4>\begin{mpdisplay}</FONT></DIV>
<DIV><FONT 
size=4>  draw fullcircle scaled 10u;</FONT></DIV>
<DIV><FONT size=4>\end{mpdisplay}</FONT></DIV>
<DIV><FONT size=4>%fig1-1_2</FONT></DIV>
<DIV><FONT size=4>\begin{mpdisplay}</FONT></DIV>
<DIV><FONT 
size=4>  draw fullcircle scaled 50pt withcolor red;</FONT></DIV>
<DIV><FONT size=4>\end{mpdisplay}</FONT></DIV>
<DIV><FONT size=4>---------------------------------------</FONT></DIV>
<DIV><FONT 
size=4>similarly for other figure codes;</FONT></DIV>
<DIV><FONT size=4></FONT></DIV>
<DIV><FONT 
size=4> I want to compile the main.tex and get fig1-1_1.eps (or pdf if in pdftex mode) and fig1-1_2.eps and so on;</FONT></DIV>
<DIV><FONT 
size=4>Moreover (I think it should not hard), the fig1-1_1.eps is labeled as "fig1-1_1.eps" and so on; That is every figure is labeled after its name; That will help me to find which figure it is in a long list of figure.</FONT></DIV>
<DIV><FONT 
size=4>Did I make myself clear? If not please Email me. </FONT></DIV></FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana>2011-07-12 
</FONT></DIV><FONT size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>

<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN>aiwanjun</SPAN> 
</FONT></DIV></FONT></BODY></HTML>