ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* RE: How to get bookmarks working?
@ 1998-07-31 18:52 Berend de Boer
  0 siblings, 0 replies; 5+ messages in thread
From: Berend de Boer @ 1998-07-31 18:52 UTC (permalink / raw)


On Friday, July 31, 1998 10:26 AM, Hans Hagen [SMTP:pragma@wxs.nl] wrote:

> Wrong: pdfTeX fails. The page key seems no longer supported. Can you
> change this in spec-tpd:

It works now!! Great. I'm adding more and more pdf stuff and Acrobat 
features. This is really great stuff!

For example I've dozens of documents describing user interfaces. I've 
embedded links in the pdf file so people can directly start the prototypes, 
switch to design documents, etc.

Of course, this is possible with html too, but my main output currently is 
paper, and it's nice to have paper on screen really add something to 
viewing it on your screen.

Groetjes,

Berend.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to get bookmarks working?
@ 1998-07-31  8:25 Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 1998-07-31  8:25 UTC (permalink / raw)
  Cc: 'ntg-context@ntg.nl'

Berend de Boer wrote:

> > > I like to get bookmark support in the Acrobat viewer. In the sources this seems to be possible, but whatever I try, it fails.
> >
> > I never use them myself (Ijust use the tables of contents), but here is
> > how it should work:
> 
> It doesn't work. With bookmarks I also mean the table of contents, i.e. the separate window you get in Adobe. If I add
> 
> \placebookmarks[hoofdstuk]
>         [hoofdstuk]
> 
> context fails with:

Wrong: pdfTeX fails. The page key seems no longer supported. Can you
change this in spec-tpd:

\def\doPDFbookmark level #1 n #2 text #3 page #4 open #5%
  {\pdfoutline
     user {<</S /GoTo /D [#4 /Fit]>>}%
     \ifcase#2 \else count \ifcase#5-\fi#2 \fi
     {#3}}

And this in spec-fdf: 

\def\doPDFinsertbookmark#1#2#3#4#5% level sublevels text page open=1
  {\bgroup
   \scratchcounter=#4%
   \advance\scratchcounter by -1
   \sanitizePDFstring#3\to\bookmarktext
   \doPDFbookmark level #1 n #2 text {\bookmarktext}
      page {\the\scratchcounter} open #5
   \egroup}

BTW, this only applies for the latest context releases, which have
reorganized pdf special drivers. 

Hans

-----------------------------------------------------------------
                                              Hans Hagen | PRAGMA
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | fax: 038 477 53 74 | mail: pragma@wxs.nl
-----------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: How to get bookmarks working?
@ 1998-07-30 17:06 Berend de Boer
  0 siblings, 0 replies; 5+ messages in thread
From: Berend de Boer @ 1998-07-30 17:06 UTC (permalink / raw)


On Thursday, July 30, 1998 8:50 AM, Hans Hagen [SMTP:pragma@wxs.nl] wrote:

> > I like to get bookmark support in the Acrobat viewer. In the sources this seems to be possible, but whatever I try, it fails.
> 
> I never use them myself (Ijust use the tables of contents), but here is
> how it should work:

It doesn't work. With bookmarks I also mean the table of contents, i.e. the separate window you get in Adobe. If I add 

\placebookmarks[hoofdstuk]
        [hoofdstuk]

context fails with:

(./kkcom.tuo
! Missing { inserted.
<to be read again>
                   \egroup
\doonespecial ...t }{Inleiding}{3}{\openbookmark }
                                                  \relax
\next1 #1,->\doonespecial {#1}
                              \doprocesscommaitem
\nextcommaitem ...mmaitem }\doprocesscommaitem #1,
                                                  ]\relax \advance \commalev...
<argument> \flushbookmark
                          \dodoputbookmarkelement {\v!hoofdstuk }{2}{2}{Ondu...

\doifelse ...\ifx \!!stringa \!!stringb #3\else #4
                                                  \fi
l.8 ...{2}{2}{Onduidelijk}{h::0:2:0:0:0:0:0::3}{4}

?

Groetjes,

Berend.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to get bookmarks working?
@ 1998-07-30  6:50 Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 1998-07-30  6:50 UTC (permalink / raw)


Berend de Boer wrote:

> I like to get bookmark support in the Acrobat viewer. In the sources this seems to be possible, but whatever I try, it fails.

I never use them myself (Ijust use the tables of contents), but here is
how it should work:

% \chapter{het eerste hoofdstuk}
%
% \bookmark {de eerste bookmark} % optional one that overules \chapter

% .... text ....
%
% \placebookmarks 
%   [chapter,section,subsubsection,mylist]     % these are taken 
%   [chapter,mylist]                           % these are open 
%
% \definelist[mylist]
% \bookmark[mylist]{whatever}

I hope this still work. The main problem is that tricky titles become
garbage, which is due to the way bookmarks work. This will change as
soon as bookmarks get appearances (not possible yet).  

Bookmarks are kind of tricky, look in core-01d for the tricks to build
the necessary data structures. 

I hope this helps. 

Hans

-----------------------------------------------------------------
                                              Hans Hagen | PRAGMA
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | fax: 038 477 53 74 | mail: pragma@wxs.nl
-----------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* How to get bookmarks working?
@ 1998-07-29 20:04 Berend de Boer
  0 siblings, 0 replies; 5+ messages in thread
From: Berend de Boer @ 1998-07-29 20:04 UTC (permalink / raw)


Hai All,

I like to get bookmark support in the Acrobat viewer. In the sources this seems to be possible, but whatever I try, it fails.

Please help.

Groetjes,

Berend.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-07-31 18:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-07-31 18:52 How to get bookmarks working? Berend de Boer
  -- strict thread matches above, loose matches on Subject: below --
1998-07-31  8:25 Hans Hagen
1998-07-30 17:06 Berend de Boer
1998-07-30  6:50 Hans Hagen
1998-07-29 20:04 Berend de Boer

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).