[pdftex] Revisiting (About CJKbookmarks)

Heiko Oberdiek oberdiek at uni-freiburg.de
Thu Feb 23 10:42:53 CET 2006

On Thu, Feb 23, 2006 at 12:24:10PM +1100, Ross Moore wrote:

> I want to revisit this thread, but in connection with placing
> mathematical symbols into bookmarks.

\texorpdfstring, \pdfstringdefDisableCommands

> >>* \pdfstringdefPostHook#1: #1 contains the macro with the
> >>  expanded bookmark string. Thus the bookmark string
> >>  can be postprocessed.
> The string resulting from this gets written to the  .out file.
> It's not until the next run of pdfTeX that the correct bookmarks
> appear.
> This means that it should also be possible to preprocess the .out
> file before the next run; e.g. using
> \AtEndDocument{\immediate\write18{%
>   <some system command or script> \jobname.out
>  }}
> So if I want to replace the strings 'lambda', 'alpha', 'omega', etc.
> by appropriate unicode representations,
>  a.  what needs to go into the .out file ?
>  b.  what else needs to be done ?
>       e.g.  options to hyperref, or \hypersetup

Many Greek letters are already supported, given as \text... macros.


  % etc.

But this is not the problem with math.
Bookmarks are not typesetted areas, they are just text strings.

>  c.  what version of pdfTeX is needed ?

I don't see a dependency from the pdfTeX version.

>  d.  what actual font will be used in the PDF browser ?
>      Do I need to supply font subsets inside the .pdf file ?

No, the fonts are not taken from the .pdf file but from the
system, where the pdf browser is installed.

> Also,
>   Is it possible to use different typefaces ?

AFAIK you can use color or bold/italic for the whole string.

>   Can super/sub-scripts be supported in bookmarks ?

Except for a few letters (twosuperior, ...) no.

It is possible that some pdf browsers support some own methods.
xpdf seems to use "pango" for the bookmarks, whatever this means.

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>

More information about the pdftex mailing list