Open syvshc opened 2 years ago
操作系统
TeX 发行版
使用 siunitx 宏包自定义 list-final-separator 时不能正确地处理间距, 而在 list-pair-separator 与 range-phrase 中可以.
siunitx
list-final-separator
list-pair-separator
range-phrase
\documentclass{ctexart} \usepackage{siunitx} \sisetup{ list-final-separator = { 和 }, list-pair-separator = { 和 }, range-phrase = { 到 }, } \begin{document} \numlist{1;2;3}\\ \numrange{1}{10}\\ \qtyrange{50}{150}{\milli\electronvolt} \end{document}
(用 XeLaTeX 编译后)输出
可以看到 1, 2 和 3 中的间距不正确, 而 1 到 10 与 50meV 到 150meV 的间距正确. 并且如果将设置的空格都去掉, 即:
1, 2 和 3
1 到 10
50meV 到 150meV
\documentclass{ctexart} \usepackage{siunitx} \sisetup{ list-final-separator = {和}, % <-- here list-pair-separator = {和}, % <-- here range-phrase = {到}, % <-- here } \begin{document} \numlist{1;2;3}\\ \numrange{1}{10}\\ \qtyrange{50}{150}{\milli\electronvolt} \end{document}
那么三种情况的间距全部错误.
相关问题:
是下面 issue 尝试解决的一般性问题,的具体情况之一
检查
编译环境
操作系统
TeX 发行版
描述问题
使用
siunitx
宏包自定义list-final-separator
时不能正确地处理间距, 而在list-pair-separator
与range-phrase
中可以.最小工作示例(MWE)
(用 XeLaTeX 编译后)输出
可以看到
1, 2 和 3
中的间距不正确, 而1 到 10
与50meV 到 150meV
的间距正确. 并且如果将设置的空格都去掉, 即:那么三种情况的间距全部错误.
相关问题: