https://wiki.contextgarden.net/api.php?action=feedcontributions&user=Jacintheford&feedformat=atomWiki - User contributions [en]2024-03-29T12:31:44ZUser contributionsMediaWiki 1.34.1https://wiki.contextgarden.net/index.php?title=XML&diff=23137XML2016-08-26T02:43:59Z<p>Jacintheford: </p>
<hr />
<div>< [[Main Page]] | [[DocBook]] | [[MathML]] | [[Formatting Objects]] ><br />
<br />
If you want to get more from your code than just a PDF (or DVI) output, e.g. HTML, or if you need a good typesetting machine for your XML code, you're right with ConTeXt.<br />
<br />
Handling XML in ConTeXt has improved dramatically with the advent of MkIV. A new infrastructure, based on Lua, makes typesetting, manipulating, filtering, reusing XML much much easier than before. Unfortunately, this means that most of the existing documentation is now obsolete. As a rule of thumb: in general, the "old" MkII code uses upper-case <tt>XML</tt> in its commands, the new MkIV code uses lower-case <tt>xml</tt>. <br />
<br />
Here are some links to existing docs:<br />
<br />
==Documents about XML in MkIV==<br />
<br />
===General Information===<br />
* [http://www.papdan.com/ Melbourne Web Developer]<br />
* [http://pragma-ade.com/show-man-44.htm xml-mkiv.pdf]<br />
* [http://www.phillro.com.au/ Airless Spray Gun]<br />
* [[TEI_xml| TEI xml]] (typesetting editions encoded in TEI xml)<br />
* [[Verbatim_XML | Verbatim/VIM in XML]]<br />
* [[xtables#XML | Processing XML tables as Extreme Tables]]<br />
<br />
===Processing XML with lua===<br />
* [[XML_Lua| XML in Lua]] (manipulating xml in Lua)<br />
<br />
===XHTML in MKIV===<br />
* [http://dl.contextgarden.net/myway/tas/xhtml.pdf Thomas' MyWay on processing XHTML with MKIV]<br />
<br />
<br />
==Documents about XML in MkII (obsolete)==<br />
<br />
===XML/ConTeXt in general===<br />
* [http://www.medicaljobsaustralia.com/ Healtcare Job]<br />
* [https://healthcarecareerblog.wordpress.com/2016/08/12/5-great-tips-for-your-career-as-a-medical-assistant/ Medical Careers]<br />
* [[manual:example.pdf|XML in ConTeXt]] by Pragma (2001)<br />
* [http://www.leverkruid.eu/context/index.html XML DocBook in ConTeXt] by Simon Pepping<br />
* [http://getfo.sourceforge.net/context_xml/index.html XML ConTeXt] by Paul Tremblay<br />
* [http://www.pragma-ade.com/show-mag-9.htm Dealing with XML] by Pragma (about XML, XSLT and typesetting without TeX code)<br />
* XML Basics: [[Mixing_XML_and_ConTeXt]] using the pre-defined ContML vocabulary<br />
<br />
===Additions and Details of XML/ConTeXt===<br />
* [[manual:xfigures-p.pdf|Figures (XML image databases)]] ([[manual:xfigures-s.pdf|screen]]) by Pragma (2001); see [[Image Database]]<br />
* [[Two pass tag processing example]] (float and figure tags)<br />
* [[manual:xsteps-p.pdf|Steps (XML step charts)]] ([[manual:xsteps-s.pdf|screen]]) by Pragma (2001)<br />
* [[manual:xxmldir.pdf|XML DIR (directory and file access)]] by Pragma<br />
* [[Interface.rnc]], the Relax NG schema of texshow-web<br />
* [[manual:xmanipulate.pdf|Preprocessing Source Files / Manipulating Graphic Resources]] by Pragma<br />
** a simple [[ctx|.ctx example]] of processing xml files<br />
* [[manual:xcorresp.pdf|Serial Letters]] (using a XML database) by Pragma (2003)<br />
<br />
===eXaMpLe framework=== <br />
(batch processing)<br />
* [[manual:ex-ample.pdf|Example Interface]] (empty)<br />
* [[manual:ex-gui.pdf|Example GUI]]<br />
* [[manual:ex-imple.pdf|Eximple Toolkit]] (simple subset of Example)<br />
<br />
===MathML===<br />
* [[manual:pre-mml.pdf|MathML Intro presentation]] by Pragma<br />
* [[manual:mmlprime.pdf|MathML manual]] by Pragma (2001)<br />
* [[manual:mmlexamp.pdf|MathML in ConTeXt]] by Pragma (2001)<br />
* [[manual:xmathml-p.pdf|MathML support]] ([[manual:xmathml-s.pdf|screen]]) by Pragma (2001)<br />
* [[manual:xchemml-p.pdf|ChemML (MathML extension for chemistry)]] ([[manual:xchemml-s.pdf|screen]]) by Pragma<br />
* [[manual:xphysml-p.pdf|PhysML (MathML extension for physics)]] ([[manual:xphysml-s.pdf|screen]]) by Pragma<br />
<br />
===XSL/FO===<br />
* XSL/FO: [[Formatting Objects]]<br />
* [[ConTeXt FO and XML]] is a tutorial with a view to presenting ConTeXt from the XSL-FO mindset.<br />
<br />
[[Category:XML]]</div>Jacinthefordhttps://wiki.contextgarden.net/index.php?title=Math&diff=23135Math2016-08-26T02:24:57Z<p>Jacintheford: </p>
<hr />
<div>< [[Main Page]] | [[Math with newmat]] | [[MathML]] | [[Math_structures]]><br />
<br />
== Introduction ==<br />
<br />
TeX was designed for ease of typesetting books that contained mathematics. As ConTeXt is built on top of TeX, it inherits all those features. In addition to these, ConTeXt adds lot of macros to make the typesetting of mathematics easier.<br />
<br />
There are '''two''' kinds of '''math modes''' --- '''inline math and display math'''. Mathematical expressions that are written with the running text are called inline math; while mathematical expressions that break the flow of the text (such as formulas or equations) are called display math. TeX takes care of proper spacing around expressions and provides macros to typeset most mathematical constructs.<br />
Complicated expressions can be built by working in steps---break down the expression into sub-expressions, build the sub-expressions and then combine them to get the complicated expression.<br />
<br />
The basics of typesetting math in ConTeXt is explained here.<br />
<br />
=== Display math mode ===<br />
Type<br />
<br />
<texcode><br />
\startformula ... \stopformula<br />
</texcode><br />
<br />
to get display math mode.<br />
<br />
=== Inline math mode ===<br />
There are four equivalent commands to get inline math mode:<br />
<br />
<texcode><br />
$ ... $ % TeX style.<br />
\m{ ... } <br />
\math{ ... } <br />
\mathematics{ ... }<br />
</texcode><br />
<br />
=== Note to Plain TeX Users ===<br />
ConTeXt is plain TeX compatible. So, if you have any old document written in plain TeX, it will work with ConTeXt. This does not mean that you will get pixel by pixel identical output with ConTeXt. For inline math, everything that you learnt for plain TeX is also true for ConTeXt. However, display math is significantly different. '''Do not use <code>$$ .... $$</code>''' to write display math formulas in ConTeXt, since you will not get the correct spacing around the formulas. Instead use <br />
<br />
<texcode><br />
\startformula ... \stopformula<br />
</texcode><br />
<br />
See [[Math/Display]] for more details on how to use display math in ConTeXt.<br />
<br />
=== Note to AMSTeX/LaTeX Users ===<br />
ConTeXt offers almost all the features that are present in AMSTeX and LaTeX. However, ConTeXt syntax is different. See this [http://dl.contextgarden.net/myway/context-latex-math.pdf My Way] for how to 'translate' from amsmath syntax to ConTeXt syntax. [[LaTeX_Math_in_ConTeXt]] gives some brief ideas on how to get the LaTeX syntax to run in ConTeXt.<br />
<br />
== The details ==<br />
<br />
=== Math symbols ===<br />
* [[Math/basic | How to input math]] (binary relations, greek letters, subscripts and superscripts)<br />
* Accents<br />
* underbrace, overbrace<br />
* [[Math/fractions | Fractions, Binomials, genfrac, continued fractions.]]<br />
* Delimiters (big, bigg, left, middle, right)<br />
* Integrals and Sums<br />
* ([[Math/functions|Log like]]) functions<br />
* dots<br />
* [[Multiline_equations#Cases|Cases]], matrices, bordermatrix<br />
* Arrows (see [http://dl.contextgarden.net/myway/matharrows.pdf Math Arrows])<br />
* [[Vectors]]<br />
* [[Product integral]]<br />
<br />
=== Display Math ===<br />
* [[Math/Display | Formula, formula number]]<br />
* [[Multiline equations]] (see [http://dl.contextgarden.net/myway/mathalign.pdf Using \mathalign and friends])<br />
* Math sub-alignment<br />
* [[Math spacing]]<br />
* Discussion: [[User_talk:Zenlima | summary of formula numbering problems]] (comment: unverified)<br />
<br />
==Math Fonts==<br />
<br />
''See [[Math fonts]]'' for the main article about this subject.<br />
<br />
== Other Methods ==<br />
* There are two different math modules on [http://dante.ctan.org/tex-archive/macros/context/contrib/maths/ CTAN], [[Math with nath|nath]] and [[Math with amsl|amsl]]. And there's a [[Math with newmat|new math]] module in the distribution.<br />
* Context now has inbuilt support for [[Multiline equations]]<br />
* It is also possible to use most [[LaTeX Math in ConTeXt|LaTeX equations in ConTeXt]] with a relatively small set of supporting definitions.<br />
* The "native" ConTeXt way of math is [[MathML]], an application of [[XML]] - rather verbose but mighty.<br />
<br />
==Science==<br />
* Esp. for physics there’s the [[Units]] module.<br />
* Additions to [[MathML]] are PhysML and ChemML.<br />
* [[Chemistry]]<br />
* There's a module for chemical structure formulae: [[Chemistry|PPCHTeX]] (works also with LaTeX).<br />
<br />
==Number Formatting==<br />
There's a special command, <cmd>digits</cmd>, with its own manual about formatting numbers, see [http://www.pragma-ade.com/general/magazines/mag-0003.pdf Pasting digits together]<br />
<br />
==Evaluating expressions in ConTeXt==<br />
(i.e. ''doing'' math)<br />
* See also [[Expressions]].<br />
<br />
==Sources==<br />
* [http://www.medicaljobsaustralia.com/ Health Jobs Australia]<br />
* [http://www.medicaljobsaustralia.com/jobs/australia/nurses-and-midwives/ Nursing in Australia]<br />
* [http://www.papdan.com/seo-services-search-engine-optimisation.php SEO Melbourne]<br />
* [http://www.phillro.com.au/ Airless Spray Gun]<br />
<br />
<br />
[[Category:Math]]</div>Jacintheford