GeneralToken not allowed - babel (arabic) and hyperref conflict

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
gkamel
Posts: 25
Joined: Thu Oct 30, 2008 1:53 pm

Token not allowed - babel (arabic) and hyperref conflict

Post by gkamel »

Hello,

I am using babel with hyperref, but get the following message repeated several times during compile when I include arabic (provided by the 'arabi' package) as an option of babel:
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding)
The default document language is English.

I'd like to know what exactly this is caused by, and how the message can be eliminated.

Below is an MWE:

Code: Select all

\documentclass{article}

\usepackage[cp1256,latin1]{inputenc}
\usepackage[arabic,english]{babel}
\usepackage[LAE,T1]{fontenc}
\usepackage{hyperref}

\begin{document}
\selectlanguage{english}

\section{Section 1}
\subsection{Subsection 1}
\subsection{Subsection 2}

\section{Section 2}
\subsection{Subsection 1}
\subsection{Subsection 2}

\end{document}
Many thanks
George Kamel

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Post Reply