帶 SI 單位包的分數

帶 SI 單位包的分數

嘿,我正在嘗試顯示以下內容的分數: 在此輸入影像描述

但我不知道如何用這個siunitx包來做到這一點。
這是我到目前為止得到的: \SI[quotient-mode=fraction]{16 2/3}{\metre\per\second}
但結果不正確: 在此輸入影像描述

我缺什麼?

答案1

中的解析器siunitx不會嘗試以您想要的方式“讀取”分數:它忽略空格,因此解析為162/3.如果您想手動格式化,則需要關閉解析器

\SI[quotient-mode=fraction,parse-numbers=false]{16\frac{2}{3}}{\metre\per\second}

相關內容