LFDT-Lockness / generic-ec

Generic elliptic curve cryptography in Rust
Apache License 2.0
2 stars 2 forks source link

fix latex '\text' grammar #33

Closed cx19981114 closed 6 months ago

survived commented 6 months ago

Why? It renders fine on docs.rs

cx19981114 commented 6 months ago

I find some information regarding the LaTeX amsmath package(https://www.ams.org/arc/tex/amsmath/amsldoc.pdf).

  1. The '\text' command for typesetting a fragment of text inside a display.
  2. In all multiline environments, lines are divided by '\' (I entered double backslashes here, but it's showing it as just one. :)
survived commented 6 months ago

We're using katex for rendering latex expressions in web, it might behave differently from amsmath package. It looks like there's no issue on the web with displaying expressions, everything looks normal in the docs (e.g. this is how Polynomial::from_coefs is rendered, it seems fine before the changes). Right now, I don't see what issue the PR is addressing, so I'm closing it. If you find anything that doesn't render properly, please, point it out to us (e.g. send a screenshot).