ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: TeX output as Java graphic
       [not found] ` <726A42CF-26CB-11D8-BB16-0030656EC0E4-ee4meeAH724@public.gmane.org>
@ 2003-12-06 11:40   ` Hans Hagen
  0 siblings, 0 replies; only message in thread
From: Hans Hagen @ 2003-12-06 11:40 UTC (permalink / raw)
  Cc: ntg-context-wvrSQK3plZs, pdftex-WUdSmCIlby8

At 03:33 05/12/2003, Todd O'Bryan wrote:

>How hard would it be to pull out the code from TeX that typesets small 
>snippets of text (the primitives, I guess it would be) so that I could 
>pass a string like "$x^2+y^2=25$" (or its MathML equivalent) and a 
>starting point and have that small image be typeset correctly at that 
>point. Is anyone aware of anybody doing something like this or leaning in 
>that direction?

http://www.pragma-pod.com/ -> mathml processing (couple of years old but it 
still runs; not the latest version of context btw)

In the context distribution is a more advance demo but that's too much off 
topic for this list.

In context (roughly):

\setupoutput[pdftex]

\usemodule[mathml]

% \usetypescript[palatino][texnansi] \setupbodyfont[palatino]
% \usetypescript[palatino][texnansi] \setupbodyfont[times]
% \usetypescript[fourier] [ec]       \setupbodyfont[fourier]

\starttext
     \startTEXpage
         \startXMLdata
             <math>
                 <apply> <eq/>
                     <apply> <plus/>
                         <ci> x </ci>
                         <apply> <power/>
                             <apply> <sin/>
                                 <ci> x </ci>
                             </apply>
                             <cn> 2 </cn>
                         </apply>
                         <ci> y </ci>
                     </apply>
                     <ci> y </ci>
                 </apply>
             </math>
         \stopXMLdata
   \stopTEXpage
\stoptext

Hans  

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-12-06 11:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <726A42CF-26CB-11D8-BB16-0030656EC0E4@mac.com>
     [not found] ` <726A42CF-26CB-11D8-BB16-0030656EC0E4-ee4meeAH724@public.gmane.org>
2003-12-06 11:40   ` TeX output as Java graphic Hans Hagen

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).