From: Hans Hagen <pragma@wxs.nl>
To: vit.zyka@seznam.cz, mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: new options for \setupinteractionscreen
Date: Sat, 19 Apr 2008 22:53:49 +0200 [thread overview]
Message-ID: <480A5BDD.4020402@wxs.nl> (raw)
In-Reply-To: <4809FAA1.2080504@seznam.cz>
Vit Zyka wrote:
> Dear ConTeXters,
>
> for PDF document one can set /PageLayout. It is a mode in which reader
> shows us pages (Single, Continous, Facing, ...). in ConTeXt one can set
>
> \setupinteractionscreen[option=doublesided]
>
> which set layout /TwoColumnRight (understand two facing continuous pages
> with odd pages on the right side). Since PDF 1.5 there is a possibility
> to set 3 more layouts:
>
> /TwoColumnLeft
> /TwoPageRight
> /TwoPageLeft
>
> I poropose to incorporate next lines of code to sources to enable
> setting of these layouts
>
> % double=facing, column=continuous, right|left=where odd page
> \setupinteractionscreen[
> option=doublecolumnleft,
> option=doublepageright,
> option=doublepageleft,
> option=doublecolumnright, % for compatibility = doublesided
> option=doublecolumn, % for simplicity = doublecolumnright
> option=doublepage, % for simplicity = doublepageright
> ]
another option is (less new keywords)
option={doublesided,left,continue} % any order
> These names are derrived from curren naming convention (doublesided) and
> PDF names. May be we can use more intuitive variants:
> option=facingright,
> option=facingleft,
> option=facingcontinuousright,
> option=facingcontinuousleft,
>
> Sorry I know English and Czech interface only and for FDF driver. May be
> somebody add more.
>
> Vit
>
> Proposal:
> -----------------------------------------------------------------
> % mult-con.tex
> \startvariables dutch english
> german czech
> italian romanian
> french
>
> doublecolumnright: doublecolumnright doublecolumnright
> doublecolumnright dvasloupcevpravo
> doublecolumnright doublecolumnright
> doublecolumnright
> doublecolumnleft: doublecolumnleft doublecolumnleft
> doublecolumnleft dvasloupcevlevo
> doublecolumnleft doublecolumnleft
> doublecolumnleft
> doublecolumn: doublecolumn doublecolumn
> doublecolumn dvasloupce
> doublecolumn doublecolumn
> doublecolumn
> doublepageright: doublepageright doublepageright
> doublepageright dvestrankyvpravo
> doublepageright doublepageright
> doublepageright
> doublepageleft: doublepageleft doublepageleft
> doublepageleft dvestrankyvlevo
> doublepageleft doublepageleft
> doublepageleft
> doublepage: doublepage doublepage
> doublepage dvestranky
> doublepage doublepage
> doublepage
> \stopvariables
>
> % core-int
> \setvalue{\??sc\c!option\v!doublecolumnright}{4} % compatibility
> \setvalue{\??sc\c!option\v!doublecolumnleft}{5} % new
> \setvalue{\??sc\c!option\v!doublepageright}{6} % new
> \setvalue{\??sc\c!option\v!doublepageleft}{7} % new
> \setvalue{\??sc\c!option\v!doublecolumn}{4} % compatibility
> \setvalue{\??sc\c!option\v!doublepage}{6} % compatibility
>
> % spec-fdf.tex
> \def\doPDFsetupscreen#1#2#3#4#5#6% watch the extra argument
> {\bgroup
> \xdef\currentPDFpagemode
> {\ifnum#6=4
> /PageLayout /TwoColumnRight
> \else\ifnum#6=5
> /PageLayout /TwoColumnLeft
> \else\ifnum#6=6
> /PageLayout /TwoPageRight
> \else\ifnum#6=7
> /PageLayout /TwoPageLeft
> \else
> /PageMode \ifcase#6
> /UseNone\or/FullScreen\or/UseOutlines\else/UseNone\fi
> \fi\fi\fi\fi}%
> \xdef\currentPDFviewerprefs % space after #6 needed, else \relax
> {\ifcase#6 \or\or\else /ViewerPreferences << /FitWindow true >>\fi}%
> \egroup}
> ------------------------------------------------------------
>
> ___________________________________________________________________________________
> 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 : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2008-04-19 20:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-19 13:58 Vit Zyka
2008-04-19 20:53 ` Hans Hagen [this message]
2008-04-20 7:39 ` Vit Zyka
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=480A5BDD.4020402@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
--cc=vit.zyka@seznam.cz \
/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).