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?

  • 3
    $\begingroup$ How is the tool supposed to know that you mean $\sin$ and not $sin$ (which is equal to $nsi$)? $\endgroup$ – Alexey Feb 24 '20 at 21:54
  • $\begingroup$ 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!) $\endgroup$ – 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.)


  1. Ctrl+A,Ctrl+C

  2. double click the script

  3. Ctrl+V

just now I remove the \left and \right.

enter image description here

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .