From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/103431 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: A strange request... Date: Wed, 20 Feb 2019 17:32:32 +0100 Message-ID: References: <9CEFB9C7-60C1-40F6-90C7-84C96A095B21@boede.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0255728545436331311==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="1498"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 20 17:32:58 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gwUnp-0000Eg-Fw for gctc-ntg-context-518@m.gmane.org; Wed, 20 Feb 2019 17:32:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8B5C1F0BBF; Wed, 20 Feb 2019 17:32:48 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2qkeVmoMq5w0; Wed, 20 Feb 2019 17:32:47 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CB027F0BB4; Wed, 20 Feb 2019 17:32:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 55054F0BB4 for ; Wed, 20 Feb 2019 17:32:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XcIf9XhPxw9x for ; Wed, 20 Feb 2019 17:32:46 +0100 (CET) Original-Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id AF973F0BB0 for ; Wed, 20 Feb 2019 17:32:46 +0100 (CET) Original-Received: by mail-lj1-f170.google.com with SMTP id a17so5020503ljd.4 for ; Wed, 20 Feb 2019 08:32:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=uMa1dW9MlRAFl0WUEzJVVCw9ocid0Kd0H9haMpcp92M=; b=MyoWTd/aEuKlOA/hVa4aUUQZ5khb1vtLghP9LRLLhMz7oMbBDYUNdUwaJVyfoMJp0M IoS+VSYh4itgn+hv1S+t7G8c4laC/+EOHxv2Yg6rTYrckPVIYJ/KUXG2m+afSlDbwegQ iYBLZGboyjv9XnzoMdRAOQSNdj3P77ZH775D2h0usWZZ/H6Hp9OWx1Gzs3M8pTzWjW9J rNAh6tBRkgj95fHjfItrBqlFAzR2OxKd+efOG3ZxCOyxupGSFivnVXoVJR4bgINjFndo BPZ4+b4SwO7ro5R4qitw29h+KSSwoAIeGrgEVu3UHUcRDzlPNwUjwSSgC8rG/Y/yz/Zv NpFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=uMa1dW9MlRAFl0WUEzJVVCw9ocid0Kd0H9haMpcp92M=; b=RU+x+1pYZvXp9vDuZuSHaQD1pRN/3zLIB8hvuNvQWW/niBZ+GyBf00ope11F1stXFQ A0GZjAXV6lNQEklxyqj0zIcFGMcRwBp/LipYbC6s0efEp88raRzttfmpBS53F5zTfMxn GNA+PUK/0c4GNZr0jePU/BEGYO7Y7oSeZAXLOGzk8wkE5GU3UuxyRHWXXL9yld7YI8bp TYrelX+aQss/Ft39vQ9dB6eCCCwU4toT+XCAa+TfOGhy/oyL2W61gvoAdRzEeuVkM8tm TRfMMe3napOshqTUyxkRjkmmsoy+xiC4tq1jaGmXdyxDW6gddZmcduS37OAc1FH+B/yD ZK5w== X-Gm-Message-State: AHQUAuaEhnjJ3VgLxg4APat184StY5NiRLWBhKqLDIKbvOppDGvF3qsz FfqMEjKpKi6hbmf67/+kOZ30Gx7M8+uoryR4sV+g2Q== X-Google-Smtp-Source: AHgI3Iajc9CtsqWuoRwOdV1+od/XfoqbvAASO5s1Le+6kr+bHqBszie1cpLSUab+sLMx/cyfkX/aFKauJKWNSa5Gns8= X-Received: by 2002:a2e:6358:: with SMTP id x85mr20504524ljb.167.1550680365517; Wed, 20 Feb 2019 08:32:45 -0800 (PST) In-Reply-To: <9CEFB9C7-60C1-40F6-90C7-84C96A095B21@boede.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.org gmane.comp.tex.context:103431 Archived-At: --===============0255728545436331311== Content-Type: multipart/alternative; boundary="00000000000058e59d058255e8a0" --00000000000058e59d058255e8a0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 20, 2019 at 5:23 PM Willi Egger wrote: > Hi all, > > I am siting with a project of making a =E2=80=9Cdwarsligger=E2=80=9D, you= know these > books, printed on bible-thin-printing paper, which are about 12 x 8 cm. > One opens them while holding them =E2=80=98landscape=E2=80=99 with the sp= ine on the top=E2=80=A6 > > Now there is of course a little struggle with the page numbering. The > reading page consists out of the even page together with the following > uneven page. It is easy to print on the uneven page a page number, howeve= r > this will result in uneven page numbers only throughout the book. > > My question is, whether there is an algorithm to print page numbers as > follows: > > > 1 2 3 4 5 6 7 8 9 (this is the ordinary numbering) > 1 2 3 4 5 (this is the requested numbering) > > Does someone have an idea how to solve this? > > Any hints are most appreciated! > > Pickup n>=3D0, and find q and r such n =3D 2q + r, r =3D 0 or r=3D1 It's not clear if you have 6 what you want to print (3 or 4 ?) but playing with that formula can help you . In many times, it's better to start from zero, so it could be that you have to translate your input sequence by adding -1 and the output sequence by adding +1 . > --=20 luigi --00000000000058e59d058255e8a0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, Feb 20, 2019 at 5:23 PM Willi= Egger <context@boede.nl> wro= te:
Hi all,

I am siting with a project of making a =E2=80=9Cdwarsligger=E2=80=9D, you k= now these books, printed on bible-thin-printing paper, which are about=C2= =A0 12 x 8 cm. One opens them while holding them =E2=80=98landscape=E2=80= =99 with the spine on the top=E2=80=A6

Now there is of course a little struggle with the page numbering. The readi= ng page consists out of the even page together with the following uneven pa= ge. It is easy to print on the uneven page a page number, however this will= result in uneven page numbers only throughout the book.

My question is, whether there is an algorithm to print page numbers as foll= ows:


1=C2=A0 2=C2=A0 3=C2=A0 4=C2=A0 5=C2=A0 6=C2=A0 7=C2=A0 8=C2=A0 9 (this is = the ordinary numbering)
1=C2=A0 =C2=A0 =C2=A02=C2=A0 =C2=A0 =C2=A03=C2=A0 =C2=A0 =C2=A04=C2=A0 =C2= =A0 =C2=A05 (this is the requested numbering)

Does someone have an idea how to solve this?

Any hints are most appreciated!

Pickup n>=3D0, and find q and=C2=A0 r such
n =3D 2q + r,=C2=A0 =C2=A0 r =3D 0 or r=3D1

It&= #39;s not clear if you have 6 what you want to print (3 or 4 ?)=C2=A0
=
but playing with that formula can help you .
In many times, = it's better to start from zero, so it could be that you=C2=A0 have to t= ranslate your input sequence by adding -1
and the output sequence= by adding=C2=A0+1 .




-- <= br>
luigi
--00000000000058e59d058255e8a0-- --===============0255728545436331311== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0255728545436331311==--