From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87671 Path: news.gmane.org!not-for-mail From: john Culleton Newsgroups: gmane.comp.tex.context Subject: Thumbnail sample. Date: Mon, 2 Jun 2014 11:13:38 -0400 Organization: WexfordPress Message-ID: <20140602111338.27e3a054@localb.wexfordpress.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1401722086 9212 80.91.229.3 (2 Jun 2014 15:14:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2014 15:14:46 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 02 17:14:39 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WrTwa-0004XG-92 for gctc-ntg-context-518@m.gmane.org; Mon, 02 Jun 2014 17:14:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C439F1023A for ; Mon, 2 Jun 2014 17:14:35 +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 Vsn+GtiZO30m for ; Mon, 2 Jun 2014 17:14:35 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id AA0FE10200 for ; Mon, 2 Jun 2014 17:14:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1AC20101E3 for ; Mon, 2 Jun 2014 17:14:28 +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 cC2UWI31uoOU for ; Mon, 2 Jun 2014 17:14:26 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 63F92101E2 for ; Mon, 2 Jun 2014 17:14:16 +0200 (CEST) Original-Received: from qmta10.westchester.pa.mail.comcast.net (qmta10.westchester.pa.mail.comcast.net [IPv6:2001:558:fe14:43:76:96:62:17]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s52FE0g6010133 for ; Mon, 2 Jun 2014 17:14:12 +0200 Original-Received: from omta19.westchester.pa.mail.comcast.net ([76.96.62.98]) by qmta10.westchester.pa.mail.comcast.net with comcast id 9RFi1o00727AodY5ATE02Y; Mon, 02 Jun 2014 15:14:00 +0000 Original-Received: from localb.wexfordpress.net ([68.50.233.152]) by omta19.westchester.pa.mail.comcast.net with comcast id 9TDy1o00H3HwwZ83fTDyG2; Mon, 02 Jun 2014 15:13:59 +0000 X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.20; x86_64-unknown-linux-gnu) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1401722040; bh=uJ1vUiKXwqJCmhxuUELS8ZDx1qiQPpW+gog3glp6W4Q=; h=Received:Received:Date:From:To:Subject:Message-ID:Mime-Version: Content-Type; b=HerzbazOHxKDqXo2hH2tyxbEeOJ+axQFcqi0JSUhWjHmYrll4bS2WT45QSOWmaQv8 +uVVNIt4g74/F97escYFvG5tSNQr82kjsbQbEt/K4L83P9e2DyXkxMu3u6J/dFVbre P4oUXxL1qiefX/u1Mjo7u1OoGbRez4LqXS80/OeV9z4rk1N79ZmjpCXXtmX3xnBeyQ de/wMXdWpp1BMQXbFSp/9c7WUmBLmklg2ku5qhh+Ih1z9mRmTrwAbW5yUGMEfaMnG8 Zj8EINo5WjpSj/GbUF9dRtgYp6cnjGgM4lVgrgAUgwZu6zHR/CSR7EyuZc841Yl+Ev 5KLqO1SCKtsfQ== X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2001:558:fe14:43:76:96:62:17; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TM9re1Vd - 0d2dbf3b8075 - 20140602 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:87671 Archived-At: The wiki shows two thumbnail samples. I like the first one. But I want to use MKIV. When I do the first sample blows up on the second chapter entry. Obviously there is some code in sample 1 that doesn't work under MKIV. By a process of elimination it centers on the thumbnail description proper. The file looks like this: --------------------------------------------------- \unprotected \def\rawsectionnumber#1{\countervalue{\??se#1}}%will be in kernel \setuppagenumbering [alternative=doublesided] \setupcolors [state=start] \setupbackgrounds [page] [background=thumbs] \defineoverlay [thumbs] [\setups{thumbs}] \def\NOfChapters{4} % i need to make this one available \startsetups thumbs \definemeasure[thumbheight][\dimexpr\paperheight/\NOfChapters\relax] \vbox to \paperheight \bgroup \vskip \rawsectionnumber{section-2} \measure{thumbheight} \vskip -1 \measure{thumbheight} \doifoddpageelse\hfill\donothing \framed [background=color, backgroundcolor=darkgray, frame=off, foregroundcolor=white, height=\measure{thumbheight},width=1cm] {\bfa \rawsectionnumber{section-2}} \doifoddpageelse\donothing\hfill \vss \egroup \stopsetups \starttext \chapter{first} \dorecurse{10}{\input tufte } \chapter{second} \dorecurse{10}{\input davis } \chapter{third} \dorecurse{10}{\input zapf } \chapter{fourth} \dorecurse{10}{\input bryson } \stoptext ----------------------------------------------- It works under MKII but not under MKIV. The error message occurs after the first chapter. But the chapters by themselves work OK. I will continue to experiment---- -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: "Create Book Covers with Scribus" available at http://www.booklocker.com/books/4055.html ___________________________________________________________________________________ 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 ___________________________________________________________________________________