XeTeX 的链接问题

XeTeX 的链接问题

当我尝试创建一个链接时,如果链接中断两行或更多行,则整个段落都变成链接,并且第一个单词(在 MWE)位于错误的位置(在句子末尾...

以下是 MWE:

% Preview source code

%% LyX 2.3.7 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[a4paper,english,hebrew,numbers=noenddot]{scrartcl}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{fontspec}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength{\parindent}{0bp}
\usepackage{color}
\usepackage{pifont}
\usepackage[unicode=true,pdfusetitle,
 bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
 breaklinks=false,pdfborder={0 0 0},pdfborderstyle={},backref=false,colorlinks=true]
 {hyperref}
\hypersetup{
 linkcolor=blue}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\pdfpageheight\paperheight
\pdfpagewidth\paperwidth


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\newfontfamily\hebrewfont[Script=Hebrew]{Arial}
\newfontfamily\hebrewfonttt[Script=Hebrew]{Arial}
\newfontfamily\hebrewfontsf[Script=Hebrew]{Arial}
\AtBeginDocument{
\renewcommand\footnoterule{%
  \kern -3pt
  \hbox to \textwidth{\hfill\vrule height 0.4pt width .4\textwidth}
  \kern 2.6pt
}}

\AtBeginDocument{
  \def\labelitemi{\Pisymbol{psy}{183}}
}

\makeatother

\usepackage{polyglossia}
\setdefaultlanguage{hebrew}
\setotherlanguage{english}
\begin{document}
אאא אאא אאאאא אאאא בבבבב בבבבבבב בבבבבבבב גגגגגגגג גגגגגג גג \LRE{\href{http://www.lyx.org}{הלינק הם המילים הללו רק}}
בבבב בבב גגגג גגגג גגגג דדדדד ההההה וווווווווו הההההוווו ווווו ההההההההההה
חחחחחחחחחח
\end{document}

如您所见,这是输出: 蓝色链接 只有下划线的单词是链接(不是整个段落)。

并且下划线单词(带有红线)应该是绿线在哪里: 词语顺序错误

你知道我该如何让它正常工作吗?单词将按正确的顺序排列,并且只有链接的单词才会被链接?(这只发生在希伯来语中,不会发生在英语中)

谢谢你!

相关内容