為什麼用 babel 寫阿拉伯語不需要 LAE 字型編碼 (pdflatex)

為什麼用 babel 寫阿拉伯語不需要 LAE 字型編碼 (pdflatex)

的手冊arabi套件提到你需要LAE字體編碼via\usepackage[LAE]{fontenc}來用babel(pdflatex)編寫阿拉伯語,但是使用texlive2019我們可以在不添加LAE字體編碼的情況下獲得正確的結果!

微量元素

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
%\usepackage[LAE]{fontenc}
\usepackage[english,arabic]{babel}

\begin{document}

تجريب كتابة نص

\end{document}

在此輸入影像描述

答案1

您的範例的終端輸出是

(/usr/local/texlive/2019/texmf-dist/tex/latex/arabi/arabic.ldf
Loading the definitions for the LaTeX{} Arabic encoding
(/usr/local/texlive/2019/texmf-dist/tex/latex/arabi/laeenc.def
(/usr/local/texlive/2019/texmf-dist/tex/latex/arabi/laeenc.dfu))
Loading the Common definitions for Arabic and Farsi
(/usr/local/texlive/2019/texmf-dist/tex/latex/arabi/arabicore.sty

(嵌套中可以看到arabic選項檔案arabic.ldf載入了LAE編碼檔案laeenc.def 並且laeenc.dfu

相關內容