Michael Kohlhase
Copyright (c) 2009 Michael Kohlhase
An example of semantic Markup in
In this note we give an example of semantic markup in
Introduction
We will show how to semantically mark up mathematics in the
We have some mathematical material in Section which will serve as example content. In the rest of this section we will explain the setup of the example and present an approach to automation of the OMDoc conversion via Unix Makefiles.
The Setup
The source of this note is contained in the file
As the modules are built for inclusion into other documents, they are not self-contained:
they do not contain a LaTeX preamble and
they may depend on other modules, whose semantic macros they need to include,
to facilitate this a module file
this will have consequences for the automation. Concretely, the module on
differentiable functions in Section depends on that for continuous
functions in Section . Both of them depend on modules for real numbers,
sets and functions that we do not want to cover in this note.
Formatting and OMDoc conversion
To format an
To convert an
Makefile-based Automation
As the conversion to OMDoc is rather complex (the programs in the three steps take a
variety of options), we support an automation by Unix Makefiles. There are three main
will trigger the OMDoc transformation of the target document.
will trigger the OMDoc transformation of the modules.
will trigger the LaTeX formatting the target
will trigger the LaTeX formatting the modules
will trigger the re-generation of all semantic macro short
forms of modules (this is implicitly called in all the other
To use this, we need to set up a
The variable
Note that in the directory
Mathematical Content
We present some standard mathematical definitions, here from calculus.
Continuous Functions
A function is called
Differentiable Functions
A function is called
Conclusion
In this note we have given an example of standard mathematical markup and shown how a a