From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77953 Path: news.gmane.org!not-for-mail From: Olivier Binda Newsgroups: gmane.comp.tex.context Subject: Re: Struggling with ConTeXt Date: Tue, 21 Aug 2012 00:27:33 +0200 Message-ID: <5032B9D5.6080003@wanadoo.fr> 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: ger.gmane.org 1345501669 14402 80.91.229.3 (20 Aug 2012 22:27:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2012 22:27:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 21 00:27:50 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 1T3aRp-0007cP-GJ for gctc-ntg-context-518@m.gmane.org; Tue, 21 Aug 2012 00:27:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A574710205; Tue, 21 Aug 2012 00:27: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 4QL0my-iMtJA; Tue, 21 Aug 2012 00:27:44 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3D4F6101E7; Tue, 21 Aug 2012 00:27:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 51425101E7 for ; Tue, 21 Aug 2012 00:27:42 +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 hjzxUypEoMiy for ; Tue, 21 Aug 2012 00:27:41 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 0329D101E0 for ; Tue, 21 Aug 2012 00:27:40 +0200 (CEST) Original-Received: from smtp.smtpout.orange.fr (smtp07.smtpout.orange.fr [80.12.242.129]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q7KMRQuU027720 for ; Tue, 21 Aug 2012 00:27:28 +0200 Original-Received: from [192.168.1.38] ([10.163.22.52]) by mwinf5d65 with ME id pATa1j00H17RpfN03ATcVG; Tue, 21 Aug 2012 00:27:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.12.242.129; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WHNarqOL - 1d1013188c90 - 20120821 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:77953 Archived-At: Many thanks for the enlightening answers. The explanations about xml solved question 1 and \startmatrix\stopmatrix solved question 4. I'm now crunching xml input and handling it half in lua and half in tex (and I'm verry happy about it). I'm still struggling with a few points though (with context standalone beta on ubuntu): 3) I'm flowing text around mathematical text with graphic ornaments (overlay) but the bounding box from metapost (red) and from TeX (black) on the following minimal example aren't the same which produce all kinds of "flowing text" issues. is there a way/an option for framedtexts with overlay to get the max width/height size of the main content + overlays ? \startusableMPgraphic{myFrame} numeric o, l, m ; path a, b ; pair c ; picture d; d = textext.rt(\MPstring{Content}) ; draw (unitsquare xyscaled (OverlayWidth,OverlayHeight) shifted (-OverlayWidth/2,-OverlayHeight/2)) withpen pencircle scaled 1pt withcolor green; draw (d enlarged 2cm) withcolor red withpen pencircle scaled 2pt; draw boundingbox currentpicture withpen pencircle scaled .1mm dashed evenly withcolor blue ; \stopusableMPgraphic \defineoverlay[myOverlay][\useMPgraphic{myFrame}] \defineframedtext[myStatement][frame=off] \setupframedtexts[myStatement][backgroundcolor=lightgray,background=myOverlay,width=\textwidth,autowidth=force] \starttext \framed[fit]{\startmyStatement TEST \stopmyStatement} \stoptext 3b) I found a dirty workaround by making metapost draw the texts and the graphics (through mpstring) but then, i can't embed graphics in my Tex-text. Is there a way to have graphics inside MPstrings that goes inside metapost ? About question 2, Context doesn't produce svg okey...but tikz and metapost can produce svg. So, is there a ConteXt setup/systems calls/a (simple or not) workaround to make metapost/tikz produce svg files ? Like some script that I could run on my snipets ? I would really like to produce svg from my metapost/tikz pictures Best regards, Olivier ___________________________________________________________________________________ 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 ___________________________________________________________________________________