From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/56928 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: About Thomas Schmitz My Way Date: Wed, 10 Mar 2010 13:50:31 +0100 Message-ID: References: <9C435CBB-F03C-4ED2-ADF6-7720E0BB9BA9@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1268225462 27830 80.91.229.12 (10 Mar 2010 12:51:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 10 Mar 2010 12:51:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 10 13:50:57 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NpLNJ-00054r-El for gctc-ntg-context-518@m.gmane.org; Wed, 10 Mar 2010 13:50:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 06845C9CDA; Wed, 10 Mar 2010 13:50:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id aYuz+-6yFYpM; Wed, 10 Mar 2010 13:50:54 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 57C9DC9CCF; Wed, 10 Mar 2010 13:50:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 21C16C9CCF for ; Wed, 10 Mar 2010 13:50:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wV019TM1IYVt for ; Wed, 10 Mar 2010 13:50:47 +0100 (CET) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by balder.ntg.nl (Postfix) with ESMTP id DB094C9CCE for ; Wed, 10 Mar 2010 13:50:47 +0100 (CET) Original-Received: from [87.178.73.109] (account tschmit1@uni-bonn.de HELO [192.168.0.2]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPA id 34123408 for ntg-context@ntg.nl; Wed, 10 Mar 2010 13:50:47 +0100 In-Reply-To: <9C435CBB-F03C-4ED2-ADF6-7720E0BB9BA9@gmail.com> X-Mailer: Apple Mail (2.1077) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:56928 Archived-At: Hi Otared, thanks for the feedback and the kind words! On Mar 10, 2010, at 12:54 PM, Otared Kavian wrote: > = > Regarding the tutorial you have written, although the typo may be correct= ed by any cautious reader, I think that, on page 2, lines 5 and 6 of your M= y Way it should be > > > = Of course! Thanks for spotting this. > I don't know whether the following observation is correct or not: I had t= o add at the beginning of the file =AB ourenvironment.tex =BB which must co= ntain 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 eve= n 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 thi= s should be said clearly somewhere. > = Really? No, I don't think you need to have this. When I process context --environment=3Dourenvironment ourfile.xml it gets processed even without the \start \stop pair you describe. > Also, in order to have a better PDF in your examples, at some point I und= erstood that in order to have appropriate white space between paragraphs an= d tables one could, or should, add the tag for preformatted text: >
> =

> 
> = > and transform it into \blank by ConTeXt. To this end one has to add the t= ag pre to \xmlsetup: > \xmlsetsetup{\xmldocument}{html|body|h1|h2|p|em|q|b|table|tr|th|td|pre}{x= ml:*} > = > and then > \startxmlsetups xml:pre = > \xmlflush{#1}\blank[big] > \stopxmlsetups > = > to the environment. > = Yes, I was bothered by the lack of whitespace too, but I wanted to keep it = simple. adding
 would be one way; another way would be to add somethin=
g like \blank[line]\par at the end of the setup commands. But I wasn't sure=
 what would be more confusing to beginners: the somewhat ugly output or the=
se additions.

> Finally a qusetion: is there a way to obtain an xml file from a rather si=
mple TeX source, written with ConTeXt commands? Here by simple I mean somet=
hing which contains text and math formulas, such as a list of problems and =
exercises.
> =

That's a very interesting question. Hans has this intriguing paragraph in t=
he older manual, example.pdf: "In ConTEXt we use a strange but charming way=
 to handle this conversion: we simply typeset xml. The typeset document (wi=
th lots of angle brackets) is then converted into raw text. A complication =
is math, but given that you can embed MathML in your document, this can be =
passed on directly." The question how this can be done has been asked sever=
al time on the list, but so far, I haven't seen an answer. Maybe you need t=
o buy Hans lots of beer at the next ConTeXt meeting, and he will finally fe=
ss up!

Thanks, and best wishes

Thomas
___________________________________________________________________________=
________
If your question is of interest to others as well, please add an entry to t=
he Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont=
ext
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________=
________