# Using Hyperref in LyX - PDFLaTeX Hebrew

In the past year or so I have been using LyX in Hebrew with the Hebrew Article document class, with the PDFLaTeX format. Lately I found the Hyperref package, and with a single click all non-Hebrew Article documents now have clickable links.

When I try to do the same with a Hebrew Article document, I encounter a compiling error:

pdfTeX error (ext4): pdf_link_stack empty, \pdfendlink used without \pdfstart


It is possible to solve this issue and compile and document with clickable links, without switching over to XeTeX or other formats?

I am using Windows 7. Thanks in advance.

TeX text:

%% LyX 2.1.3 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{lmodern}
\usepackage{courier}
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage[a4paper]{geometry}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\usepackage{babel}
\usepackage{float}
\usepackage{amsmath}
\usepackage[unicode=true,pdfusetitle,
bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
{hyperref}
\usepackage{breakurl}

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

% The following chunk fixes export with XeTeX.
% It is needed because polyglossia is used by default
% and \make@lr is only defined by babel.
\@ifundefined{make@lr}
{\def\make@lr#1{\begingroup
\toks@=\expandafter{#1}%
\edef\x{\endgroup
\def\noexpand#1{\noexpand\@number{\the\toks@}}}%
\x}}{\relax}

\@ifundefined{date}{}{\date{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{braket}
\usepackage{tensind}
\tensordelimiter{?}
\usepackage{culmus}

\makeatother

\begin{document}

\title{כותרת -- \L{Title}}

\maketitle
\tableofcontents{}

\newpage{}

\part{חלק -- \L{Part}}

\section{נושא -- \L{Section}}

\subsection{תת-נושא -- \L{Subsection}}
\end{document}

• is it possible to make a small latex (rather than lyx) document that shows the problem, so we can debug, thanks. – David Carlisle Jun 9 '16 at 18:21
• @DavidCarlisle I think the question was updated according to your comment. – scottkosty Jun 9 '16 at 22:43
• @FishyFod can you also post a .lyx minimal example? It is just a text file so you can copy/paste. Having the .lyx file corresponding to your .tex file will help a lot when figuring out if LyX is doing something wrong. – scottkosty Jun 9 '16 at 22:44
• @scottkosty yes I need to install some fonts to test it seems but may try at weekend – David Carlisle Jun 10 '16 at 7:42
• @DavidCarlisle Added the LyX file – FishyFod Jun 10 '16 at 12:11