numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
200 stars 118 forks source link

"Omit more multiplication signs" display flag #885

Closed christianp closed 1 year ago

christianp commented 2 years ago

At the moment, an expression x*(y+1) is rendered in TeX as x × (y+1) - a multiplication sign is inserted, to make it clear x is not a function.

Should there be a display flag to omit this multiplication sign?

At the moment, the cases that can lead to a times symbol are:

Of these, I can only think someone would want to omit the sign for the last three cases. Should it insert a space instead, or just nothing?

Here are options with space, and no space:

image

I think for the context this was reported in, there'd be no space.

christianp commented 2 years ago

Here's a much more compelling example, from Martin Jones:

1/((x+1)x(x+2))