siunitx icon indicating copy to clipboard operation
siunitx copied to clipboard

Allow `×` as separator token for `\numproduct` and `\qtyproduct`

Open dbitouze opened this issue 3 years ago • 4 comments

It would be nice to allow, not only x, but also × (U+00D7) as separator token for \numproduct and \qtyproduct.

dbitouze avatar Jun 05 '22 14:06 dbitouze

It's doable, but I wonder about the likelihood of anyone using this as input: it's not exactly easy to type.

josephwright avatar Jun 05 '22 18:06 josephwright

On my keyboard, with GNU/Linux as OS, it is reasonably easy to type: AltGr+Shift+.. And I asked because, people getting more and more accustomed to Unicode, they may find × more natural, or closer to reality, than x . In addition, a tutorial about siunitx using a sans serif typewriter font could let the user think the symbol to use is ×:

\documentclass{article}
\usepackage{inconsolata}
\begin{document}
\verb|\qtyproduct{10x30x45}{\metre}|
\end{document}

image

BTW, another quite natural input, and maybe more natural than x, could be *.

dbitouze avatar Jun 05 '22 19:06 dbitouze

I think both would be helpful (× and *) when one converts existing text to use \qtyproduct

boergens avatar Jul 21 '22 19:07 boergens

I've put this down for v3.2: it's relatively easy to set up.

josephwright avatar Jul 22 '22 07:07 josephwright

Sorted in 1c5d746063df105f8e51e313fd2faf30e02af343

josephwright avatar Jul 28 '23 10:07 josephwright