[tex-live] error in ps code for table of contents

Zdenek Wagner zdenek.wagner at gmail.com
Mon Apr 20 15:33:17 CEST 2009

2009/4/20 andrew collier <collierab at gmail.com>:
> hi,
> i had a problem with generating a pdf file from a (rather large) latex ps
> file, which i thought was initially a problem with ghostscript. i posted the
> bug report there and you can see it at:
> http://bugs.ghostscript.com/show_bug.cgi?id=690427
I do not remember the pdfmark specification exactly but as I see from
the file, /Count -11 means that "Vectors and Tensors" is the highest
level item with 11 subitems and the outlines are initially closed, the
next items contain /Count -0 which means that they have no subitems,
i.e. all of them are at the same hierarchy level.

Notice that PDF ellows three levels (e.g. chapter/section/subsection).
Thus you have to assign LaTeX sectioning levels to PDF outline levels.

> howevere, the ghostscript folk seem to think that the problem actually lies
> with latex. so here are the symptoms. i have a document which is written
> using the report class. it has chapters, sections and subsections. when i
> generate a ps file using dvips the structure of the table of contents starts
> off line like:
> SDict begin [ /Count -11 /Dest (chapter*.3) cvn /Title (Vectors and Tensors)
> /OUT pdfmark end
>  -104 -39 a
> -104 -39 a
> SDict begin [ /Count -0 /Dest (section*.4) cvn /Title (Vectors) /OUT
> pdfmark end
>  -104 -39 a -104 -39 a
> SDict begin [ /Count -0 /Dest (section*.4) cvn /Title (Bases) /OUT
> pdfmark end
>  -104 -39 a -104 -39
> a
> SDict begin [ /Count -0 /Dest (section*.4) cvn /Title (Representation)
> /OUT pdfmark end
>  -104 -39 a -104 -39 a
> now here "Vectors and Tensors" is a chapter, "Vectors" is a subsection and
> "Bases"/"Representation" are subsections. But the last three all end up on
> the same level as far as ghostscript is concerned.
> any idea what the problem here is?
> i am using tetex-3.0-i486-5 on a slackware 12.0 system. posting here because
> tetex no longer seems to be maintained and they recommend directing all
> further queries to tex-live.
> best regards,
> andrew.

Zdeněk Wagner

More information about the tex-live mailing list