* Howto make a handy script to handle dia exported *.mp files
@ 2009-03-06 15:00 Jan-Erik Hägglöf
0 siblings, 0 replies; only message in thread
From: Jan-Erik Hägglöf @ 2009-03-06 15:00 UTC (permalink / raw)
To: ConTeXt-maillist
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-06 15:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-06 15:00 Howto make a handy script to handle dia exported *.mp files Jan-Erik Hägglöf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).