[NTG-context] Help with interaction

luigi.scarso luigi.scarso at logosrl.it
Wed Jul 20 13:56:03 CEST 2005


luigi.scarso wrote:

> Hi, I would like that whan i click over 'Bho' at page 1
> I go to page 2 and see the title Bho
>
> \setupinteraction[state=start, focus=width]
> \starttext
> \about[etichetta]
> \page
> \section[etichetta]{Bho}
> \input tufte
> \stoptext
>
> This piece of latex does the thing I want
> %%% latex
> \documentclass[a4paper, 12pt]{article}
> \usepackage[bookmarks=false, pdfstartview=FitH, pdfview=FitH]{hyperref}
> \usepackage{nameref}
> \begin{document}
> \nameref{etichetta}
> \clearpage
> \section{Bho}\label{etichetta}
> \input{tufte}
> \end{document}
> %%%%
>
> thanks
> luigi
> _______________________________________________ 

If I use
\setupinteraction[state=start, focus=minwidth]

I have
! Undefined control sequence.
<argument> \v!minwidth


To work\unprotect
\def\dosetuppageview#1% watch the v-h swapping here
  {\processaction
     [#1]
     [       \v!fit=>\def\PDFpageviewkey  {fit}\def\PDFpageviewwrd{/Fit},
           \v!width=>\def\PDFpageviewkey {fith}\def\PDFpageviewwrd{/FitH},
          \v!height=>\def\PDFpageviewkey {fitv}\def\PDFpageviewwrd{/FitV},
        minwidth=>\def\PDFpageviewkey{fitbh}\def\PDFpageviewwrd{/FitBH},
       minheight=>\def\PDFpageviewkey{fitbv}\def\PDFpageviewwrd{/FitBV},
        standard=>\def\PDFpageviewkey{xyz 
\PDFpagexyzspec}\def\PDFpageviewwrd{/XYZ \PDFpagexyzspec},
         \s!unknown=>\def\PDFpageviewkey  {fit}\def\PDFpageviewwrd{/Fit}]%
   \edef\PDFpageview{/View [\PDFpageviewwrd]}}
\protect




More information about the ntg-context mailing list