HI ALL! According to an earlier post that was very much helpful, I now wish to know how to write a shell script or similar to automate this exporting process.
http://archive.contextgarden.net/message/20081124.122842.38fee2f4.en.html I discover it is a lot of typing work to get these work as expected in ConTeXt and specially mkIV. Here is what i wish: Just type in the ubuntu terminal ./mp2context figure.mp figure.tex Inside the file mp2context it replaces all the latex related like verbatimtex bla bla etex with \startuseMPgraphic{figure} and replaces textareas from btex { latex font definitions ..text..} etex to \sometxt{..text..} I saw Aditya mentioned in the earlier post about some regexp but I don't know what do do with it. Finally you just for example in main document do \startproduct \component figure \placefigure[here][fig:myfig]{Here is my picture done in dia}{\scale[width=\textwidth]{\useMPgraphic{figure}}} \stoppproduct Thanks in Advance! Janneman using Minimals current version: 2009.01.18 14:39 This is LuaTeX, Version snapshot-0.35.0-2009022416 (Web2C 7.5.7) ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________