ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: c <ntg-context@ntg.nl>
Subject: Re: MathML to PDF conversion
Date: Fri, 21 Apr 2006 00:19:48 +0200	[thread overview]
Message-ID: <44480904.9090503@wxs.nl> (raw)
In-Reply-To: <200604191939.k3JJdTx7004377@calderon.math.grinnell.edu>

Eugene A. Herman wrote:
> Pragma:
>
> I downloaded your free software that is supposed to enable me to
> convert my XML files (which include some MathML) to PDF. I cannot
> find any documentation on how to use these files to do the conversion.
> (I'm on a Debian Linux network.) Please just give me an example
> of the Unix command that would convert a file named foo.xml to foo.pdf
>
> Thank you for providing this free software! 
>   
there is a wiki (contextgarden.org) that tells some bits and pieces 

in order to process xml, you need to make a setup: 

==== mydoc.tex ====== 

\usemodule[mathml]

\defineXMlenvironment 
  [document] 
  {\title{Table of contents}
   \placelist[chapter,section]}

\defineXMLargument [chapter] {\chapter}
\defineXMLargument [section] {\section}

\starttext 

\processXMLfilegrouped{whatever.xml}

\stoptext 


==== whatever.xml ===== 

<?xml version='1.0'?>

<document>

<chapter>Something</chapter>

bla bla <math><apply><sin/><ci>x</ci></apply></math>

</document>

===== command ===== 

texexec --pdf mydoc.tex


One can also make mydoc into a style (in which case the \starttext ... is omitted) and say: 

texexec --env=mydoc whatever.xml

(you can get more info on the context mailing list; there are users there working with mathml) 

Hans 


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

           reply	other threads:[~2006-04-20 22:19 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <200604191939.k3JJdTx7004377@calderon.math.grinnell.edu>]

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=44480904.9090503@wxs.nl \
    --to=pragma@wxs.nl \
    --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).