From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86575 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: Placing marks at edge. Date: Wed, 5 Mar 2014 20:49:03 +0100 Message-ID: <4119DDC4-850F-41DC-A39A-25C8449C93AF@boede.nl> References: <20140305104330.2184f680@localb.wexfordpress.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_C58A3B9F-20DF-426A-981F-1B65AADA22AA" X-Trace: ger.gmane.org 1394048968 666 80.91.229.3 (5 Mar 2014 19:49:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2014 19:49:28 +0000 (UTC) To: NTG-Context ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 05 20:49:36 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 1WLHot-00078b-ND for gctc-ntg-context-518@m.gmane.org; Wed, 05 Mar 2014 20:49:35 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AEA43101F2; Wed, 5 Mar 2014 20:49:34 +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 ZKK0I5OY0VR1; Wed, 5 Mar 2014 20:49:33 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 36B2C101E3; Wed, 5 Mar 2014 20:49:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 009AA101E3 for ; Wed, 5 Mar 2014 20:49:32 +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 4pbH3U3b7uuz for ; Wed, 5 Mar 2014 20:49:18 +0100 (CET) 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 D49B1101E1 for ; Wed, 5 Mar 2014 20:49:08 +0100 (CET) Original-Received: from webmail.digitpaint.nl (webmail.digitpaint.nl [83.98.197.40]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s25Jn74V027226 for ; Wed, 5 Mar 2014 20:49:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by webmail.digitpaint.nl (Postfix) with ESMTP id 60990CEDB for ; Wed, 5 Mar 2014 20:49:07 +0100 (CET) Original-Received: from webmail.digitpaint.nl ([127.0.0.1]) by localhost (mail.digitpaint.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id n-l1Oo-7UDxV for ; Wed, 5 Mar 2014 20:49:07 +0100 (CET) Original-Received: from willis-air.fritz.box (a83-161-249-79.adsl.xs4all.nl [83.161.249.79]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by webmail.digitpaint.nl (Postfix) with ESMTPSA id 7D6C4CE58 for ; Wed, 5 Mar 2014 20:49:06 +0100 (CET) In-Reply-To: <20140305104330.2184f680@localb.wexfordpress.net> X-Mailer: Apple Mail (2.1874) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=83.98.197.40; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WLxTN7sm - 27f2b1c3d54d - 20140305 (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:86575 Archived-At: --Apple-Mail=_C58A3B9F-20DF-426A-981F-1B65AADA22AA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello John, I was busy to make this some time ago. May that the attached file is a = base for what you want to achieve. Kind regards Willi= --Apple-Mail=_C58A3B9F-20DF-426A-981F-1B65AADA22AA Content-Disposition: attachment; filename=Thumbnails-MKIV.tex Content-Type: application/octet-stream; name="Thumbnails-MKIV.tex" Content-Transfer-Encoding: 7bit % Context file % Filename: untitled.tex % % 28-02-2011 % Copyright (c) 2011 BOEDE. All rights reserved. \usetypescriptfile[type-seravek] \usetypescript[Seravek] \setupbodyfont[Seravek,ss,12pt] \setuppagenumbering[location=] \setuplayout [topspace=2.5cm, backspace=1.5cm, header=0pt, footer=0pt, height=middle, width=middle] \mainlanguage[nl] %\showframe \setuppapersize[A4][A4,oversized] \setuplayout [width=middle, % margin=\dimexpr\backspace-\margindistance\relax location=middle] \definecolor[chap_frame][g=1,t=1,a=12] \definecolor[sect_frame][b=1,t=1,a=12] \definecolor[textcolor] [r=1,t=1,a=12] \startuseMPgraphic{chapter thumb} path chap_frame, sect_frame ; pair pos,a,b ; picture text ; if \somenamedheadnumber{chapter}{current} > 0 : curr_chap := \somenamedheadnumber{chapter}{current} ; else : curr_chap := 1 ; fi; if \somenamedheadnumber{chapter}{last} > 0 : last_chap := \somenamedheadnumber{chapter}{last} ; else : last_chap := 1 ; fi; if \somenamedheadnumber{section}{current} > 0 : curr_sect := \somenamedheadnumber{section}{current} ; else: curr_sect := 1 ; fi; if \somenamedheadnumber{section}{last} > 0 : last_sect := \somenamedheadnumber{section}{last}; else: last_sect := 1; fi; skip := TextHeight * (curr_chap-1)/last_chap ; height := TextHeight/last_chap ; sskip := height*curr_sect/last_sect ; text := textext("\ssbfb\textcolor Chapter\enspace\getmarking[chapternumber]"); StartPage ; chap_frame := fullsquare xyscaled(RightMarginWidth,height) ; a := ulcorner chap_frame ; b := urcorner chap_frame ; sect_frame := a--b--(xpart b,ypart b-sskip)--(xpart a,ypart a-sskip)--cycle; pos := urcorner Field[Text][RightMarginSeparator] - ulcorner chap_frame - (0,skip); fill chap_frame shifted pos withcolor \MPcolor{chap_frame}; unfill sect_frame shifted pos withcolor white ; fill sect_frame shifted pos withcolor \MPcolor{sect_frame}; draw text rotated 90 shifted pos ; StopPage ; \stopuseMPgraphic \defineoverlay[chapter thumb][\useMPgraphic{chapter thumb}] \setupbackgrounds[page][background=chapter thumb] \starttext \showframe \dorecurse{6}{\chapter{Test Chapter #1} Chapter \headnumber[chapter][current] of \headnumber[chapter][last] \dorecurse{9}{\section{Test Section} Section \headnumber[section][current] of \headnumber[section][last] \blank \input tufte \par \input knuth \par } } \chapter 1 \stoptext --Apple-Mail=_C58A3B9F-20DF-426A-981F-1B65AADA22AA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 5 mrt. 2014, at 16:43, john Culleton wrote: > You have seen them in books from O'Reilly and > even in books like "TeX for the Impatient": > markings on the outer edge of each odd page that > bleed past the page edge indicating a particular > chapter. In the last named they are a simple=20 > box with very fine horizontal black lines. In some > O'Reilly books like "Web Design in a Nutshell" > they are a black box with the chapter name > (possibly abbreviated) rotated 90 degrees in > small white text.=20 >=20 > No doubt I can do this in Context. The question > is what is the simplest and most foolproof way > home. >=20 > Of course the page size will be made larger by > 0.125 inch on all sides except the spine edge to > provide a trim. The marker box I describe > protrudes into the trim area. And its location > and the text change for each chapter of > course.=20 >=20 > It is very hard in this country to get a book > review by the important pre-publication > reviewers like Booklist and Library Journal. But > that review is the key to among other things > library sales and academic sales. Edge markings > like I discuss above will immediately separate my > books from those slapped together in MSWord etc.=20 >=20 > I am just trying to get my books past the clerk in > the mail room who has orders to discard anything > that looks self-published. =20 >=20 > --=20 > 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! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_C58A3B9F-20DF-426A-981F-1B65AADA22AA 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 ___________________________________________________________________________________ --Apple-Mail=_C58A3B9F-20DF-426A-981F-1B65AADA22AA--