Re: [NTG-context] Strange error with bookmarks

2014-10-14 Thread Hans Hagen

On 10/14/2014 1:41 PM, Michał Goliński wrote:

It does indeed be somehow connected with the specific reader that
I use (okular). Nevertheless, evince gives the same error, and I have found out,
that even jpdfbookmarks_cli has problems as it raises an exception when I try
to dump the bookmarks:

   Exception in thread main java.lang.ClassCastException: 
com.lowagie.text.pdf.PdfNumber cannot be cast to com.lowagie.text.pdf.PdfString

Still, in Acrobat Readers it works perfectly.


better in next beta

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Strange error with bookmarks

2014-08-29 Thread Hans Hagen

On 8/26/2014 1:45 PM, Michał Goliński wrote:

While trying to make a longer document with ConTeXt I stumbled into a
strange error with the latest beta (I spotted it for the first time some
time ago). For the following file:

\setupinteraction[state=start,focus=standard]
\placebookmarks[part,chapter][part,chapter][number=no]
\starttext
\chapter{0}
\startpart[title={A}]
   \chapter{1}
   \chapter{2}
\stoppart
\startpart[title={B}]
   \chapter{3}
   \chapter{4}
   \chapter{5}
   \chapter{6}
   \chapter{7}
   \chapter{8}
   \chapter{9}
   \chapter{10}
\stoppart
\completecontent[criterium=all]
\stoptext


ConTeXt would generate a file in which the link for chapter 6 is not
working. Neither the link in the table of contents works nor the link in
the generated PDF bookmarks. When removing the second line, the link in
the table of contents doesn't work, but everyting is ok if one removes
the table of contents. What seems even more weird for me, the problem
goes away if one removes *any* chapter. It persists for chapter 6 even
if chapters are distributed differently between parts without changing
their order.

Am I doing something wrong? I hope someone might be able to help.


It works here (with summatrapdf) ... can it be a viewer issue? Do you 
run the latest context?


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___