SlideShare uma empresa Scribd logo
1 de 37
Mathematical Content in
Documentation
DITA Europe, November 2008
DITA Europe 2008: Mathematical Content
in Documentation
1
Introduction
• Lois Patterson
• Creating technical documentation since 1995
• Currently working at QuIC Financial
Technologies: www.quic.com
DITA Europe 2008: Mathematical Content
in Documentation
2
Mathematical content in
documentation: the challenges
In general:
• Mixture of text and alien formats
• Not understood by many tools
• Output is always a challenge
For me:
• Legacy documentation
• Multiple input formats
• Highly complex, mathematical content
DITA Europe 2008: Mathematical Content
in Documentation
3
Where do we start?
• Tools galore, but no standard solution.
• Many ways to create different solutions.
• What solutions best meet everyone’s needs:
SMEs, tech writers, users?
DITA Europe 2008: Mathematical Content
in Documentation
4
What is mathematical content?
• Sometimes just graphics
• Equations created in Word or FrameMaker
• TeX code
• SVG code
• MathML
• Any others?
DITA Europe 2008: Mathematical Content
in Documentation
5
Where does DITA fit?
• DITA ≠ out of the box solution for math.
• DITA and the ideas flowing from DITA still
valuable for mathematical content.
• Maturity model concept can also apply to
mathematical content within DITA.
DITA Europe 2008: Mathematical Content
in Documentation
6
DITA Maturity Model
DITA Europe 2008: Mathematical Content
in Documentation
7
Presentation and markup for math
• “Just” graphics and text
• TeX/LaTeX
• MathML
• SVG (Scalable Vector Graphics)
DITA Europe 2008: Mathematical Content
in Documentation
8
TeX/LaTeX: a brief introduction
• For scientific and mathematical notation, TeX
typesetting language invented in 1976.
• LaTeX is TeX plus macros for typesetting.
• Many theses and scientific articles written in
TeX/LaTeX. E.g. http://www.livingreviews.org
• TeX is a presentation language; no semantic
meaning.
DITA Europe 2008: Mathematical Content
in Documentation
9
What is MathML?
• “[An] XML application for describing mathematical
notation and capturing both its structure and
content. The goal of MathML is to enable
mathematics to be served, received, and processed
on the World Wide Web, just as HTML has enabled
this functionality for text.”http://www.w3.org/Math/
• Presentation MathML, focus on presentation,
produces very long markup.
• Content MathML includes no presentation
information. Can use stylesheets.
DITA Europe 2008: Mathematical Content
in Documentation
10
Content MathML example
DITA Europe 2008: Mathematical Content
in Documentation
11
One equation: multiple formats
Black-Scholes equation - Nobel-Prize-winning equation.
Foundation of financial mathematics.
We’ll see:
PNG
TeX
MathML
SVG
DITA Europe 2008: Mathematical Content
in Documentation
12
Black-Scholes equation example (from Wikipedia)
Highlighted equation is a .png file, with
the TeX markup as ALT text in the HTML
markup.
DITA Europe 2008: Mathematical Content
in Documentation
13
Black-Scholes equation format
comparison
Graphic (.png)
TeX Markup
C(S_0,T) = e^{-rT}(FPhi(d_1) - KPhi(d_2))
What about MathML for this equation?
Too long to show on one page.
DITA Europe 2008: Mathematical Content
in Documentation
14
Black-Scholes: MathML
LaTex converted to MathML,
displayed in browser MathML Source
DITA Europe 2008: Mathematical Content
in Documentation
15
Converted LaTeX to Presentation MathML with a LaTeX to
MathML converter: http://www.maths.nottingham.ac.uk/personal/drw/lm.html
Black-Scholes equation example:
SVG
• Using converter*, I produced SVG markup.
• SVG is XML markup, also viewable in FireFox.
• Can be rendered as raster graphics with Java
or Python packages.
• Small snippet:
<symbol overflow="visible" id="glyph2-1"><path style="stroke: none;" d="M 3.59375 -2.21875 C 3.59375 -2.984375 3.5 -3.546875 3.1875 -4.03125 C
2.96875 -4.34375 2.53125 -4.625 1.984375 -4.625 C 0.359375 -4.625 0.359375 -2.71875 0.359375 -2.21875 C 0.359375 -1.71875 0.359375 0.140625
1.984375 0.140625 C 3.59375 0.140625 3.59375 -1.71875 3.59375 -2.21875 Z M 1.984375 -0.0625 C 1.65625 -0.0625 1.234375 -0.25 1.09375 -0.8125
C 1 -1.21875 1 -1.796875 1 -2.3125 C 1 -2.828125 1 -3.359375 1.09375 -3.734375 C 1.25 -4.28125 1.6875 -4.4375 1.984375 -4.4375 C 2.359375
-4.4375 2.71875 -4.203125 2.84375 -3.796875 C 2.953125 -3.421875 2.96875 -2.921875 2.96875 -2.3125 C 2.96875 -1.796875 2.96875 -1.28125
2.875 -0.84375 C 2.734375 -0.203125 2.265625 -0.0625 1.984375 -0.0625 Z M 1.984375 -0.0625 "/></symbol>
* http://www.tlhiv.org/ltxpreview/ DITA Europe 2008: Mathematical Content
in Documentation
16
DITA and MathML and SVG
• DITA 1.1 supports the <foreign> element.
• Can specialize to support the inclusion of
MathML and SVG in your DITA topics.
• If we use a combination of standard DITA,
MathML, and SVG, will we achieve utopia?
DITA Europe 2008: Mathematical Content
in Documentation
17
Customize DITA Open Toolkit to
work with MathML and SVG
• Can use the Plus Plugins provided on the DITA-
Users group:
http://tech.groups.yahoo.com/group/dita-users/fi
• DITA-Users group provides a great deal of help
– highly recommended!
• XMetal and MathFlow can be tweaked so that
the DITA Open Toolkit works with
MathML/SVG.
DITA Europe 2008: Mathematical Content
in Documentation
18
Documentation lifecycle
DITA Europe 2008: Mathematical Content
in Documentation
19
Input
• Microsoft Word with MathType
• Open Office with built-in math editor
• FrameMaker with Equation Editor
• XMetal (or Arbortext) + MathFlow
• TeX/LaTeX
• Scribbled on scrap paper
• Create yourself, or take what is given you?
DITA Europe 2008: Mathematical Content
in Documentation
20
Input – standards or not?
• SMEs provide content however I can get it.
• Enforcement of standards for input would be
counterproductive.
• Anyone with success enforcing standards for
input?
• Difficulty is that many input formats do not
play well with DITA.
DITA Europe 2008: Mathematical Content
in Documentation
21
Input: Microsoft Word with
MathType
• A WYSIWYG editor, MathType can output
Presentation MathML or LaTeX.
• Somewhat harder from LaTeX or MathML
back to editing in MathType.
• How to avoid cut and paste if your content is
in DITA topics?
DITA Europe 2008: Mathematical Content
in Documentation
22
Open Office with built-in math
editor
• Free tool.
• Easy to use.
• Math editor outputs MathML.
• Integration with DITA possible, but not
seamless.
DITA Europe 2008: Mathematical Content
in Documentation
23
FrameMaker with Equation Editor
• FrameMaker has many positive qualities.
• Only supports DITA 1.0 currently - OK if your
math content will just be graphics.
• Equation Editor does not “naturally” output to
LaTeX or MathML.
• Can use in conjunction with Mif2Go, but still
math will be graphics only.
DITA Europe 2008: Mathematical Content
in Documentation
24
XMetal (or Arbortext) + MathFlow
• Slick combination, fun to work with.
• MathFlow is similar to MathType (both are
Design Science products).
• Can customize the DITA OT that comes with
XMetal/Arbortext for math output.
• Perfect for DITA authoring.
• Unlikely your SMEs use this combination.
DITA Europe 2008: Mathematical Content
in Documentation
25
MathFlow Exchange
• ImportsWord + MathType documents, and
exports them into Arbortext as XML +
MathML. You may be able to DITA-cize the
content.
• Is DITA the guiding principle or an
afterthought?
• Dealing with mathematical content is like a
never-ending conversion project.
DITA Europe 2008: Mathematical Content
in Documentation
26
LaTeX input
• Convert LaTeX equations to MathML, or
graphics.
• Convert LaTeX documents (like an article) to
HTML + graphics.
• Use Hermes technology to convert to xHTML +
graphics.
• No straight line to DITA.
DITA Europe 2008: Mathematical Content
in Documentation
27
Scrap paper input
• More work for me, but I can enter it into
whatever program I like!
DITA Europe 2008: Mathematical Content
in Documentation
28
Review strategies
• Get basic input, integrate it with non-math
text.
• Review is crucial, but how?
• If you use DITA, difficult to allow direct editing
by SMEs.
• In practice with non-DITA documentation,
SMEs rarely directly edit anyway.
DITA Europe 2008: Mathematical Content
in Documentation
29
Ideal review solution
• Our SMEs want to be able to review and edit
equations in real time.
• How?
• Publish DITA content to a Confluence Wiki, enable
editing, republish.
• Lombardi Software – DITA to Wiki
• Many details to work out.
• Keeping TeX markup accessible will be paramount.
DITA Europe 2008: Mathematical Content
in Documentation
30
Publishing outputs
Some choices:
• xHTML + MathML
• xHTML + graphics
• .chm with graphics
• PDF with graphics
All require modifying the DITA OT. Plus Plugins
(as mentioned earlier) are very helpful.
DITA Europe 2008: Mathematical Content
in Documentation
31
Output: xHTML with MathML
• If everyone uses FireFox, or Internet Explorer
with MathPlayer, this is a great solution.
• Falls apart if a documentation user has a
different environment.
• Still need ways of introducing index,
searchability, etc. (like you can do with
EclipseHelp). Standard DITA issues.
DITA Europe 2008: Mathematical Content
in Documentation
32
Other output formats
• xHTML + graphics
• .chm with graphics
• PDF with graphics
If you have MathML and want these formats,
you must render MathML as graphics.
This will require modifying build scripts,
installing DITA OT plugins, and using Java or
other rendering tools.
DITA Europe 2008: Mathematical Content
in Documentation
33
Rendering tools
• MimeTeX renders TeX equations as .gifs.
• Java packages jeuclid and batik render
MathML.
• Antenna House renders MathML for HTML
and PDF.
www.forkosh.dreamhost.com/mimetex.html
jeuclid.sourceforge.net/
xmlgraphics.apache.org/batik/
www.antennahouse.com/product/mathml.htm
DITA Europe 2008: Mathematical Content
in Documentation
34
Less-explored options
• Building applications with Adobe AIR.
• Adobe PDFs can manage some mathematically
relevant wizardry.
• What could you do with Math and Flash?
• How would these integrate with DITA?
DITA Europe 2008: Mathematical Content
in Documentation
35
As we become more mature . . . .
• Make math equations searchable.
• Work with metadata, attributes.
• This is a Ph.D thesis topic, and not one we will
solve here.
• Google the following:
Mowgli project
A More Canonical Form of Content MathML to Facilitate Math
Search
An Investigation of Index Formats for the Search of MathML
Objects
DITA Europe 2008: Mathematical Content
in Documentation
36
DITA Europe 2008
• Thank you for attending.
• Resources URL:
http://dita.xml.org/blog/loisbc
• Email: LoisRPatterson@gmail.com
DITA Europe 2008: Mathematical Content
in Documentation
37

