捷克巴别塔和 chemacros 在显示反应箭头时发生冲突,导致
chemformula error: "unknown-arrow"
The arrow type <-> doesn't exist on line 19.
如果关闭捷克语 babel 或者使用西班牙语,它就可以工作。
如何让它们一起工作?用类似的方法修复它这里?
最小工作示例:
\documentclass[a4paper,12pt]{article}
% \usepackage[spanish,es-noquoting]{babel} %all working with spanish babel
\usepackage[czech]{babel}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usepackage{chemmacros}
\chemsetup{modules=all}
\chemsetup{formula=chemformula}
\begin{document} <<Test>>
\ch{1 glucosa_{(s)} <=>> glucosa_{(aq)}} %working
\ch{2 glucosa_{(s)} <-> glucosa_{(aq)}} %not working
\ch{3 glucosa_{(s)} -> glucosa_{(aq)}} %not working
\begin{reaction} 4 glucosa_{(s)} <=> glucosa_{(aq)} %working \end{reaction}
\begin{reaction} 5 glucosa_{(s)} <-> glucosa_{(aq)} %not working
\end{reaction}
<<Test>>
\end{document}
类似问题:
答案1
尝试关闭shorthands
:
\usepackage[shorthands=off,czech]{babel}