[pdftex] pdfstringdef

Heiko Oberdiek oberdiek at uni-freiburg.de
Wed May 10 15:57:56 CEST 2006


On Wed, May 10, 2006 at 08:12:43AM -0400, Victor Ivrii wrote:

> On 1/8/06, Heiko Oberdiek <oberdiek at uni-freiburg.de> wrote:
> >
> > \pdfstringdef<macro name><string>
> >
> > \a1 and \a2 aren't macro names.
> >
> > "\a1" consist of two tokens "\a" and "1".
> >
> > Yours sincerely
> >   Heiko <oberdiek at uni-freiburg.de>
> > --
> 
> To what degree mathematical expressions could be written in the bookmark name?
> I understand that this is more limitation of pdf itself than of
> hyperref or pdflatex.

Yes, look at the PDF specification: PDFDocEncoding or Unicode.
Or in hyperref's pd1enc.def/puenc.def, e.g.
  \textplusminus
  \textonesuperior
  ...

> When the section title contains mathematical expression it looks like
> all non-English ASCII characters are stripped (even if they are Greek
> letters, mathitalics becomes roman and instead of ^ (power) - (dash)
> is appearing.

You cannot change fonts inside bookmarks (limitation of PDF spec.)

> What one should do to preserve Greeks and ^ as a sign of power?

To some amount Greek is supported if option "unicode" is used:
  \textAlpha, \textBeta, ...

See also \texorpdfstring and slides.pdf/paper.pdf of hyperref's
documentation.

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


More information about the pdftex mailing list