Mais conteúdo relacionado

Semelhante a Mathematical content in documentation (DITA Europe 2008)

Data Day Texas 2017: Scaling Data Science at Stitch Fix
Data Day Texas 2017: Scaling Data Science at Stitch FixData Day Texas 2017: Scaling Data Science at Stitch Fix
Data Day Texas 2017: Scaling Data Science at Stitch Fix
Stefan Krawczyk
 
Dita ot pipeline webinar
Dita ot pipeline webinarDita ot pipeline webinar
Dita ot pipeline webinar
Suite Solutions
 

Semelhante a Mathematical content in documentation (DITA Europe 2008) (20)

Stupid DITA Tricks: After-The-Fact Specialization: Treating Aircraft Manuals ...
Stupid DITA Tricks:After-The-Fact Specialization: Treating Aircraft Manuals ...Stupid DITA Tricks:After-The-Fact Specialization: Treating Aircraft Manuals ...
Stupid DITA Tricks: After-The-Fact Specialization: Treating Aircraft Manuals ...
 
DITA and Metadata on an Enterprise Scale
DITA and Metadata on an Enterprise ScaleDITA and Metadata on an Enterprise Scale
DITA and Metadata on an Enterprise Scale
 
Keith Schengili-Roberts - The Rise of SME within Technical Communications
Keith Schengili-Roberts - The Rise of SME within Technical CommunicationsKeith Schengili-Roberts - The Rise of SME within Technical Communications
Keith Schengili-Roberts - The Rise of SME within Technical Communications
 
