From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66633 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Re: Personalizing a PDF generated with ConTeXt Date: Sat, 5 Mar 2011 13:03:44 +0100 Message-ID: References: <4D6D0EB6.7040702@elvenkind.com> <4D6D22A8.8070406@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001517475828ee443b049dbb0df4 X-Trace: dough.gmane.org 1299326662 6929 80.91.229.12 (5 Mar 2011 12:04:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2011 12:04:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 05 13:04:18 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PvqDZ-0006Ki-K6 for gctc-ntg-context-518@m.gmane.org; Sat, 05 Mar 2011 13:04:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 33FE6CAAA0; Sat, 5 Mar 2011 13:04:17 +0100 (CET) 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 4i731sLnAsi5; Sat, 5 Mar 2011 13:04:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 65F0ACAA97; Sat, 5 Mar 2011 13:04:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DDDDFCAA97 for ; Sat, 5 Mar 2011 13:04:00 +0100 (CET) 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 cs-UDWthwgMa for ; Sat, 5 Mar 2011 13:03:46 +0100 (CET) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id CE872CAA78 for ; Sat, 5 Mar 2011 13:03:46 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p25C3jfV000506 for ; Sat, 5 Mar 2011 13:03:46 +0100 Original-Received: by fxm5 with SMTP id 5so3890229fxm.14 for ; Sat, 05 Mar 2011 04:03:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=F39fymeK2h2KGit6SQByYQkUnhXDPPFTbOC4m310djo=; b=oPrNRXVnegOE90TxjaqSr4MmkrbuUB4bW26ZCVuZumgtBmcexUU4L9aTUlt1LEPNYI ktqyAK3KFynzZjgzKufacVPTF3/OuVXzcMjzaBfinOtTKMQ9ZFnoSpphaLwyPefgh8Uq +IkuQ6HMniUR0zEG7s+9WsHiG/5bZLvhl5xpU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=I2LIL3IEHfccOoybdYef6/k2XBsanoTI/XcrX+Hax3mKQmP2jjX0hk/F7NupvizFTr xvDrDCjARWPRrntHYEqM4Yvvq/TfyFkZqo8KbDn/aSS4qktL4oOMTzOL6rEM0BDQKKom unYL0PrvhjwVibTZLEtt+jmsvRLWgl585jDfI= Original-Received: by 10.223.63.212 with SMTP id c20mr2130042fai.63.1299326625006; Sat, 05 Mar 2011 04:03:45 -0800 (PST) Original-Received: by 10.223.10.4 with HTTP; Sat, 5 Mar 2011 04:03:44 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.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: 04Efo3J55 - dd9b522e9ba6 - 20110305 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:66633 Archived-At: --001517475828ee443b049dbb0df4 Content-Type: multipart/alternative; boundary=001517475828ee4426049dbb0df2 --001517475828ee4426049dbb0df2 Content-Type: text/plain; charset=ISO-8859-1 2011/3/5 Cecil Westerhof > For example, you could put the various \setvariables statements in various >> separate files and load a specific one from the context command line with >> --environment=... >> > > I tried it and it works. Only one thing: when the variables are not set > (forgot the environment parameter, file not correctly set, ...) I would like > to set default values. How would I do that? > For who likes to something along the same lines: I attached a BASH script that generates all the PDF's based on .per files. You call the script with: compileContextPersonalised.sh One 'problem': for every generated personalised PDF, there is also a log and tuo file. But I am using --purgeall. So why are they there? -- Cecil Westerhof --001517475828ee4426049dbb0df2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2011/3/5 Cecil Westerhof <<= a href=3D"mailto:cldwesterhof@gmail.com">cldwesterhof@gmail.com>
For example, you could put the various \setvariables statements in various = separate files and load a specific one from the context command line with -= -environment=3D...
=A0
I tried it and= it works. Only one thing: when the variables are not set (forgot the envir= onment parameter, file not correctly set, ...) I would like to set default = values. How would I do that?

For who likes to something along th= e same lines: I attached a BASH script that generates all the PDF's bas= ed on .per files. You call the script with:
=A0=A0=A0 compileContextPers= onalised.sh <TEX_FILE>
=A0
One 'problem': for every generated personalised PDF, there i= s also a log and tuo file. But I am using --purgeall. So why are they there= ?

--
Cecil Westerhof
--001517475828ee4426049dbb0df2-- --001517475828ee443b049dbb0df4 Content-Type: application/x-sh; name="compileContextPersonalised.sh" Content-Disposition: attachment; filename="compileContextPersonalised.sh" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gkwhbxgz0 IyEvdXNyL2Jpbi9lbnYgYmFzaAoKc2V0IC1vIGVycmV4aXQKc2V0IC1vIG5vdW5zZXQKCmRlY2xh cmUgLXIgQ09OVEVYVF9MT0c9Y29udGV4dC5sb2cKZGVjbGFyZSAtciBQREZfRVhURU5TSU9OPScu cGRmJwpkZWNsYXJlIC1yIFBFUl9FWFRFTlNJT049Jy5wZXInCmRlY2xhcmUgLXIgVEVYX0VYVEVO U0lPTj0nLnRleCcKCmRlY2xhcmUgYm9va05hbWUKZGVjbGFyZSBwZGZGaWxlCmRlY2xhcmUgcGVy c29uYWxpc2VGaWxlCmRlY2xhcmUgcGVyc29uYWxpc2VOYW1lCmRlY2xhcmUgdGV4RmlsZQoKaWYg W1sgJHsjfSAtbmUgMSBdXSA7IHRoZW4KICBlY2hvICIkKGJhc2VuYW1lICR7MH0pIDxURVgtRklM RT4iCiAgZXhpdCAxCmZpCnRleEZpbGU9JHsxfTsgc2hpZnQKCnJtIC1mICR7Q09OVEVYVF9MT0d9 CmZvciBwZXJzb25hbGlzZUZpbGUgaW4gKiR7UEVSX0VYVEVOU0lPTn0gOyBkbwogIHBlcnNvbmFs aXNlTmFtZT0kKGJhc2VuYW1lICR7cGVyc29uYWxpc2VGaWxlfSAke1BFUl9FWFRFTlNJT059KQog IHBkZkZpbGU9IiQoYmFzZW5hbWUgJHt0ZXhGaWxlfSAke1RFWF9FWFRFTlNJT059KSR7cGVyc29u YWxpc2VOYW1lfSR7UERGX0VYVEVOU0lPTn0iCiAgZWNobyAiR2VuZXJlZXI6ICR7cGRmRmlsZX0i CiAgdGV4ZXhlYyAtLWVudmlyb25tZW50PSR7cGVyc29uYWxpc2VGaWxlfSBcCiAgICAgICAgICAt LXB1cmdlYWxsIFwKICAgICAgICAgIC0tcmVzdWx0PSR7cGRmRmlsZX0gXAogICAgICAgICAgLS10 aW1lb3V0PTE1ICR7dGV4RmlsZX0gPj4ke0NPTlRFWFRfTE9HfQpkb25lCmVjaG8gUHJvY2Vzc2Vk IGFsbCBmaWxlcwo= --001517475828ee443b049dbb0df4 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --001517475828ee443b049dbb0df4--