ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>,
	Pablo Rodriguez <oinos@gmx.es>
Subject: Re: copies from \setupinteractionscreen not working?
Date: Wed, 4 Aug 2021 20:52:43 +0200	[thread overview]
Message-ID: <d4190ee3-4e9c-0e8a-adbe-8d48ad6abe6d@gmail.com> (raw)
In-Reply-To: <b27422e4-b54e-3edc-e5c8-85a9501b14d7@gmx.es>

Pablo Rodriguez via ntg-context schrieb am 04.08.2021 um 15:53:
> Dear list,
> 
> I have the following sample:
> 
>    \setupinteractionscreen[copies=5]
>    \starttext
>    \dorecurse{5}{\input zapf\par}
>    \stoptext
> 
> The resulting file from current latest (2021.07.30 00:57) contains the
> following /ViewerPreferences dictionary:
> 
>    /ViewerPreferences <<
>      /Duplex /Simplex
>      /PickTrayByPDFSize true
>      /PrintScaling /None
>    >>
> 
> I’m afraid that "copies" isn’t generating the proper /NumCopies entry in
> the /ViewerPreferences dictionary.
> 
> Could anyone be so kind to confirm this?


A fix is needed in layo-ini.lmt, maybe not in the same way as below but 
the value has to be stored in canvas.copies.

function layouts.setupcanvas(specification)
     [...]
     --
     local copies = specification.copies
     if type(copies) == "number" and copies < 2 then
         canvas.copies = false
+   else
+       canvas.copies = copies
     end
     --
     [...]
end

Wolfgang
___________________________________________________________________________________
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:[~2021-08-04 18:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-04 13:53 Pablo Rodriguez via ntg-context
2021-08-04 18:52 ` Wolfgang Schuster via ntg-context [this message]
2021-08-06  5:45   ` Pablo Rodriguez via ntg-context

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=d4190ee3-4e9c-0e8a-adbe-8d48ad6abe6d@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    --cc=wolfgang.schuster.lists@gmail.com \
    /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).