From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65560 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Pdfselect in texexec not working!? Date: Thu, 27 Jan 2011 11:13:40 +0100 Message-ID: <4D414554.4010705@wxs.nl> References: <4D3FEBE2.7030808@ziggo.nl> <4D3FEE3D.8060706@wxs.nl> <4D41452F.60308@ziggo.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010407080908030807070902" X-Trace: dough.gmane.org 1296123231 19334 80.91.229.12 (27 Jan 2011 10:13:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Jan 2011 10:13:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 27 11:13:47 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 1PiOrL-0000Su-Mb for gctc-ntg-context-518@m.gmane.org; Thu, 27 Jan 2011 11:13:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 21FE5CAADC; Thu, 27 Jan 2011 11:13:47 +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 keLYW79T+1m5; Thu, 27 Jan 2011 11:13:44 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 63D54CAA59; Thu, 27 Jan 2011 11:13:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2151DCAA59 for ; Thu, 27 Jan 2011 11:13:43 +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 bNTqCkIyoOSX for ; Thu, 27 Jan 2011 11:13:41 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 286E3CAA32 for ; Thu, 27 Jan 2011 11:13:41 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0RADdbh032510 for ; Thu, 27 Jan 2011 11:13:40 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 5.1c2) with ESMTP id 1950-1713362 for multiple; Thu, 27 Jan 2011 11:13:37 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 ThunderBrowse/3.3.4 In-Reply-To: <4D41452F.60308@ziggo.nl> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=11; city=Den Haag; latitude=52.0833; longitude=4.3000; http://maps.google.com/maps?q=52.0833,4.3000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rE0ydDH0 - e323db710093 - 20110127 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:65560 Archived-At: This is a multi-part message in MIME format. --------------010407080908030807070902 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 27-1-2011 11:13, Verhaag, G.C.H.M. wrote: > The subject was discussed in this forum according to Hans, but I can't > find it, sorry! add the attached to context/base and run "mtxrun --generate" ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- --------------010407080908030807070902 Content-Type: text/x-tex; name="mtx-context-select.tex" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="mtx-context-select.tex" % engine=luatex %D \module %D [ file=mtx-context-select, %D version=2008.11.10, % about that time i started playing with this %D title=\CONTEXT\ Extra Trickry, %D subtitle=Listing Files, %D author=Hans Hagen, %D date=\currentdate, %D copyright=\PRAGMA] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. %D This is a \TEXEXEC\ features that has been moved to \MKIV. % begin help % % usage: context --extra=select [options] list-of-files % % --sort : sort filenames first % --topspace=dimension : distance above first line % --backspace=dimension : distance before left margin % --selection=list : n:m,p:q,... % --paperformat=spec : paper*print or paperxprint or 'fit' % --interaction : add hyperlinks % % end help \input mtx-context-common.tex \setuppapersize [\getdocumentargumentdefault{paperformat_from}{A4}] [\getdocumentargumentdefault{paperformat_to}{A4}] \setuppaper [offset=\getdocumentargumentdefault{paperformat_to}{0pt}] \setuplayout [width=middle, height=middle, topspace=\getdocumentargumentdefault{topspace}{0pt}, backspace=\getdocumentargumentdefault{backspace}{0pt}, location=middle, header=0pt, footer=0pt] \doif {\getdocumentargument{marking}} {yes} { \setuplayout [marking=on] } \doif {\getdocumentargument{interaction}} {yes} { \setupinteraction [state=start] \setupexternalfigures [interaction=yes] } \setupexternalfigures [directory=] \doifelse {\getdocumentargument{paperformat_paper}} {fit} { \doifdocumentfilename {1} { \getfiguredimensions [\getdocumentfilename{1}] \definepapersize [fit] [width=\figurewidth, height=\figureheight] \setuppapersize [fit] [fit] } } \starttext \startluacode local papersize = document.arguments.paperformat_paper or "A4" local printsize = document.arguments.paperformat_print or "A4" local selection = document.arguments.selection or "" local textwidth = document.arguments.textwidth or "0cm" -- needed ? if #document.files == 0 then context("no files given") elseif selection == "" then context("no selection given") else if document.arguments.sort then table.sort(document.files) end for _, filename in ipairs(document.files) do if not string.find(filename,"^mtx%-context%-") then context.filterpages ( { filename }, { selection }, { width = textwidth } ) end end end \stopluacode \stoptext --------------010407080908030807070902 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 ___________________________________________________________________________________ --------------010407080908030807070902--