From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41632 Path: news.gmane.org!not-for-mail From: Jan-Erik =?ISO-8859-1?Q?H=E4ggl=F6f?= Newsgroups: gmane.comp.tex.context Subject: caption in TSV tables Date: Fri, 13 Jun 2008 09:48:28 +0200 Organization: Janneman Message-ID: <1213343308.7887.21.camel@djsameman> Reply-To: janerik.hagglof@bredband.net, mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-a2XH1k+2KUwX8F2HonYv" X-Trace: ger.gmane.org 1213343420 16934 80.91.229.12 (13 Jun 2008 07:50:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2008 07:50:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 13 09:51:02 2008 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 1K743n-0006pJ-C8 for gctc-ntg-context-518@m.gmane.org; Fri, 13 Jun 2008 09:50:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 73E781FC72; Fri, 13 Jun 2008 09:50:02 +0200 (CEST) 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 20280-01-8; Fri, 13 Jun 2008 09:49:16 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 850131FBC1; Fri, 13 Jun 2008 09:49:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6FB251FBB9 for ; Fri, 13 Jun 2008 09:49:07 +0200 (CEST) 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 19988-02-6 for ; Fri, 13 Jun 2008 09:48:30 +0200 (CEST) Original-Received: from proxy2.bredband.net (proxy2.bredband.net [195.54.101.72]) by ronja.ntg.nl (Postfix) with ESMTP id 3A8C41FBCB for ; Fri, 13 Jun 2008 09:48:29 +0200 (CEST) Original-Received: from ironport2.bredband.com (195.54.101.122) by proxy2.bredband.net (7.3.127) id 4811833300E71193 for ntg-context@ntg.nl; Fri, 13 Jun 2008 09:48:29 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjERAEvDUUjVceFDPGdsb2JhbAAIkgkBAQEBLQGbNg Original-Received: from c-43e171d5.08-114-6f72653.cust.bredbandsbolaget.se (HELO [192.168.1.5]) ([213.113.225.67]) by ironport2.bredband.com with ESMTP; 13 Jun 2008 09:48:28 +0200 X-Mailer: Evolution 2.22.2 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:41632 Archived-At: --=-a2XH1k+2KUwX8F2HonYv Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi All ConTeXt lovers! I am studying physics at =C3=96rebro University in Sweden and often produ= ce documents report from experiments. For Me it naturally fells in to use Context typesetting together with tools like octave and Gnuplot.=20 The issue until now, has been when you need to transer data from octave output textfiles to a representable table in a context document. Hardwriting all \NC and \HL stuff together with cut and paste method is time consuming. But thanks to Hans, Wolfgang, Taco and Mojca I successful= ly manage to import experiment values from a textfile (that also Gnuplot can read and do graphic) to a nice table with caption so you can refer to it in the textflow. So I decided to contribute my successfull result in attached examplefiles. Thanks and all wishes! Jan-Erik H=C3=A4ggl=C3=B6f=20 --=-a2XH1k+2KUwX8F2HonYv Content-Disposition: attachment; filename=tsvmall.tex Content-Type: text/x-matlab; name=tsvmall.tex; charset=UTF-8 Content-Transfer-Encoding: 7bit % engine=luatex \mainlanguage[sv] \setupinteraction[state=start] \setupcolors[state=start] % \environments \usemodule[database] \unprotect \startsetups TSV:unix \catcode \#=\@@comment \stopsetups \protect \defineseparatedlist[TSV][separator=tab,before=,after=,first=\bTR,last=\eTR,left=\bTD,right=\eTD] \setupTABLE[r][1][style=bold,background=color,backgroundcolor=gray] \starttext \placetable[here][tab:test]{caption} {\bgroup \bTABLE \startTSV time $ T $(s) Decay $ \frac{d\nu}{dt} $ error $ \delta \nu'=\sqrt{\nu} $ \stopTSV \processseparatedfile[TSV][sndfall.dat] \eTABLE \egroup} As you can see in table(\ref[t][tab:test]) it works out well in this experiment. \stoptext --=-a2XH1k+2KUwX8F2HonYv Content-Disposition: attachment; filename=sndfall.dat Content-Type: text/plain; name=sndfall.dat; charset=UTF-8 Content-Transfer-Encoding: 7bit # time decay errors 24.5 38.528 6.21 44.5 24.139 4.91 64.5 17.250 4.15 84.5 12.806 3.58 104.5 8.361 2.89 129 6.278 2.51 159 4.861 2.2 189 3.917 1.98 219 3.973 1.99 249 2.973 1.72 279 2.556 1.6 322.5 2.150 1.47 382.5 1.739 1.32 442.5 1.150 1.07 502.5 0.750 0.87 562.5 0.628 0.79 --=-a2XH1k+2KUwX8F2HonYv Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --=-a2XH1k+2KUwX8F2HonYv--