[Glean] Package hyperref: Token not allowed

Published: by Creative Commons Licence (Last updated: )

PDFDocEncoding Warning

When we're using hyperref to generate toc for the PDF file, we may witness this error if there are unsupported tokens in our titles:

Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):(hyperref)

The easiest solution for this is to use \texorpdfstring{token in Tex}{string that shown in PDF toc}.

For example:

\subsection{\texorpdfstring{$7 \times 7$}{7 × 7}, Stride 2}