PCCMathSAC / apex-mbx

Repository for a conversion of APEX Calculus to MathBook XML
2 stars 10 forks source link

Trigparentheses2 #70

Closed davidfarmer closed 7 years ago

davidfarmer commented 7 years ago

First attempt at wrapping arguments of trig, hyperbolic, and log functions in parentheses.

I left \ln\abs{...} as-is, but I can put left and right parentheses around it if you wish.

It is rather difficult to pattern match every case, and the ones listed below need to be checked and then fixed by hand if they are wrong. That can either be done after this pull request is accepted, or the current source can be fixed first (meaning, add parentheses), and then I pull and re-make the version with all the parentheses.

I also moved periods and commas outside of math mode.

I can re-submit as one commit, if you wish.

Things to check:

sec_deriv_inverse_function.mbx line 789: please check

sec_directional_derivative.mbx line 1665 please check

sec_polar.mbx line 316 tan \pi/4 same in sec_total_differential.mbx line 166 (Let me know if you think it is worth automating \pi/4 as a special case)

sec_trigint.mbx line 64 maybe there is an x missing in the original