LaTeX hyperref Warning: Token not allowed in a PDF string

Math mode or formatting macro appeared inside a `\section{...}` title.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: LaTeX hyperref Warning Platform: Media
Common Root Causes:
  • Math mode or formatting macro appeared inside a `\section{...}` title.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Supply plain bookmark text via `\texorpdfstring{$E=mc^2$}{E=mc^2}`.
Safe Diagnostic Command:
grep "Token not allowed" build.log
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

Math mode or formatting macro appeared inside a `\section{...}` title. Recommended diagnostic: `grep "Token not allowed" build.log`. Remediation: Supply plain bookmark text via `\texorpdfstring{$E=mc^2$}{E=mc^2}`.

Worked Examples

  • Run `grep "Token not allowed" build.log` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-latex-hyperref-unicode-bookmark · Independently verified: 2026-11-25

Related Resources