ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez <oinos@gmx.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: duplex printing and doublesided
Date: Mon, 4 Apr 2016 18:14:57 +0200	[thread overview]
Message-ID: <57029301.90904@gmx.es> (raw)
In-Reply-To: <5702355E.7080101@gmail.com>

On 04/04/2016 11:35 AM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 2. April 2016 um 20:29
>>
>> Wolfgang, this was my original sample:
>>
>> \setuppagenumbering[alternative=doublesided]
>> \setupinteractionscreen[option=portrait]
>> \starttext
>> No duplex printing.
>> \page[right]
>> In this document.
>> \stoptext
>>
>> The doublesided alternative disables duplex printing.
>>
>> Hans wrote about portrait and landscape as directives. I guess they
>> should be invoked with \enabledirective, but I don’t know how.
>
> No, the option key for \setupinteractionscreen is correct but there are
> a few problems.

Many thanks for your reply, Wolfgang.

> 1. When you have a doublesided document the “portrait” option loads the
> values of the doublesided option.

I’m afraid I must be missing something. If I remove the first line from
the sample above, I don’t get the third page.

> 2. Since you can set only one argument for the option key context has to
> set a values for the PDF document which means you can set the zoom value and
> dupley print option at the same time. A better solution would be to assign each
> option only a certain function and allow one to set
> \setupinteractionscreen[option={doublesided,portrait}].

I’d say this is redundant. "portrait" is duplex printing flipping the
long side.

The issue comes from having one key for five values and also from mixing
viewing options with printer options (the PDF spec shelters them in the
viewer preferences dictionary).

In this case, doublesided sets layout "TwoColumnRight" (which is a
display setup) disabling also duplex and fixed printing (which are
printing setups).

As I proposed before (but Hans is busy with other issues), there should
be four different keys in \setupinteraction (when not moving them to a
new \setupprinting command):

    duplex          page portrait landscape

    fixed           (no value is required)

    copies          number

    pdfpapersize    yes no

I’d love to contribute the patch myself, but Lua is totally unknown to
me. I have tried to adapt lpdf-mis.lua, but this is beyond my knowledge.

So I will have to wait until the new keys are implemented :-(.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________

      reply	other threads:[~2016-04-04 16:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-15 12:26 Pablo Rodriguez
2016-03-31  8:41 ` Hans Hagen
2016-04-01 20:54   ` Pablo Rodriguez
2016-04-02 18:09     ` Wolfgang Schuster
2016-04-02 18:29       ` Pablo Rodriguez
2016-04-04  9:35         ` Wolfgang Schuster
2016-04-04 16:14           ` Pablo Rodriguez [this message]

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=57029301.90904@gmx.es \
    --to=oinos@gmx.es \
    --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).