From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40532 Path: news.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: new options for \setupinteractionscreen Date: Sun, 20 Apr 2008 09:39:32 +0200 Message-ID: <480AF334.9050509@seznam.cz> References: <4809FAA1.2080504@seznam.cz> <480A5BDD.4020402@wxs.nl> 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 1208677242 8161 80.91.229.12 (20 Apr 2008 07:40:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Apr 2008 07:40:42 +0000 (UTC) To: Hans Hagen , ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 20 09:41:16 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 1JnUAm-0000gA-4f for gctc-ntg-context-518@m.gmane.org; Sun, 20 Apr 2008 09:41:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 702331FC78; Sun, 20 Apr 2008 09:40:32 +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 12953-02-2; Sun, 20 Apr 2008 09:39:48 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 00FCB1FC16; Sun, 20 Apr 2008 09:39:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 65A1D1FC16 for ; Sun, 20 Apr 2008 09:39:45 +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 12953-02 for ; Sun, 20 Apr 2008 09:39:10 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by ronja.ntg.nl (Postfix) with ESMTP id DBA7E1FC14 for ; Sun, 20 Apr 2008 09:39:10 +0200 (CEST) Original-Received: by fg-out-1718.google.com with SMTP id e12so1118160fga.8 for ; Sun, 20 Apr 2008 00:39:10 -0700 (PDT) Original-Received: by 10.86.97.7 with SMTP id u7mr9940237fgb.39.1208677150696; Sun, 20 Apr 2008 00:39:10 -0700 (PDT) Original-Received: from ?192.168.1.1? ( [82.208.57.182]) by mx.google.com with ESMTPS id y2sm7805783mug.9.2008.04.20.00.39.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 20 Apr 2008 00:39:08 -0700 (PDT) User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) In-Reply-To: <480A5BDD.4020402@wxs.nl> 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:40532 Archived-At: Hans Hagen wrote: > 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 Much cleverer! But in this case there is a backward incompatibility {doublesided,continue} = current {doublesided} {doublesided} = would mean NONcontinuous Actually whenever I wanted to use facing layout, I wanted NONcontinuous. So I do not bother with this backward incompatibility. May be somebody else do? Vit >> 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 ___________________________________________________________________________________