pgf-tikz / pgf

A Portable Graphic Format for TeX
https://pgf-tikz.github.io/
1.08k stars 104 forks source link

Improve coordinate parser to allow `⟨coordinate⟩*⟨number⟩` or `⟨coordinate⟩/⟨number⟩`? #1318

Open user202729 opened 2 months ago

user202729 commented 2 months ago

Brief outline of the proposed feature

As in the title. So I can write ($((A)+(B))/2$) (in addition to ($(A)!0.5!(B)$) of course).

Is this reasonable?

Alternatively, since I think accidentally ($(A)*2$) instead of ($2*(A)$) is quite common, it makes sense to guard against it.

Usage example

No response

muzimuzhi commented 2 months ago

Alternatively, since I think accidentally ($(A)*2$) instead of ``is quite common

Was something missing in between backticks right before "is quite common"?