Math Stack - Autum
Math Stack - AutumMath Stack - Autum
Math Stack - Autum
 
Using Markdown and Lightweight DITA in a Collaborative Environment
Using Markdown and Lightweight DITA in a Collaborative EnvironmentUsing Markdown and Lightweight DITA in a Collaborative Environment
Using Markdown and Lightweight DITA in a Collaborative Environment
 
The Evolution of DITAs
The Evolution of DITAsThe Evolution of DITAs
The Evolution of DITAs
 
Steering the Course with Helm
Steering the Course with HelmSteering the Course with Helm
Steering the Course with Helm
 
DITA on a Shoe String
DITA on a Shoe StringDITA on a Shoe String
DITA on a Shoe String
 
Why Is DITA So Hard?
Why Is DITA So Hard?Why Is DITA So Hard?
Why Is DITA So Hard?
 
What is mmd - Multi Markdown ?
What is mmd - Multi Markdown ?What is mmd - Multi Markdown ?
What is mmd - Multi Markdown ?
 
Sustainable XML for Publishing Applications: DITA Makes It Possible
Sustainable XML for Publishing Applications: DITA Makes It PossibleSustainable XML for Publishing Applications: DITA Makes It Possible
Sustainable XML for Publishing Applications: DITA Makes It Possible
 
