From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77712 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Struggling with ConTeXt Date: Thu, 2 Aug 2012 11:43:34 -0400 (EDT) Message-ID: References: <501A9CCB.1010400@wanadoo.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1343922229 23250 80.91.229.3 (2 Aug 2012 15:43:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Aug 2012 15:43:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 02 17:43:49 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SwxYy-0004h5-Ub for gctc-ntg-context-518@m.gmane.org; Thu, 02 Aug 2012 17:43:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D8DBF1020E; Thu, 2 Aug 2012 17:43:47 +0200 (CEST) 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 D5EuulF3WQie; Thu, 2 Aug 2012 17:43:46 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D928F101F9; Thu, 2 Aug 2012 17:43:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 68AC3101F9 for ; Thu, 2 Aug 2012 17:43:44 +0200 (CEST) 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 bcu35E0tIbHi for ; Thu, 2 Aug 2012 17:43:42 +0200 (CEST) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id E1FE6101F2 for ; Thu, 2 Aug 2012 17:43:42 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q72Fham4032195 for ; Thu, 2 Aug 2012 17:43:39 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096682554.dsl.bell.ca [65.94.12.58]) By hellskitchen.mr.itd.umich.edu ID 501AA027.F84.2502 ; Authuser adityam; 2 Aug 2012 11:43:35 EDT In-Reply-To: <501A9CCB.1010400@wanadoo.fr> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04HFPHBpP - 6c5180477c8b - 20120802 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77712 Archived-At: On Thu, 2 Aug 2012, Olivier Binda wrote: > 1) does lxml.att("#1","some tag") really work ? I don't know, but please provide a complete minimal example. > 2) I'm trying to export to xml and have set > > \setupbackend[export=yes, xhtml=yes, css=mkiv-export.css] > > But > a) my Metafun/Tikz pictures aren't exported to svg :/ Currently ConTeXt does not export Metafun/Tikz pictures to svg. > b) the exported xml has namespaces problems (like error on line 63 at column > 20: Namespace prefix m on math is not defined error on line 64 at column 22: > Namespace prefix m on mrow is not defined) > > What am I doing wrong ? (I'm compiling with "context mydoc.tex") Could it be a validator error? The 11th line of my test document contains: Is there some \csname tex4ht\endcsname command or some other directive that I > should use to get my xml export right ? ConTeXt does not use tex4ht! > Am I missing some namespace commands (there are lots of m:math and m:mrow > mathml tags int the exported xml source, this smells like a tex4ht issue) > See above. > 3) I have defined some framed text with metafun overlays (like in the Context > manual) > and I'm trying to type something like > > but it's not really satisfying. (hate to lose vertical space with wandering > blank spaces) > > Is there a better way ? Please provide a complete minimal example. > 4) I'm trying to port the following TeX code to ConTeXt > > $$\eqalign{x&=1\cr y&=2\cr}\qquad \hbox{haha}$$ > > it looks like \startformula\startalign.. doesn't allow me to do that > I somehow managed to have it by typing > > \startformula > \vcenter{\starttabular[|rM|lM|] > \NC x \NC =1\NC\NR > \NC y \NC =2\NC\NR > \stoptabular}\qquad\text{haha} > \stopformula > > the pdf export is fine, but the xml export is awfull (because of \vcenter I > guess) > > a) Is there a way to use tables inside math mode alongside other stuff (would > be handy) ? > b) what is the correct way to type the previous text, so the pdf and xml are > fine in Context ? Why not use \startmathalign etc. See: http://dl.contextgarden.net/myway/mathalign.pdf Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________