Hello,

When I use hyperref in conjunction with babel, and the document
language is defined as Hebrew, it doesn't compile.

I tried both MiKTeX and TeXlive, The message I'm getting is:
! pdfTeX error (ext4): pdf_link_stack empty, \pdfendlink used without \pdfstart
link?.
\atbeg...@output ...ipout \box \AtBeginShipoutBox
                                                  \fi \fi
l.13 \pagebreak{
                }
!  ==> Fatal error occurred, no output PDF file produced!

Here's an example document. Parts of it are in Hebrew, codepage 1255.

%% LyX 1.6.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english,hebrew]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9,cp1255]{inputenc}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\usepackage{babel}

\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
 breaklinks=true,pdfborder={0 0 1},backref=false,colorlinks=false]
 {hyperref}

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\usepackage{theorem}
\theorembodyfont{\upshape}
\newtheorem{theorem}{\R{משפט}}[section]
\atbegindocument{\m...@lr\thetheorem}

\makeatother

\begin{document}

\title{בדיקה}

\maketitle
\tableofcontents{}

\pagebreak{}


\section{סעיף ראשון}


\subsection{תת-סעיף ראשון}

לה לה

לי לי

לו לו

\pagebreak{}


\section{סעיף שני}


\subsection{תת-סעיף ראשון}

לה לה


\subsection{תת-סעיף שני}

לי לי
\end{document}

Reply via email to