我之前问过这个问题,但是当我使用\polyglossia
包代码时并没有给我相同的结果,如果有人可以帮忙的话。
\documentclass{article}
\usepackage{chemfig}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage[numerals=maghrib]{arabic}
\setotherlanguage{english}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.0]{Simplified Arabic}
\newcommand{\en}{\textenglish}
\newcommand{\ar}{\textarabic}
\setchemfig{atom sep=2em}
\begin{document}
\schemestart
\chemfig{CH_3-CH_2-CH_2-CH_2-OH}
\arrow(.mid east--.mid west)
{->[ \footnotesize\chemfig{K_2Cr_2O_7}/\chemfig{H^{+}} ]}[,1.6]
\chemfig{CH_3-CH_2-CH_2-C(=[2]O)
-@{h3}H}
\arrow(.mid east--.mid east){0}[-90,2]
\chemfig{CH_3-CH_2-CH_2-C(=[2]O)-O@{h4}H}
\schemestop
\chemmove{
\draw[shorten <=5pt, shorten >=5pt]
(h3) -- ([xshift=25pt]h3.center) -- node[pos=0.5,right] {\footnotesize [O]} ([xshift=25pt]h4.center) -- (h4);
}
\end{document}