ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* About Thomas Schmitz My Way
@ 2010-03-10 11:54 Otared Kavian
  2010-03-10 12:50 ` Thomas A. Schmitz
  0 siblings, 1 reply; 5+ messages in thread
From: Otared Kavian @ 2010-03-10 11:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 : ntg-context@ntg.nl / 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-10 18:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-10 11:54 About Thomas Schmitz My Way Otared Kavian
2010-03-10 12:50 ` Thomas A. Schmitz
2010-03-10 17:21   ` Hans Hagen
2010-03-10 17:36     ` R. Bastian
2010-03-10 18:42       ` Fernan Aguero

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).