ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: A strange request...
Date: Wed, 20 Feb 2019 17:32:32 +0100	[thread overview]
Message-ID: <CAG5iGsCfEKTWjMc5yi0afUfh7GJzGggA_c3S513EWA_peWf0Dg@mail.gmail.com> (raw)
In-Reply-To: <9CEFB9C7-60C1-40F6-90C7-84C96A095B21@boede.nl>


[-- Attachment #1.1: Type: text/plain, Size: 1295 bytes --]

On Wed, Feb 20, 2019 at 5:23 PM Willi Egger <context@boede.nl> wrote:

> Hi all,
>
> I am siting with a project of making a “dwarsligger”, you know these
> books, printed on bible-thin-printing paper, which are about  12 x 8 cm.
> One opens them while holding them ‘landscape’ with the spine on the top…
>
> 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, 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
> 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>=0, and find q and  r such
n = 2q + r,    r = 0 or r=1

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 .



>
-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1944 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2019-02-20 16:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-20 16:23 Willi Egger
2019-02-20 16:32 ` luigi scarso [this message]
2019-02-20 16:52 ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAG5iGsCfEKTWjMc5yi0afUfh7GJzGggA_c3S513EWA_peWf0Dg@mail.gmail.com \
    --to=luigi.scarso@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).