![](https://secure.gravatar.com/avatar/5ac56d5e4e2c07726085feb096e2f449.jpg?s=120&d=mm&r=g)
Le 06 juin à 15:44:05 Aditya Mahajan
| > Hi all, | > | > I found something strange with a metapost file where I want to store | > various definitions for reuse in several tex files; here are example | > files: [...] | > | > Now what happens? The label in the mp file "Costs, prices" is replaced by | > "unknown" in the pdf. But if I add a label in the startuseMPgraphic | > environment, (decommenting line 3 in it), then both labels appear!! | >
| This is because of the way textext works. tex.rb scans the file to see | if textext is present. It is not, so it does not use mpx. When you | uncomment the line, textext is present and mpx files are processed.
| > I tried several other files, it seems to happen every time. | > Anything I'm doing wrong?
| Add \forceMPTEXgraphictrue on top of your file if you want to force | mpx to be run everytime. I do not know the equivalent command line | switch (if there is any)
| Aditya Thanks Aditya for the explanation and the solution, that was it! -- Jean