TeX - LaTeX Asked on March 11, 2021
I am switching from pdfLaTeX to XeLaTeX to simplify the use of obscure Cyrillic and Arabic characters in a single document in which English is the default language, but I’m finding that tables are not compiling when I use Arabic as one of the other languages. As soon as I take out Arabic and leave only English and Russian, tables work fine. Any idea how to fix this?
Here is a MWE:
documentclass[a4paper]{book}
usepackage{fontspec}
setmainfont{Times New Roman}
usepackage[margin=1in,headsep=.3in]{geometry}
sloppy
usepackage{setspace}
doublespacing
usepackage{parskip}
usepackage{needspace}
usepackage[bottom]{footmisc}
usepackage{fancyhdr}
usepackage[table]{xcolor}
usepackage{pifont}
usepackage{amsmath}
usepackage{dingbat}
usepackage{diagbox}
usepackage{slashbox}
usepackage{multicol}
usepackage{multirow}
usepackage[labelfont=bf]{caption}
usepackage{vowel}
usepackage{tikz-qtree}
usepackage{gb4e}
noautomath
usepackage{bold-extra}
usepackage{soul}
makeatletter
renewcommand{thexnumi}{if@noftnote@xsi{xnumi}elseroman{xnumi}fi}
makeatother
usepackage{natbib}
setcitestyle{aysep={},notesep={: }}
usepackage{bold-extra}
usepackage{footnote}
makesavenoteenv{tabular}
makesavenoteenv{table}
raggedbottom
setcounter{secnumdepth}{4}
usepackage{graphicx,calc}
newcommand*{img}[1]{%
raisebox{-.3baselineskip}{%
includegraphics[
height=.6cm,
width=.6cm,
keepaspectratio,
]{/Users/ClintParker/Desktop/Thesis/Images/#1}%
}%
}
usepackage{stackengine}
makeatletter
defthebibliography#1{chapter*{References@mkboth
{REFERENCES}{REFERENCES}}list
{[arabic{enumi}]}{settowidthlabelwidth{[#1]}leftmarginlabelwidth
advanceleftmarginlabelsep
usecounter{enumi}}
defnewblock{hskip .11em plus .33em minus .07em}
sloppyclubpenalty4000widowpenalty4000
sfcode`.=1000relax}
makeatother
usepackage[bookmarks=false, colorlinks=true, allcolors=, breaklinks]{hyperref}
%%%Polyglossia%%%
usepackage{polyglossia}
setdefaultlanguage{english}
setotherlanguages{russian, arabic}
newfontfamilyarabicfont{Al Nile}
begin{document}
begin{table}[h]
centering
begin{tabular}{cc}
hline
Hello & Hi
hline
end{tabular}
end{table}
end{document}
And here are the errors I’m getting:
./XeLaTeX Practice.tex:82: Extra }, or forgotten endgroup.
@endfloatbox ...pagefalse outer@nobreak egroup
color@endbox
l.82 end{table}
? ./XeLaTeX Practice.tex:82: Missing } inserted.
<inserted text>
}
l.82 end{table}
?
./XeLaTeX Practice.tex:84: LaTeX Error: begin{table} on input line 75 ended by
end{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.84 end{document}
?
./XeLaTeX Practice.tex:84: LaTeX Error: Float(s) lost.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.84 end{document}
?
Thanks very much for your help!
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP