Wolfram Library Archive


Courseware Demos MathSource Technical Notes
All Collections Articles Books Conference Proceedings
Title Downloads

Cooking Up Mathematica Cookbook
Author

Salvatore Mangano
Organization: Into Technology Inc./O'Reilly Media
Conference

International Mathematica User Conference 2008
Conference location

Champaign, IL
Description

This presentation will cover the author's experience in writing the forthcoming O'Reilly Mathematica Cookbook using the Mathematica front-end as the authoring environment. The Mathematica front-end is the obvious environment to author a book on Mathematica because it is trivial to test example code as you write. However, most publishers will not accept documents in notebook form. In the case of O'Reilly, the author needed to convert notebooks to DocBook form.

The presentation will contrast two approaches that the author tried. The first used Notebook export to XHTML+MathML followed by XSLT 2.0 processing step to create DocBook output. The second used Mathematica's ability to manipulate notebooks in Mathematica code itself. Excerpts from the Cookbook will be used to illustrate challenges faced while automating the conversion process. More generally, authors need to automate tasks like chapter numbering, table of contents generation, figure numbering and referencing, image export, MathML export, etc. Examples of programming these tasks at the XML level using XSLT will be contrasted with notebook level programming.

Mathematica 6's advanced stylesheet facility was integral to the automation process and the presentation will demonstrate the value of using custom stylesheets and the subtleties of customizing them.
Subject

*Wolfram Technology
URL

http://www.wolfram.com/news/events/userconf2008
Downloads Download Wolfram CDF Player

Download
CookingUpAMathematicaCookbook_Abstract.nb (252.3 KB) - Mathematica Notebook
Download
CookingUpAMathematicaCookbook_Presentation.nb (243.9 KB) - Mathematica Notebook
Download
Stylesheet.nb (285.2 KB) - Mathematica Notebook