DRMF / texvcjs

A LaTeX validator/translator for TeX strings embedded in wikitext
0 stars 2 forks source link

Replace sinh x with \sinh@@{x} #18

Closed HowardCohl closed 9 years ago

HowardCohl commented 9 years ago

There are also equivalents such as:

\sinh\alpha -> \sinh@@{\alpha}
\sinh\,x -> \sinh@@{x}
\sinh\!x ->\sinh@@{x}

(Claude is currently working on this, so we felt we should create an issue.)

poortho commented 9 years ago

I have solved this issue except for the spacing delimiters, and that part should be done somewhere around the first or second week that I get back after school starts (I'm working on it now). I could create a pull request now and it would work fine if the only spacing delimiter is an actual space. Also, this messes up the test cases since it tests all the latex_function_names functions in one string with spaces between each one, so the program renders the sinh function with the next command as an argument. I have temporarily just moved sinh to the end of the test string, but it is only a temporary fix to the issue as when we implement more replacements like this it will mess up, so the best way to solve it later on would be to make a separate test string for each command that has a replacement similar to this.

poortho commented 9 years ago

Would it be possible for me to obtain a list of all the spacing delimiters?

HowardCohl commented 9 years ago

http://tex.stackexchange.com/questions/74353/what-commands-are-there-for-horizontal-spacing

This person nicely summarizes all of them.

HowardCohl commented 9 years ago

For completeness. Here is the list of LaTeX measurement length units.

http://tex.stackexchange.com/questions/41370/what-are-the-possible-dimensions-sizes-units-latex-understands

poortho commented 9 years ago

Solved.

poortho commented 8 years ago

This issue was moved to DRMF/texer#8