ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* copies from \setupinteractionscreen not working?
@ 2021-08-04 13:53 Pablo Rodriguez via ntg-context
  2021-08-04 18:52 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2021-08-04 13:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Pablo Rodriguez

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?

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: copies from \setupinteractionscreen not working?
  2021-08-04 13:53 copies from \setupinteractionscreen not working? Pablo Rodriguez via ntg-context
@ 2021-08-04 18:52 ` Wolfgang Schuster via ntg-context
  2021-08-06  5:45   ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-08-04 18:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster, Pablo Rodriguez

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: copies from \setupinteractionscreen not working?
  2021-08-04 18:52 ` Wolfgang Schuster via ntg-context
@ 2021-08-06  5:45   ` Pablo Rodriguez via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2021-08-06  5:45 UTC (permalink / raw)
  To: Wolfgang Schuster via ntg-context; +Cc: Pablo Rodriguez

On 8/4/21 8:52 PM, Wolfgang Schuster via ntg-context wrote:
> Pablo Rodriguez via ntg-context schrieb am 04.08.2021 um 15:53:
>> [...]
>> 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.
> [...]

Many thanks for your help, Wolfgang.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-06  5:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-04 13:53 copies from \setupinteractionscreen not working? Pablo Rodriguez via ntg-context
2021-08-04 18:52 ` Wolfgang Schuster via ntg-context
2021-08-06  5:45   ` Pablo Rodriguez via ntg-context

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).