# Are there any tools to automatically correct math formulas?

I am a person who prefer standard formula, so I often edit the formula to make it look better. But I find most of the mistakes or malformedTeX writing have repeated pattern. For example: sin to \sin ,cos to \cos . So is there a tool to help achieve this goal?

• How is the tool supposed to know that you mean $\sin$ and not $sin$ (which is equal to $nsi$)? – Alexey Feb 24 '20 at 21:54
• Aren't there IDEs which would do this better; it could alert you to possible issues while you are typing? (I haven't used a LaTeX IDE, but I'm assuming some of them do this!) – lukeuser Feb 26 '20 at 8:22

I wrote this Python script to make life easier. The stable version is v0.4

This script is far from prefect, so maybe you will meet many kinds of problems. (Because it's for my personal usage.)

Effect:

1. Ctrl+A,Ctrl+C

2. double click the script

3. Ctrl+V

just now I remove the \left and \right.

• Idk if you normally type latex like this, but I suggest using newlines inside complicated equations. It can help make it easier to read. – jgon Feb 25 '20 at 19:47