From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34628 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: What module does this document use ? Date: Wed, 09 May 2007 09:08:11 +0200 Message-ID: <4641735B.9040203@wxs.nl> References: <463B7E72.4070803@wxs.nl> <769ba7780705071759h4c12fcf1h4b45e16a5d4d5f8c@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070501070707020701060209" X-Trace: sea.gmane.org 1178694517 13618 80.91.229.12 (9 May 2007 07:08:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 9 May 2007 07:08:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 09 09:08:32 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1HlgHo-0003re-3k for gctc-ntg-context-518@m.gmane.org; Wed, 09 May 2007 09:08:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7308420074; Wed, 9 May 2007 09:08:30 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06348-06; Wed, 9 May 2007 09:08:16 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 30F9D20044; Wed, 9 May 2007 09:08:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A753720044 for ; Wed, 9 May 2007 09:08:13 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06143-02-3 for ; Wed, 9 May 2007 09:08:11 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id C86EA1FFCA for ; Wed, 9 May 2007 09:08:10 +0200 (CEST) Original-Received: from [10.100.1.101] (unverified [10.100.1.101]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 21955 for ; Wed, 09 May 2007 09:08:10 +0200 User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) In-Reply-To: X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:34628 Archived-At: This is a multi-part message in MIME format. --------------070501070707020701060209 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Lingyun Yang wrote: > Thank you all, > > I found a s-pre-17 at http://wiki.contextgarden.net/Presentation_Styles > But not the one I want to use, > http://www.pragma-ade.com/present/talks/pre-mml.pdf > and contextgarden.net didn't provide the s-pre-17.tex file. > undocumented, untested, etc etc > > Lingyun > > > On 5/7/07, Zhichu Chen wrote: >> >> Hi Lingyun, >> >> You don't have s-pre-17.tex in you tex's path (neither have I) so >> \TitlePage is not defined (it's supposed to be defined in >> s-pre-17.tex ). Maybe >> you can get a copy from Hans and copy it to your >> texmf-local\tex\context\base directory and texexec --make then mktexlsr. >> >> >> On 5/8/07, Lingyun Yang wrote: >> >> > I tried a simple tex file: >> > >> > \usemodule[pre-17,mathml] >> > \TitlePage{Hello World!} >> > >> > but get the following error: >> > >> > >> > systems : system commands are enabled >> > system : module pre-17 not found >> > ! Undefined control sequence. >> > \TitlePage >> > >> > l.2 \TitlePage >> > {Hello World!} >> > ? >Exit code: -1073741510 >> > >> > >> > May >> > >> > >> > >> > On 5/4/07, Hans Hagen < pragma@wxs.nl> wrote: >> > >> > > Lingyun Yang wrote: >> > > > Can anyone help me with this kind of document ? >> > > > >> > > > http://www.pragma-ade.com/present/talks/pre-mml.pdf >> > > > >> > > > Which module does it use ? Is there anyway I can find its example >> > > tex >> > > > code ? >> > > > I tried google, but didn't find much information. >> > > > Thanks. >> > > \usemodule[pre-17,mathml] >> > > >> > > >> > > ----------------------------------------------------------------- >> > > 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 >> > > ----------------------------------------------------------------- >> > > >> > > >> ___________________________________________________________________________________ >> >> > > >> > > 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 >> > > >> ___________________________________________________________________________________ >> >> > > >> > > >> > >> > >> > >> > >> ___________________________________________________________________________________ >> >> > 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 >> > >> ___________________________________________________________________________________ >> >> > >> > >> > >> >> >> -- >> Best Regards >> Chen >> ---------------------------------------------------------------- >> >> Zhi-chu Chen | Shanghai Synchrotron Radiation Facility >> No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China >> tel: 086 21 5955 3405 | zhichu.chen.googlepages.com >> | www.sinap.ac.cn >> ---------------------------------------------------------------- >> >> ___________________________________________________________________________________ >> >> 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 >> >> ___________________________________________________________________________________ >> >> >> > > ------------------------------------------------------------------------ > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ > -- ----------------------------------------------------------------- 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 ----------------------------------------------------------------- --------------070501070707020701060209 Content-Type: text/x-tex; name="s-pre-17.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="s-pre-17.tex" %D \module %D [ file=s-pre-17, %D version=1999.08.20, %D title=\CONTEXT\ Style File, %D subtitle=Presentation Environment 17, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA / Hans Hagen \& Ton Otten}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. \setupbodyfont [12pt,ss] \setupcolors [state=start] \setupsystem [random=medium] \setupbackgrounds [state=repeat] \setupbackgrounds [page] [background={page,forward}] \setupbackgrounds [text][text] [background=blowup] \setupinteraction [state=start, %click=off, color=TitleColor, contrastcolor=TitleColor] \setupinteractionscreen [option=max] \setuptolerance [verytolerant,stretch] \definecolor [BackColor] [s=.30] \definecolor [PageColor] [g=1] \definecolor [FrameColor] [r=1] \definecolor [TitleColor] [y=1] \definecolor [ArrowColor] [b=1] \defineoverlay [title] [\useMPgraphic{title}] \defineoverlay [page] [\useMPgraphic{page}] \defineoverlay [blowup] [\overlaybutton{page(\realfolio)}] \defineoverlay [forward] [\overlaybutton{forward}] \startMPpositiongraphic{mppos:connection} path pa, pb, pc ; pair ca, cb ; initialize_box(\MPpos{\MPvar{self}}) ; pa := pxy ; ca := cxy ; initialize_box(\MPpos{\MPvar{prev}}) ; pb := pxy ; cb := cxy ; pickup pencircle scaled .5pt ; pa := pa enlarged 10pt ; pb := pb enlarged 10pt ; for i=1 upto 10 : draw pa randomized 20pt withcolor \MPcolor{FrameColor} ; endfor ; if \MPp{\MPvar{prev}}>0 : pair a, b, c, d ; for i=1 upto 25 : a := .5[ulcorner pa,urcorner pa] randomized (10pt,10pt) ; b := .5[llcorner pb,lrcorner pb] randomized (20pt,10pt) ; c := .5[a,b] rotatedaround(a,-25) randomized (5pt,5pt) ; d := .5[a,b] rotatedaround(a,+25) randomized (5pt,5pt) ; draw (a--b) withcolor \MPcolor{ArrowColor} ; draw (d--a--c) withcolor \MPcolor{ArrowColor} ; endfor ; fi ; anchor_box(\MPanchor{\MPvar{self}}) ; \stopMPpositiongraphic \startuseMPgraphic{title} pickup pencircle scaled .5pt ; for i=1 upto 10 : draw fullsquare xyscaled(OverlayWidth,OverlayHeight) enlarged 10pt randomized 20pt withcolor \MPcolor{TitleColor} ; endfor ; \stopuseMPgraphic \startuseMPgraphic{page} StartPage ; pickup pencircle scaled .5pt ; fill Page withcolor \MPcolor{BackColor} ; for i=1 upto 20 : draw Page enlarged -50pt randomized 50pt withcolor \MPcolor{PageColor} ; endfor ; StopPage ; \stopuseMPgraphic \def\StartText% {\bgroup \getrandomdimen\scratchdimen{250pt}{350pt}% \edef\TextWidth{\the\scratchdimen}% \setbox\scratchbox=\hbox\bgroup \hsize\TextWidth \setupframedtexts [before=,after=, width=fit,align=right, % normal, frame=off,foregroundcolor=white]% \framedtext\bgroup} \def\BlowX{450pt} % \def\BlowX{600pt} \def\BlowY{300pt} % \def\BlowY{450pt} \def\BlowV {50pt} % \def\BlowV{100pt} \def\BlowH {75pt} % \def\BlowH{100pt} \def\BackO {50pt} % \def\BackO {50pt} \def\StopText% {\egroup\egroup \doglobal\increment\CurrentBlaBla \let\PrevBlaBla\CurrentBlaBla \doglobal\decrement\PrevBlaBla \let\NextBlaBla\CurrentBlaBla \doglobal\increment\NextBlaBla \setMPpositiongraphic {connection:\CurrentBlaBla}% {mppos:connection}% {seed=\CurrentBlaBla, prev=connection:\PrevBlaBla, next=connection:\NextBlaBla}% \SetBlowUp{connection:\CurrentBlaBla}\BlowX\BlowY\BlowH\BlowV \hbox to 600pt % {\getrandomdimen\scratchdimen{50pt}{100pt}% {\getrandomdimen\scratchdimen{50pt}{75pt}% \hskip0pt plus \scratchdimen minus \scratchdimen \hpos{connection:\CurrentBlaBla}% {\framed [frame=off, offset=overlay, backgroundoffset=\BackO, background=blowup] {\box\scratchbox}}% % \getrandomdimen\scratchdimen{50pt}{100pt}% \getrandomdimen\scratchdimen{50pt}{75pt}% \hskip0pt plus \scratchdimen minus \scratchdimen}% % \getrandomdimen\scratchdimen{100pt}{150pt}% \getrandomdimen\scratchdimen{75pt}{125pt}% \vskip\scratchdimen \egroup} \def\xStartText {\bgroup \setbox\scratchbox=\hbox\bgroup \framed [frame=off,foregroundcolor=white] \bgroup} \def\xStopText{\StopText} \overcomePDFpagefalse \def\SetBlowUp#1#2#3#4#5% tag width height hoffset voffset {\scratchdimen=\MPw{#1}% \advance\scratchdimen-#2 % \divide\scratchdimen by 2 \advance\scratchdimen by \MPx{#1}\relax \ifdim\scratchdimen<0pt \scratchdimen=0pt \fi \ScaledPointsToBigPoints{\number\scratchdimen}\TextX \advance\scratchdimen by #2 % \ScaledPointsToBigPoints{\number\scratchdimen}\TextW % \scratchdimen=\MPh{#1}% \advance\scratchdimen-#3 % \divide\scratchdimen by 2 \advance\scratchdimen\MPy{#1}\relax \ifdim\scratchdimen<0pt \scratchdimen=0pt \fi \ScaledPointsToBigPoints{\number\scratchdimen}\TextY \advance\scratchdimen by #3 \ScaledPointsToBigPoints{\number\scratchdimen}\TextH % \def\PDFpageviewkey{ fitr \TextX\space\TextY\space\TextW\space\TextH}% \def\PDFpageviewwrd{ /FitR \TextX\space\TextY\space\TextW\space\TextH}% \edef\PDFpageview{/View [\PDFpageviewwrd]}} \def\xSetBlowUp#1#2#3#4#5% tag width height hoffset voffset {\scratchdimen\MPx{#1}\relax \ifdim\scratchdimen<#4 \ScaledPointsToBigPoints{0}\TextX \multiply\scratchdimen 2 \else \advance\scratchdimen-#4 \ScaledPointsToBigPoints{\number\scratchdimen}\TextX \advance\scratchdimen#4 \advance\scratchdimen#4 \fi \advance\scratchdimen\MPw{#1}% \ScaledPointsToBigPoints{\number\scratchdimen}\TextW % \scratchdimen\MPy{#1}\relax \ifdim\scratchdimen<#5 \ScaledPointsToBigPoints{0}\TextY \multiply\scratchdimen 2 \else \advance\scratchdimen-#5 \ScaledPointsToBigPoints{\number\scratchdimen}\TextY \advance\scratchdimen#5 \advance\scratchdimen#5 \fi \advance\scratchdimen\MPh{#1}% \ScaledPointsToBigPoints{\number\scratchdimen}\TextH % \def\PDFpageviewkey{ fitr \TextX\space\TextY\space\TextW\space\TextH}% \def\PDFpageviewwrd{ /FitR \TextX\space\TextY\space\TextW\space\TextH}% \edef\PDFpageview{/View [\PDFpageviewwrd]}} \dontcomplain \def\StartPage#1% {\doStartPage{1}{#1}} \def\doStartPage#1#2% {\def\StopPage{\doStopPage{#1}{#2}}% \setbox\scratchbox=\hbox\bgroup \valign\bgroup\ignorespaces##\vss\cr} \def\doStopPage#1#2% {\cr \egroup \egroup \setbox\scratchbox=\vbox {\vskip100pt \hbox \ifcase#1 spread 200pt \else to \wd\scratchbox \fi {\hss \switchtobodyfont[big]% \bfd\setupinterlinespace \ifcase#1\else \SetBlowUp{title:\realfolio}\BlowX\BlowY\BlowH\BlowV \fi \hpos{title:\realfolio} {\framed [frame=off,align=middle, foregroundcolor=white, background={title,blowup}] {#2}}% \hss} \vskip100pt \box\scratchbox} \doFlushPage} \def\doFlushPage {\scratchdimen=\ht\scratchbox \advance\scratchdimen \dp\scratchbox \advance\scratchdimen 100pt \edef\height{\the\scratchdimen} \scratchdimen=\wd\scratchbox \advance\scratchdimen 100pt \edef\width {\the\scratchdimen} \expanded{\definepapersize[MASTER][width=\width,height=\height]} \setuppapersize [MASTER][MASTER] \setuplayout [topspace=25pt,backspace=25pt, width=middle,header=0pt,footer=0pt,height=middle] \centerbox{\box\scratchbox} \page} \def\StartTopic#1% {\unskip\unskip\cr \doglobal\increment(\CurrentBlaBla,100)% \vbox\bgroup \vskip100pt \bgroup \definecolor[FrameColor][TitleColor] \switchtobodyfont[big] \bfd\setupinterlinespace \xStartText#1\xStopText \vskip25pt \egroup} \def\StopTopic% {\vskip-\lastskip \vskip100pt \egroup \ignorespaces} \def\TitlePage#1% {\doStartPage{0}{\def\\{\vskip1ex\bfc\def\\{\vskip1ex\bfb}}#1} \StopPage} \doifnotmode{demo}{\endinput} \setupoutput[pdftex] \starttext \TitlePage{About Text\\Today's Talk\\Hans Hagen} \StartPage{The First Page} \StartTopic{Some Text} \StartText \input tufte \StopText \StartText \input knuth \StopText \StartText \input zapf \StopText \StartText \input knuth \StopText \StopTopic \StartTopic{Another Text} \StartText \input tufte \StopText \StartText \input zapf \StopText \StartText \input knuth \StopText \StopTopic \StartTopic{Some More Text} \StartText \input tufte \StopText \StartText \input knuth \StopText \StartText \input zapf \StopText \StartText \input tufte \StopText \StopTopic \StartTopic{Some Text Agian} \StartText \input tufte \StopText \StartText \input zapf \StopText \StartText \input knuth \StopText \StartText \input tufte \StopText \StopTopic \StopPage \StartPage{The Second Page} \StartTopic{Some Text} \StartText \input tufte \StopText \StartText \input knuth \StopText \StartText \input zapf \StopText \StartText \input tufte \StopText \StartText \input knuth \StopText \StartText \input zapf \StopText \StopTopic \StartTopic{Another Text} \StartText \input tufte \StopText \StartText \input knuth \StopText \StartText \input zapf \StopText \StopTopic \StartTopic{Some Nice Text} \StartText \input tufte \StopText \StartText \input knuth \StopText \StartText \input zapf \StopText \StartText \input tufte \StopText \StartText \input tufte \StopText \StopTopic \StartTopic{Some Funny Text} \StartText \input tufte \StopText \StartText \input knuth \StopText \StopTopic \StartTopic{Quite Some Text} \StartText \input tufte \StopText \StartText \input knuth \StopText \StartText \input zapf \StopText \StartText \input tufte \StopText \StartText \input knuth \StopText \StartText \input zapf \StopText \StartText \input tufte \StopText \StartText \input knuth \StopText \StartText \input zapf \StopText \StopTopic \StartTopic{Even More Text} \StartText \input knuth \StopText \StartText \input zapf \StopText \StartText \input tufte \StopText \StartText \input knuth \StopText \StartText \input zapf \StopText \StopTopic \StopPage \StartPage{The Third Page} \StartTopic{Some Short Text} \StartText \input tufte \StopText \StartText \input knuth \StopText \StartText \input zapf \StopText \StopTopic \StartTopic{Some Minimal Text} \StartText \input tufte \StopText \StartText \input zapf \StopText \StopTopic \StartTopic{Some More Text} \StartText \input tufte \StopText \StartText \input knuth \StopText \StartText \input zapf \StopText \StartText \input tufte \StopText \StartText \input tufte \StopText \StopTopic \StopPage \stoptext --------------070501070707020701060209 Content-Type: text/x-tex; name="pre-mml.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pre-mml.tex" % output=pdftex \setupbodyfont[lbr] \usemodule[pre-17,mathml] %\definecolor[BackColor][s=1] %\definecolor[white] [s=0] \setupbodyfont[17.3pt,ss] \setuptyping[bodyfont=12pt] \useexternaldocument [manual] [t:/manuals/xml/mmlprime] \useexternaldocument [suite] [t:/manuals/xml/mmlexamp] \useurl [site] [http://www.pragma-ade.com] \useurl [site] [http://200.1.1.25/codindex.htm] \starttext \TitlePage{Welcome to MathML\\how to present your math content\\Hans Hagen} \StartPage{Introduction} \StartTopic{What is \TeX} \StartText \TeX\ is a general purpose typographic (macro) programming language. \StopText \StartText \TeX\ has a pretty good reputation for typesetting (complicated) math formulas. \StopText \StartText \TeX\ uses \type {\}'s and \type {$}'s and other funny characters to signal special actions. \StopText \StartText \TeX\ is almost 20 years old, and that's makes its users a weird species. \StopText \StartText Although \TeX\ can be used to make beautiful documents, it is (no longer) a first choice for typesetting jobs. \StopText \StartText Many \TeX\ documents sources look awful. \StopText \StopTopic \StartTopic{What is XML} \StartText XML is a language for coding all kind of documents. \StopText \StartText XML looks like HTML and thereby it is pretty hip and popular. \StopText \StartText XML is based on SGML and thereby also quite old. \StopText \StartText XML also uses funny characters, like \type {<}, \type {>}, and \type {&}, but can look quite structured (apart from other funny characters). \StopText \StartText Thanks to some good public relations, XML is now seen as the ultimate solution for coding documents. \StopText \StopTopic \StartTopic{Math in \TeX} \StartText In \TeX\ you enter math in a rather natural flow. \StopText \StartText \TeX\ permits you to optimize the visual appearance of a formula. \StopText \StartText It's non||trivial to make a document consistent, especially when more authors are involved. \StopText \StartText For simple formulas, coding in \TeX\ is fast. \StopText \StopTopic \StartTopic{Math in XML} \StartText Coding math in XML is more verbose than in \TeX, and is called MathML. \StopText \StartText You can code in either presentational, or in content MathML. \StopText \StartText In presentational markup, you compose a formula of its base typographic components. \StopText \StartText In content markup, you define a formula in terms of what it means (represents). \StopText \StartText Coding in presentational markup is not so much different from coding in \TeX, although it's more strict and verbose. \StopText \StartText Coding in content markup is less flexible, but more promising from the point of view of reusing information and consistent typography. \StopText \StopTopic \StopPage \StartPage{Exploration} \StartTopic{Presentational Markup} \StartText You can summarize presentational markup as: what you key is what you get. \StopText \StartText \startbuffer x = 1 \stopbuffer \hbox{\hbox{\processXMLbuffer}} \typebuffer \StopText \StartText \startbuffer x 1 \stopbuffer \hbox{\hbox{\processXMLbuffer}} \typebuffer \StopText \StartText \startbuffer sin x 2 \stopbuffer \hbox{\hbox{\processXMLbuffer}} \typebuffer \StopText \StartText \startbuffer sin x 2 \stopbuffer \hbox{\hbox{\processXMLbuffer}} \typebuffer \StopText \StopTopic \StartTopic{Content Markup} \StartText You can summarize content markup as: you get typeset what you think. \StopText \StartText \startbuffer x 1 \stopbuffer \hbox{\hbox{\processXMLbuffer}} \typebuffer \StopText \StartText \startbuffer x 1 \stopbuffer \hbox{\hbox{\processXMLbuffer}} \typebuffer \StopText \StartText \startbuffer x 2 \stopbuffer \hbox{\hbox{\processXMLbuffer}} \typebuffer \StopText \StartText \startbuffer x 2 \stopbuffer \hbox{\hbox{\processXMLbuffer}} \typebuffer \StopText \StopTopic \StartTopic{Mixed Markup} \StartText Occasionally (or for some frequently) MathML is not rich enough. In that case you add \TeX\ code to your formula. \StopText \StartText \startbuffer x 5 x_i = 5 \stopbuffer \hbox{\hbox{\processXMLbuffer}} \typebuffer \StopText \StartText As an alternative, you can (mildly) enhance a formula marked up in content MathML with presentational elements. \StopText \StartText \startbuffer x 1 5 \stopbuffer \hbox{\hbox{\processXMLbuffer}} \typebuffer \StopText \StopTopic \StartTopic{Processing Instruction} \StartText Given that the formulas are coded consistently, you can influence the layout by providing local or global processing instructions. \StopText \StartText \startbuffer 7 x \stopbuffer \hbox{\hbox{\processXMLbuffer}} \typebuffer \StopText \StartText \startbuffer 7 x \stopbuffer \hbox{\hbox{\processXMLbuffer}} \typebuffer \StopText \StopTopic \StartTopic{MathML in \ConTeXt} \StartText In \ConTeXt, XML support is build into the kernel. \StopText \StartText MathML support is supported by core \type {xtag} filters, to be loaded at runtime. \StopText \StartText You can embed MathML in normal \ConTeXt\ documents: \starttyping \startXMLdata ... \stopXMLdata \XMLdata { ... } \stoptyping \StopText \StartText Such mixed documents can be converted to pure XML quite easily, which provides a nice migration path. \StopText \StartText There will be much more layout options, as well as support for units, chemistry, and complex formula building. \StopText \StartText There is a \goto {MathML manual} [manual::], an \goto {example suite} [suite::], and a \goto {experimentation site} [site::]. And there will be more. \StopText \StopTopic \StartTopic{Some observations} \StartText Presentational MathML is not that useful. \StopText \StartText Content MathML is not rich enough. \StopText \StartText For inline math we need something different. \StopText \StartText For presentational MathML we need editors with restrictions. \StopText \StartText For content MathML we need conceptual editors. \StopText \StartText So \unknown\ we're not yet there. \StopText \StopTopic \StopPage \stoptext --------------070501070707020701060209 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --------------070501070707020701060209--