Joseph Wright

Results 640 comments of Joseph Wright

This is very much on the edge of what I'd see in the scope of the package. I'd like to know where this is used: there are some very odd...

I'll take a look. I can see where that line comes from in `siunitx` but I'm not sure why it's not being expanded by `tex4ht`.

At the cost of loosing font control, one could use ```latex \ExplSyntaxOn \cs_gset_protected:Npn \__siunitx_print_math_auxii:n #1 { \tl_set:Nn \l__siunitx_print_tmp_tl {#1} \exp_args:NNnx \tl_replace_all:Nnn \l__siunitx_print_tmp_tl { ^ } { \token_to_str:N ^ } \exp_args:NV...

@michal-h21 I'd worked that out :) I remember now that in v2 I just gave up with units and forced text mode. That's really sub-optimal from a semantic point of...

I've got a few ideas about how to approach this. The best is if there is a way to know we are in MathJax mode: @michal-h21 is there a flag?...

@michal-h21 As my hack touches an internal function, it's really not suitable for anything outside of `siunitx` itself. I'm pondering if you need an API here or whether I can...

I've updated the code to do a better job here, but I still need to think about how best to expose 'extra search and replace' to tex4ht. I'm still wondering...

@michal-h21 I've still only got an internal interface, so you'll want something like ```latex \tl_if_exist:NTF \l__siunitx_print_math_html_tl { \tl_put_right:Nn \l__siunitx_print_math_html_tl { & { &amp; } < { &lt; } > {...

Actually, you might need ``` \tl_put_right:Nx \l__siunitx_print_math_html_tl { & { \token_to_str:N & amp ; } < { \token_to_str:N & lt ; } > { \token_to_str:N & gt ; } }...

Er, well, yes: I have a test for an entirely empty input (even though semantically it's questionable), but not for having something that expands to an empty number. What's the...