From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77560 Path: news.gmane.org!not-for-mail From: Mari Voipio Newsgroups: gmane.comp.tex.context Subject: Variables how-to needed Date: Wed, 25 Jul 2012 07:50:12 +0300 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1343191829 21078 80.91.229.3 (25 Jul 2012 04:50:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2012 04:50:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 25 06:50:27 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 1SttYJ-0007hP-As for gctc-ntg-context-518@m.gmane.org; Wed, 25 Jul 2012 06:50:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5869010230; Wed, 25 Jul 2012 06:50:26 +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 yVynfzjisiKE; Wed, 25 Jul 2012 06:50:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 793491020A; Wed, 25 Jul 2012 06:50:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 69A701020A for ; Wed, 25 Jul 2012 06:50:23 +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 ixpoGKsMBrt9 for ; Wed, 25 Jul 2012 06:50:19 +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 5DD10101FA for ; Wed, 25 Jul 2012 06:50:19 +0200 (CEST) Original-Received: from mail-lpp01m010-f41.google.com (mail-lpp01m010-f41.google.com [209.85.215.41]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q6P4l7mW023361 for ; Wed, 25 Jul 2012 06:47:10 +0200 Original-Received: by lahi5 with SMTP id i5so268218lah.14 for ; Tue, 24 Jul 2012 21:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=G6rwc9EsYM95VcMmMBBCwOtoMjebP0xjWBmqcknmSDE=; b=q4SefUP0oX33sg3qUkTgpP9pilsdpWBHk9UDPO/4VsgUW+f+Pouwm8GZlOB8e/1AKc sPtV6w6L2Pvh7A1UbOSejv8w/LQbZGFKluos4p8rTcIyJC1A7izWVTv5kAg6Lq2CWeV0 IWrfEY7KEiCmulCE1/LZgC7tzKwOW0Ot94iZZxAIkvCLMu3kzfkMIJdrLP7NdRvDiHnS M1fKMM+mpTcTcVRdHh9CRJbOaEjlHhb6p8g497kxQH9KRj8W7PP/wwrh5RI19e8iX9Sh NKLdB3IuNzF3ahfQDH8WBC0pwJ/lDDVNDu36iHD5crrONXjaEC3C2OOBVxzNvFt8jZCd SQkA== Original-Received: by 10.152.112.34 with SMTP id in2mr6606380lab.6.1343191812304; Tue, 24 Jul 2012 21:50:12 -0700 (PDT) Original-Received: by 10.152.18.80 with HTTP; Tue, 24 Jul 2012 21:50:12 -0700 (PDT) X-Google-Sender-Auth: zMH4b-UwJR3uU2KExbfb08tuMxo X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.41; 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: 0WHCsL8l9 - c4f9235f61c8 - 20120725 (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:77560 Archived-At: Hello All, I'm looking for some "for dummies" information about using variables. I tried looking for it in the wiki, but only found this "Internals" page that's a bit too advantaged to me: http://wiki.contextgarden.net/Inside_ConTeXt#Using_variables I'm obviously missing something important, so I'd love to see a few more examples of variables and variable input files... What I want is price tags with the item name in Finnish and English/Swedish and then the price. These are placed on a small page and those small pages are then fit onto one A4 by imposition. Like this: Pieni ny=F6rihaarukka, koivua %variable 1,v-descr-fi {\em Small lucet, beech} %variable 2, v-descr-en 6 eur %variable 3, v-price1 Made in xxx %variable 4, v-origin I can do the imposition, that is not a problem - and it works a lot better than a table, so no tables this way... . My data is in a list that can be converted to csv (although it'll then have a bunch of quotes to be removed), the list format is just like above: Item in Finnish, Item in English, price, country of origin. So the main problem is database/mailmerge/variablerelated: How do I (or should I) use variables to fetch this information from a separate spreadsheet type file, i.e. my price list? (IF this was MS Word or OpenOffice, it would be called Mail Merge, but in OO it sucks a bit; and I think the operation itself should be easy if I just figure out how to do it... Thank you, Mari ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________