ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jan-Erik Hägglöf" <janerik.hagglof@bredband.net>
To: ConTeXt-maillist <ntg-context@ntg.nl>
Subject: Howto make a handy script to handle dia exported *.mp files
Date: Fri, 06 Mar 2009 16:00:23 +0100	[thread overview]
Message-ID: <1236351623.32681.17.camel@lundby> (raw)

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
___________________________________________________________________________________


                 reply	other threads:[~2009-03-06 15:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1236351623.32681.17.camel@lundby \
    --to=janerik.hagglof@bredband.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).