不使用 hyperref 编译源代码效果很好,但是我一使用hyperref
就会出现编译错误。
%!TEX TS-program = xelatex
\documentclass[11pt, DIV=15, BCOR=10mm,parskip=half, headings=normal,openright,headsepline,
chapterprefix=off]{scrbook}
\usepackage{setspace}
\usepackage{amsmath}
\usepackage{array}
\usepackage{calc}
\usepackage{amsthm}
\usepackage{enumitem}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{supertabular}
\usepackage{longtable}
\usepackage{fontspec}
\usepackage{chappg}
\pagenumbering{bychapter}
\usepackage{booktabs}
\usepackage[colorlinks=true,linktoc=all,hypertexnames=false,naturalnames=true]{hyperref}
\usepackage{polyglossia}
\newfontfamily\arabicfont[Script=Arabic, Mapping=arabicdigits, Scale=1.6]{Scheherazade}
\newfontfamily\bold[Script=Arabic, Mapping=arabicdigits, Scale=1.2]{Times New Roman}
\setmainlanguage{english}
\setotherlanguage{arabic}
\newcommand\ba[1]{\textbf{\bold{#1}}\arabicfont}
\newcommand\rl{\textarabic}
\newcommand{\ty}{\texttt}
\newcommand{\tb}{\textbf}
\newcommand\HRule{\noindent\rule{\linewidth}{1.5pt}}
\begin{document}
\begin{tabular}{|>{\small\raggedright\hspace{0pt}}p{48mm}
|>{\raggedleft \hspace{0pt}}p{50mm}
|>{\raggedleft \hspace{0pt}\arraybackslash}p{50mm} |} \hline
They (f., pl.) are not students in this school. &
\rl{لَسْنَ طالباتٍ في هذه المدرسةِ.} &
\rl{1. هن طالبات في هذه المدرسة.} \\ \cline{1-2}
They were students in this school. &
\rl{كُنَّ طالباتٍ في هذه المدرسةِ.} &
\\ \cline{1-2}
They were not students in this school. &
\rl{لم يَكُنَّ طالباتٍ في هذه المدرسةِ.} &
\\ \hline
\end{tabular}
\end{document}
答案1
看来,longtable
之后加载hyperref
可以解决这个问题。
这与课程有关scrbook
,但是,如果我使用book
它,问题就不会出现。