Dear Thomas,
Many thanks for your My Way about « Getting Web Content and pdf-Output from One
Source »: first of all I must say that you are « un grand pédagogue »!
Thanks to you, I dared to begin to learn how to use the same file on the web
and as a ConTeXt source, and had a look to the manual written by Hans,
xml-mkiv.pdf, which is indeed great, like all other manuals written by him.
(By the way, without participating to the thread on ConTeXt documentation, when
I was reading Hans' manual on xml-mkiv, I noticed that only on my computer
there are more than 80 different manuals, ranging from manuals for beginners to
high level documentation for experts... For all everyday matters these manuals
contain what I, or an ordinary user, may need).
Regarding the tutorial you have written, although the typo may be corrected by
any cautious reader, I think that, on page 2, lines 5 and 6 of your My Way it
should be
</body>
</html>
I don't know whether the following observation is correct or not: I had to add
at the beginning of the file « ourenvironment.tex » which must contain the xml
setups, the command
\startenvironment ourenvironment
and at the end of that file:
\stopenvironment
before being able to get what you describe. The curious thing is that even when
I didn't add
\startenvironment ourenvironment
but I did add
\stopenvironment
the xml file was processed by ConTeXt. For beginners like me, I think this
should be said clearly somewhere.
Also, in order to have a better PDF in your examples, at some point I
understood that in order to have appropriate white space between paragraphs and
tables one could, or should, add the tag for preformatted text:
<pre>
</pre>
and transform it into \blank by ConTeXt. To this end one has to add the tag
pre to \xmlsetup:
\xmlsetsetup{\xmldocument}{html|body|h1|h2|p|em|q|b|table|tr|th|td|pre}{xml:*}
and then
\startxmlsetups xml:pre
\xmlflush{#1}\blank[big]
\stopxmlsetups
to the environment.
Finally a qusetion: is there a way to obtain an xml file from a rather simple
TeX source, written with ConTeXt commands? Here by simple I mean something
which contains text and math formulas, such as a list of problems and exercises.
Best regards: OK
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________