IEEE Access 模板与阿拉伯语冲突

IEEE Access 模板与阿拉伯语冲突

我正在尝试在英文文本中插入阿拉伯语单词,我已从下面的期刊网站下载了模板:

https://journals.ieeeauthorcenter.ieee.org/create-your-ieee-journal-article/authoring-tools-and-templates/ieee-article-templates/templates-for-ieee-access/

\documentclass{ieeeaccess}

\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}

当我尝试插入阿拉伯语单词时出现以下错误:

! Package inputenc Error: Unicode character ش (U+0634)

我读过一篇建议使用的文章:

\usepackage[arabic,USenglish]{babel}

当我调用 "\usepackage[arabic,USenglish]{babel}" 时,出现了 20 多个错误,:(

\documentclass{ieeeaccess}

\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[arabic,USenglish]{babel}

错误列表:

! Undefined control sequence.
\thesubsection ... \c@section .\number \c@chapter
}\protect \else \protect \...
l.452 \subsection{Copyright Form}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Missing number, treated as zero.
<to be read again>
}
l.452 \subsection{Copyright Form}
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
! Undefined control sequence.
\thesubsection ...ect \textLR {\number \c@chapter
.\number \c@section .\numb...
l.452 \subsection{Copyright Form}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Missing number, treated as zero.
<to be read again>
.
l.452 \subsection{Copyright Form}
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
! Undefined control sequence.
\thesubsection ... \c@section .\number \c@chapter
}\protect \else \protect \...
l.452 \subsection{Copyright Form}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Missing number, treated as zero.
<to be read again>
}
l.452 \subsection{Copyright Form}
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
! Undefined control sequence.
\thesubsection ...ect \textLR {\number \c@chapter
.\number \c@section .\numb...
l.452 \subsection{Copyright Form}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Missing number, treated as zero.
<to be read again>
.
l.452 \subsection{Copyright Form}
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

答案1

将 arabtex 包与 utf8 包和编码一起使用

\usepackage{arabtex}
\usepackage{utf8}
\setcode{utf8}

\RL{}然后你可以简单地输入阿拉伯语文本\RL{مرحبا}

相关内容