From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40495 Path: news.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: new options for \setupinteractionscreen Date: Sat, 19 Apr 2008 15:58:57 +0200 Message-ID: <4809FAA1.2080504@seznam.cz> Reply-To: vit.zyka@seznam.cz, mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1208625385 6975 80.91.229.12 (19 Apr 2008 17:16:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2008 17:16:25 +0000 (UTC) To: ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 19 19:16:55 2008 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1JnDcQ-0002mU-KB for gctc-ntg-context-518@m.gmane.org; Sat, 19 Apr 2008 16:00:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9346C1FD2A; Sat, 19 Apr 2008 16:00:01 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25810-01-26; Sat, 19 Apr 2008 15:59:23 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 423C21FD4A; Sat, 19 Apr 2008 15:59:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C571B1FD4A for ; Sat, 19 Apr 2008 15:59:21 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27888-01-4 for ; Sat, 19 Apr 2008 15:58:46 +0200 (CEST) Original-Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.184]) by ronja.ntg.nl (Postfix) with ESMTP id 9058A1FCDE for ; Sat, 19 Apr 2008 15:58:46 +0200 (CEST) Original-Received: by fk-out-0910.google.com with SMTP id 18so1257890fkq.2 for ; Sat, 19 Apr 2008 06:58:44 -0700 (PDT) Original-Received: by 10.82.121.20 with SMTP id t20mr6897623buc.20.1208613523755; Sat, 19 Apr 2008 06:58:43 -0700 (PDT) Original-Received: from ?192.168.1.1? ( [82.208.57.182]) by mx.google.com with ESMTPS id s10sm1847228mue.15.2008.04.19.06.58.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 19 Apr 2008 06:58:37 -0700 (PDT) User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:40495 Archived-At: 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 ] 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 ___________________________________________________________________________________