我正在尝试复制如下图所示的阿拉伯字母:
我读过了这个问题和答案但是我认为我有些难以理解乳胶和右侧书写如何相互作用。
我的尝试,出现错误:
\documentclass[a4paper,12pt]{book}
\usepackage{arabtex}
\usepackage{utf8}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[frenchb]{babel}
%\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[usenames,svgnames]{xcolor}
\usepackage{listings}
\usepackage{booktabs}
\usepackage{longtable}
\makeatletter
\newcommand*{\textoverline}[1]{$\overline{\hbox{#1}}\m@th$}
\makeatother
\makeatletter
\newcommand*{\textunderline}[1]{$\underline{\hbox{#1}}\m@th$}
\makeatother
\begin{document}
\setcode{utf8}
\chapter{Introduction}
\section{Alphabet}
hello
\<السَلامُ عَليكم ورَحمةُ الله وبَركاته >
arabic
\begin{table}[htbp]
\centering
\begin{tabular}{llllll}
\toprule
Finale & médiane & initiale & isolée & transcription & nom \\
\< ا >\ & < ا >\ & < ا >\ & < ا > & \textoverline{a} & alif \\
\bottomrule
\end{tabular}
\end{table}
\< ا >
\< ــا >
\end{document}
当我注释表格的第二行时,所有内容均正确显示。
答案1
为什么不使用字母的音译代码https://en.wikipedia.org/wiki/ArabTeX
\documentclass[a4paper,12pt]{book}
\usepackage{arabtex}
\usepackage{array}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[frenchb]{babel}
%\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[usenames,svgnames]{xcolor}
\usepackage{listings}
\usepackage{booktabs}
\usepackage{longtable}
\makeatletter
\newcommand*{\textoverline}[1]{$\overline{\hbox{#1}}\m@th$}
\makeatother
\makeatletter
\newcommand*{\textunderline}[1]{$\underline{\hbox{#1}}\m@th$}
\makeatother
\begin{document}
\novocalize
\chapter{Introduction}
\section{Alphabet}
hello
\< al-slAm `lykom wr.hmT al-lh wbrkAth >
arabic
\begin{table}[htbp]
\centering
\begin{tabular}{cccccc}
\toprule
Finale & médiane & initiale & isolée & transcription & nom \\
\< -a > & \< -a > & \< a > & \< a > & \textoverline{a} & alif \\
\bottomrule
\end{tabular}
\end{table}
\end{document}