7358 mathcad chart ts_en
7358 mathcad chart ts_en7358 mathcad chart ts_en
7358 mathcad chart ts_en
 
MOPs & ML Pipelines on GCP - Session 6, RGDC
MOPs & ML Pipelines on GCP - Session 6, RGDCMOPs & ML Pipelines on GCP - Session 6, RGDC
MOPs & ML Pipelines on GCP - Session 6, RGDC
 
Optimization Problems Solved by Different Platforms Say Optimum Tool Box (Mat...
Optimization Problems Solved by Different Platforms Say Optimum Tool Box (Mat...Optimization Problems Solved by Different Platforms Say Optimum Tool Box (Mat...
Optimization Problems Solved by Different Platforms Say Optimum Tool Box (Mat...
 
DITA Specialization: Tools for Visual Support
DITA Specialization: Tools for Visual SupportDITA Specialization: Tools for Visual Support
DITA Specialization: Tools for Visual Support
 
Volodymyr Lyubinets. One startup's journey of building ML pipelines for text ...
Volodymyr Lyubinets. One startup's journey of building ML pipelines for text ...Volodymyr Lyubinets. One startup's journey of building ML pipelines for text ...
Volodymyr Lyubinets. One startup's journey of building ML pipelines for text ...
 
London TensorFlow Meetup - 18th July 2017
London TensorFlow Meetup - 18th July 2017London TensorFlow Meetup - 18th July 2017
London TensorFlow Meetup - 18th July 2017
 
Data Day Texas 2017: Scaling Data Science at Stitch Fix
Data Day Texas 2017: Scaling Data Science at Stitch FixData Day Texas 2017: Scaling Data Science at Stitch Fix
Data Day Texas 2017: Scaling Data Science at Stitch Fix
 
Dita ot pipeline webinar
Dita ot pipeline webinarDita ot pipeline webinar
Dita ot pipeline webinar
 
Taxonomy of Differential Compression
Taxonomy of Differential CompressionTaxonomy of Differential Compression
Taxonomy of Differential Compression
 

Último

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 

Último (20)

Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 

Mathematical content in documentation (DITA Europe 2008)

  • 1. Mathematical Content in Documentation DITA Europe, November 2008 DITA Europe 2008: Mathematical Content in Documentation 1
  • 2. Introduction • Lois Patterson • Creating technical documentation since 1995 • Currently working at QuIC Financial Technologies: www.quic.com DITA Europe 2008: Mathematical Content in Documentation 2
  • 3. Mathematical content in documentation: the challenges In general: • Mixture of text and alien formats • Not understood by many tools • Output is always a challenge For me: • Legacy documentation • Multiple input formats • Highly complex, mathematical content DITA Europe 2008: Mathematical Content in Documentation 3
  • 4. Where do we start? • Tools galore, but no standard solution. • Many ways to create different solutions. • What solutions best meet everyone’s needs: SMEs, tech writers, users? DITA Europe 2008: Mathematical Content in Documentation 4
  • 5. What is mathematical content? • Sometimes just graphics • Equations created in Word or FrameMaker • TeX code • SVG code • MathML • Any others? DITA Europe 2008: Mathematical Content in Documentation 5
  • 6. Where does DITA fit? • DITA ≠ out of the box solution for math. • DITA and the ideas flowing from DITA still valuable for mathematical content. • Maturity model concept can also apply to mathematical content within DITA. DITA Europe 2008: Mathematical Content in Documentation 6
  • 7. DITA Maturity Model DITA Europe 2008: Mathematical Content in Documentation 7
  • 8. Presentation and markup for math • “Just” graphics and text • TeX/LaTeX • MathML • SVG (Scalable Vector Graphics) DITA Europe 2008: Mathematical Content in Documentation 8
  • 9. TeX/LaTeX: a brief introduction • For scientific and mathematical notation, TeX typesetting language invented in 1976. • LaTeX is TeX plus macros for typesetting. • Many theses and scientific articles written in TeX/LaTeX. E.g. http://www.livingreviews.org • TeX is a presentation language; no semantic meaning. DITA Europe 2008: Mathematical Content in Documentation 9
  • 10. What is MathML? • “[An] XML application for describing mathematical notation and capturing both its structure and content. The goal of MathML is to enable mathematics to be served, received, and processed on the World Wide Web, just as HTML has enabled this functionality for text.”http://www.w3.org/Math/ • Presentation MathML, focus on presentation, produces very long markup. • Content MathML includes no presentation information. Can use stylesheets. DITA Europe 2008: Mathematical Content in Documentation 10
  • 11. Content MathML example DITA Europe 2008: Mathematical Content in Documentation 11
  • 12. One equation: multiple formats Black-Scholes equation - Nobel-Prize-winning equation. Foundation of financial mathematics. We’ll see: PNG TeX MathML SVG DITA Europe 2008: Mathematical Content in Documentation 12
  • 13. Black-Scholes equation example (from Wikipedia) Highlighted equation is a .png file, with the TeX markup as ALT text in the HTML markup. DITA Europe 2008: Mathematical Content in Documentation 13
  • 14. Black-Scholes equation format comparison Graphic (.png) TeX Markup C(S_0,T) = e^{-rT}(FPhi(d_1) - KPhi(d_2)) What about MathML for this equation? Too long to show on one page. DITA Europe 2008: Mathematical Content in Documentation 14
  • 15. Black-Scholes: MathML LaTex converted to MathML, displayed in browser MathML Source DITA Europe 2008: Mathematical Content in Documentation 15 Converted LaTeX to Presentation MathML with a LaTeX to MathML converter: http://www.maths.nottingham.ac.uk/personal/drw/lm.html
  • 16. Black-Scholes equation example: SVG • Using converter*, I produced SVG markup. • SVG is XML markup, also viewable in FireFox. • Can be rendered as raster graphics with Java or Python packages. • Small snippet: <symbol overflow="visible" id="glyph2-1"><path style="stroke: none;" d="M 3.59375 -2.21875 C 3.59375 -2.984375 3.5 -3.546875 3.1875 -4.03125 C 2.96875 -4.34375 2.53125 -4.625 1.984375 -4.625 C 0.359375 -4.625 0.359375 -2.71875 0.359375 -2.21875 C 0.359375 -1.71875 0.359375 0.140625 1.984375 0.140625 C 3.59375 0.140625 3.59375 -1.71875 3.59375 -2.21875 Z M 1.984375 -0.0625 C 1.65625 -0.0625 1.234375 -0.25 1.09375 -0.8125 C 1 -1.21875 1 -1.796875 1 -2.3125 C 1 -2.828125 1 -3.359375 1.09375 -3.734375 C 1.25 -4.28125 1.6875 -4.4375 1.984375 -4.4375 C 2.359375 -4.4375 2.71875 -4.203125 2.84375 -3.796875 C 2.953125 -3.421875 2.96875 -2.921875 2.96875 -2.3125 C 2.96875 -1.796875 2.96875 -1.28125 2.875 -0.84375 C 2.734375 -0.203125 2.265625 -0.0625 1.984375 -0.0625 Z M 1.984375 -0.0625 "/></symbol> * http://www.tlhiv.org/ltxpreview/ DITA Europe 2008: Mathematical Content in Documentation 16
  • 17. DITA and MathML and SVG • DITA 1.1 supports the <foreign> element. • Can specialize to support the inclusion of MathML and SVG in your DITA topics. • If we use a combination of standard DITA, MathML, and SVG, will we achieve utopia? DITA Europe 2008: Mathematical Content in Documentation 17
  • 18. Customize DITA Open Toolkit to work with MathML and SVG • Can use the Plus Plugins provided on the DITA- Users group: http://tech.groups.yahoo.com/group/dita-users/fi • DITA-Users group provides a great deal of help – highly recommended! • XMetal and MathFlow can be tweaked so that the DITA Open Toolkit works with MathML/SVG. DITA Europe 2008: Mathematical Content in Documentation 18
  • 19. Documentation lifecycle DITA Europe 2008: Mathematical Content in Documentation 19
  • 20. Input • Microsoft Word with MathType • Open Office with built-in math editor • FrameMaker with Equation Editor • XMetal (or Arbortext) + MathFlow • TeX/LaTeX • Scribbled on scrap paper • Create yourself, or take what is given you? DITA Europe 2008: Mathematical Content in Documentation 20
  • 21. Input – standards or not? • SMEs provide content however I can get it. • Enforcement of standards for input would be counterproductive. • Anyone with success enforcing standards for input? • Difficulty is that many input formats do not play well with DITA. DITA Europe 2008: Mathematical Content in Documentation 21
  • 22. Input: Microsoft Word with MathType • A WYSIWYG editor, MathType can output Presentation MathML or LaTeX. • Somewhat harder from LaTeX or MathML back to editing in MathType. • How to avoid cut and paste if your content is in DITA topics? DITA Europe 2008: Mathematical Content in Documentation 22
  • 23. Open Office with built-in math editor • Free tool. • Easy to use. • Math editor outputs MathML. • Integration with DITA possible, but not seamless. DITA Europe 2008: Mathematical Content in Documentation 23
  • 24. FrameMaker with Equation Editor • FrameMaker has many positive qualities. • Only supports DITA 1.0 currently - OK if your math content will just be graphics. • Equation Editor does not “naturally” output to LaTeX or MathML. • Can use in conjunction with Mif2Go, but still math will be graphics only. DITA Europe 2008: Mathematical Content in Documentation 24
  • 25. XMetal (or Arbortext) + MathFlow • Slick combination, fun to work with. • MathFlow is similar to MathType (both are Design Science products). • Can customize the DITA OT that comes with XMetal/Arbortext for math output. • Perfect for DITA authoring. • Unlikely your SMEs use this combination. DITA Europe 2008: Mathematical Content in Documentation 25
  • 26. MathFlow Exchange • ImportsWord + MathType documents, and exports them into Arbortext as XML + MathML. You may be able to DITA-cize the content. • Is DITA the guiding principle or an afterthought? • Dealing with mathematical content is like a never-ending conversion project. DITA Europe 2008: Mathematical Content in Documentation 26
  • 27. LaTeX input • Convert LaTeX equations to MathML, or graphics. • Convert LaTeX documents (like an article) to HTML + graphics. • Use Hermes technology to convert to xHTML + graphics. • No straight line to DITA. DITA Europe 2008: Mathematical Content in Documentation 27
  • 28. Scrap paper input • More work for me, but I can enter it into whatever program I like! DITA Europe 2008: Mathematical Content in Documentation 28
  • 29. Review strategies • Get basic input, integrate it with non-math text. • Review is crucial, but how? • If you use DITA, difficult to allow direct editing by SMEs. • In practice with non-DITA documentation, SMEs rarely directly edit anyway. DITA Europe 2008: Mathematical Content in Documentation 29
  • 30. Ideal review solution • Our SMEs want to be able to review and edit equations in real time. • How? • Publish DITA content to a Confluence Wiki, enable editing, republish. • Lombardi Software – DITA to Wiki • Many details to work out. • Keeping TeX markup accessible will be paramount. DITA Europe 2008: Mathematical Content in Documentation 30
  • 31. Publishing outputs Some choices: • xHTML + MathML • xHTML + graphics • .chm with graphics • PDF with graphics All require modifying the DITA OT. Plus Plugins (as mentioned earlier) are very helpful. DITA Europe 2008: Mathematical Content in Documentation 31
  • 32. Output: xHTML with MathML • If everyone uses FireFox, or Internet Explorer with MathPlayer, this is a great solution. • Falls apart if a documentation user has a different environment. • Still need ways of introducing index, searchability, etc. (like you can do with EclipseHelp). Standard DITA issues. DITA Europe 2008: Mathematical Content in Documentation 32
  • 33. Other output formats • xHTML + graphics • .chm with graphics • PDF with graphics If you have MathML and want these formats, you must render MathML as graphics. This will require modifying build scripts, installing DITA OT plugins, and using Java or other rendering tools. DITA Europe 2008: Mathematical Content in Documentation 33
  • 34. Rendering tools • MimeTeX renders TeX equations as .gifs. • Java packages jeuclid and batik render MathML. • Antenna House renders MathML for HTML and PDF. www.forkosh.dreamhost.com/mimetex.html jeuclid.sourceforge.net/ xmlgraphics.apache.org/batik/ www.antennahouse.com/product/mathml.htm DITA Europe 2008: Mathematical Content in Documentation 34
  • 35. Less-explored options • Building applications with Adobe AIR. • Adobe PDFs can manage some mathematically relevant wizardry. • What could you do with Math and Flash? • How would these integrate with DITA? DITA Europe 2008: Mathematical Content in Documentation 35
  • 36. As we become more mature . . . . • Make math equations searchable. • Work with metadata, attributes. • This is a Ph.D thesis topic, and not one we will solve here. • Google the following: Mowgli project A More Canonical Form of Content MathML to Facilitate Math Search An Investigation of Index Formats for the Search of MathML Objects DITA Europe 2008: Mathematical Content in Documentation 36
  • 37. DITA Europe 2008 • Thank you for attending. • Resources URL: http://dita.xml.org/blog/loisbc • Email: LoisRPatterson@gmail.com DITA Europe 2008: Mathematical Content in Documentation 37

Notas do Editor

  1. Hi everyone. Introduction
  2. Introduction: Quiz audience about whether they are working at small or large companies, what countries are they from. I first put mathematical equations on the web in 1995, using a now-extinct shareware math editor, and then making .gifs.
  3. Lay out the problems. Attendees not necessarily aware of the issues.
  4. I define the parameters, and get an idea of what people are working with currently.
  5. We aren’t interested in just the web. MathML has applications beyond the web, just as XML does.