From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47913 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: latest beta - Math error Date: Tue, 3 Mar 2009 12:48:33 +0100 Message-ID: <11F26402-6856-4E41-BBA4-D99912C7E2AC@gmail.com> References: <054B6BC8-9891-4B4D-A97A-5E40C1E70909@uni-bonn.de> <49AC5E7D.6040102@wxs.nl> <8BF9B396-DBA9-4A6C-96EB-E78530AE1C0C@uni-bonn.de> <49ACE5B9.30901@wxs.nl> <115224fb0903030307q7040a20fvaa9a187b81226a4d@mail.gmail.com> <49AD1338.1050708@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236081134 17777 80.91.229.12 (3 Mar 2009 11:52:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Mar 2009 11:52:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 03 12:53:31 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LeTBa-0000Vr-6L for gctc-ntg-context-518@m.gmane.org; Tue, 03 Mar 2009 12:53:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 738451FBC6; Tue, 3 Mar 2009 12:51:47 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21403-05; Tue, 3 Mar 2009 12:50:58 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 79DF81FB8E; Tue, 3 Mar 2009 12:50:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 987931FB60 for ; Tue, 3 Mar 2009 12:49:53 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22973-02-6 for ; Tue, 3 Mar 2009 12:49:37 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id DB5B91FADF for ; Tue, 3 Mar 2009 12:49:26 +0100 (CET) Original-Received: from mail-fx0-f176.google.com (mail-fx0-f176.google.com [209.85.220.176]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n23BnPbf001126 for ; Tue, 3 Mar 2009 12:49:26 +0100 Original-Received: by fxm24 with SMTP id 24so1720224fxm.2 for ; Tue, 03 Mar 2009 03:49:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=MFhDpu2SaLJXXUGPA4xa/b5NxYcAug/DK4W01+VjI1o=; b=MF1vfJVRQ3GOLV5DySw+RTrr3Qw/QxSLquNxixST+LlqWCsZPVjqMWhgJy3aTjHAuF s3SOsvO0u2zWig3vBM1bjrgsekauaUyN19M9SjyfD/D6uNM75v7vcKU1xmWjJDvA3E2M Ha9DYGplbv+RfhjvFqnyBAlXEDsQbMUIx/W2k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=QdI2jhvcCCIZQCEdDjMzYuo9v7SvPX2GeQ6sk/1/L1dQtcJBeLw1nl7Ah2ita1VWE5 p8ja7LZYyuzuzIJiHcbHKRcZn8qHlNOhu6SXhlqHyRlCsf6KaKdH/QPZv2ozhIe2lAZ/ 3ECBVzftb5WZ90DayNTUk0FF9WPLjwSWcr04E= Original-Received: by 10.86.91.3 with SMTP id o3mr2067001fgb.17.1236080965145; Tue, 03 Mar 2009 03:49:25 -0800 (PST) Original-Received: from rd-slvb1082-mnch99-de-fastet-0-0.nw.mediaways.net ([82.113.121.145]) by mx.google.com with ESMTPS id e20sm517993fga.56.2009.03.03.03.49.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 03 Mar 2009 03:49:24 -0800 (PST) In-Reply-To: <49AD1338.1050708@wxs.nl> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.176; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 187762439 - 0036cfd2d7e7 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:47913 Archived-At: Am 03.03.2009 um 12:23 schrieb Hans Hagen: >> A ConTeXt version of the filecontents for LaTeX would be handy in >> such cases. > > i have no clue what this means Thomas was unable to show his problem with a buffer, the filecontents environment is like a buffer but writes the content to a file with a given name, e.g. \begin{filecontentents}{example.xml}
Hello <
\end{filecontents} ... \starttext \xmlprocess{main}{example.xml}{} \stoptext
Everything between \begin/end{filecontents} is written to the file example.xml. This is handy for example given on the list because attatchments are a problem in the mail archive and you have to create only one tex file for the example. Here is a example but it works only on MkII. \unprotect \def\startfilecontents {\bgroup \protectbuffersfalse \dosingleargument\dostartfilecontents} \def\dostartfilecontents[#1]% {\beforesplitstring#1\at.\to\filename \aftersplitstring #1\at.\to\extension \let\f!temporaryextension\extension \dostartbuffer[\filename][startfilecontents][stopfilecontents]} \def\stopfilecontents {\doifdefined{savebuffer}{\savebuffer[\filename]}\egroup} \protect \startfilecontents[a1.txt] 1 5 2 4 3 8 4 9 8 8 \stopfilecontents \starttext \readfile{a1.txt}{}{} \stoptext Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________