ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Alan Stone" <software.list.1es9s@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: \*interaction* commands
Date: Wed, 30 Jul 2008 17:50:05 +0200	[thread overview]
Message-ID: <326847810807300850x2d74f035g7d5bd1d6fda86373@mail.gmail.com> (raw)
In-Reply-To: <48902149.60706@wxs.nl>


[-- Attachment #1.1: Type: text/plain, Size: 2448 bytes --]

After modifying the s-pre-05.tex example and replacing
\setupinteractionmenu[right] with \defineinteractionmenu[myMenu][right]
the menu doesn't show up anymmore in the pdf.

What's missing ?

Thanks,
Alan

%\usemodule[pre-general]

\setuppapersize[S6][S6]

\setupbodyfont[14.4pt]

\setuplayout
  [width=430pt,
   height=400pt,
   header=0pt,
   footer=0pt,
   margin=0pt,
   backspace=25pt,
   topspace=25pt,
   rightedgedistance=20pt,
   rightedge=110pt]

\setupcolors[state=start]

%\setupinteractionscreen[option=max]

%\setupbackgrounds[state=repeat]

%\setupbackgrounds[page]
%  [backgroundcolor=white]

\setupinteraction[
  state=start,
   menu=on]
%   page=yes/no     % what is that ?

\defineinteractionmenu[myMenu][right][
    before=,
    after=,
    style=smallbold,
    height=35pt,
   offset=10pt,
    frame=on]

%\startinteractionmenu[right]
\startinteractionmenu[myMenu]
    \placelist[chapter][
     criterium=all,
     alternative=right,    % what is "right" ?
     maxwidth=.8\rightedgewidth,
%     interaction=all,    % what is this supposed to be for ?
     before=,
     after=]
  \vfill
%  \setupinteractionmenu[right]
  \setupinteractionmenu[myMenu]
    [height=30pt]
  \but [CloseDocument] Close \\
\stopinteractionmenu

\setupwhitespace[big]

\setupblank[big]

%\defineoverlay[NextPage][\overlaybutton{forward}]

\def\StartTitlePage%
  {
   \setupbackgrounds[text][text][background=]
%   \setupinteraction[menu=off]
   \setupinteraction[menu=on]
%    \setupinteractionbar[state=stop]
    \setupinteractionbar[state=start]
   \setuplayout[width=550pt,rightedge=0pt]
   \startstandardmakeup
   \switchtobodyfont[24pt]
   \bfd\setupinterlinespace
   \setupalign[middle]
   \vfil
   \let\\=\vfil}

\def\StopTitlePage%
  {\vfil\vfil\vfil
   \stopstandardmakeup
   \setuplayout[width=430pt,rightedge=110pt]
   \setupinteraction[menu=on]
   \setupinteractionbar[state=start]
   }

\def\TitlePage#1%
  {\StartTitlePage#1\StopTitlePage}

\setuphead
    [chapter, title]
    [after={\blank[3*medium]},
        number=no,
        style=\tfb,
        page=yes,
        alternative=middle]

\setuphead
    [section]
    [after=\blank,
        number=no,
        page=yes,
        continue=no,
        style=\tfa]

\starttext

\TitlePage{Title Page}

Some Nice Quotes

\chapter{A Few}

\section{Knuth} \input knuth
\section{Tufte} \input tufte

\chapter{Some More}

\section{Zapf}   \input zapf
\section{Bryson} \input bryson

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 4236 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2008-07-30 15:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-29 13:28 Alan Stone
2008-07-29 15:29 ` Taco Hoekwater
2008-07-29 15:49   ` Alan Stone
2008-07-29 17:52   ` Hans Hagen
2008-07-29 18:28     ` Alan Stone
2008-07-29 20:15       ` Hans Hagen
2008-07-30  7:55         ` Alan Stone
2008-07-30  8:07           ` Hans Hagen
2008-07-30 15:50             ` Alan Stone [this message]
2008-07-30 16:18               ` Hans Hagen

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=326847810807300850x2d74f035g7d5bd1d6fda86373@mail.gmail.com \
    --to=software.list.1es9s@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).