From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43693 Path: news.gmane.org!not-for-mail From: "Alan Stone" Newsgroups: gmane.comp.tex.context Subject: interactionbuttons Date: Wed, 3 Sep 2008 12:12:05 +0200 Message-ID: <326847810809030312k5cf04b7fgec1b5b0d859ce497@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1375075148==" X-Trace: ger.gmane.org 1220436951 5013 80.91.229.12 (3 Sep 2008 10:15:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Sep 2008 10:15:51 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 03 12:16:46 2008 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 1KapPo-0005QK-IA for gctc-ntg-context-518@m.gmane.org; Wed, 03 Sep 2008 12:16:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9C8111FB57; Wed, 3 Sep 2008 12:15:36 +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 25451-01-5; Wed, 3 Sep 2008 12:14:41 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D45C11FB6B; Wed, 3 Sep 2008 12:14:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F14451FB57 for ; Wed, 3 Sep 2008 12:14:28 +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 25451-01-4 for ; Wed, 3 Sep 2008 12:13:43 +0200 (CEST) Original-Received: from ey-out-1920.google.com (ey-out-1920.google.com [74.125.78.148]) by ronja.ntg.nl (Postfix) with ESMTP id EF8FA1FB89 for ; Wed, 3 Sep 2008 12:12:05 +0200 (CEST) Original-Received: by ey-out-1920.google.com with SMTP id 21so969836eyc.38 for ; Wed, 03 Sep 2008 03:12:05 -0700 (PDT) Original-Received: by 10.210.68.17 with SMTP id q17mr3791188eba.134.1220436725491; Wed, 03 Sep 2008 03:12:05 -0700 (PDT) Original-Received: by 10.210.16.2 with HTTP; Wed, 3 Sep 2008 03:12:05 -0700 (PDT) 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:43693 Archived-At: --===============1375075148== Content-Type: multipart/alternative; boundary="----=_Part_20573_10546715.1220436725489" ------=_Part_20573_10546715.1220436725489 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline What's missing for this to work ? \definereference[GoToToC][\goto{ToC}[myToC]] \def\myButtons {\interactionbuttons[width=1cm][ GoToToC,CloseDocument]} \setupinteraction[state=start] \setupfooter[state=start] \setupfootertexts [\hfill \myButtons \hfill] % [\hfill test \hfill] \showframe %\showsetups \starttext \reference[myToC]{} \placecontent \chapter{Chapter 1} \input knuth \stoptext Thx, Alan ------=_Part_20573_10546715.1220436725489 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
What's missing for this to work ?

\definereference[GoToToC][\goto{ToC}[myToC]]

\def\myButtons
    {\interactionbuttons[width=1cm][
        GoToToC,CloseDocument]}

\setupinteraction[state=start]

\setupfooter[state=start]
\setupfootertexts
    [\hfill \myButtons \hfill]
%    [\hfill test \hfill]
   
\showframe
%\showsetups
 
\starttext
\reference[myToC]{}
\placecontent

\chapter{Chapter 1}
\input knuth
\stoptext

Thx,
Alan
------=_Part_20573_10546715.1220436725489-- --===============1375075148== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1375075148==--