I'm looking for some script (program) which would help in editing LaTeX code. Usually I have a mess in my .tex code, so it would be good if the script could align tabulars and so on. It would also be nice, if it allows editing code (for example replace every $$ with \begin{equation}...\end{equation} and vice versa).

Is there any program which is doing such a thing? It can be program, or a plugin of texstudio or a bash (python) script as well. However I don` want to change my editor (if it is of course possible).

  • note exactly, I`m not looking for editor but for program which just do things I wrote above.
    – Adam Glos
    Commented May 4, 2015 at 18:46
  • You should tell us what platform you're working on. Solutions that work with *nix-based platforms may not work on Windows, for example. Commented May 4, 2015 at 18:47
  • @AdamGlos: Some of the listed editors have regular expression search-and-replace.
    – Werner
    Commented May 4, 2015 at 18:48
  • @Werner I would be hard-pressed to come up with a regex to align tabulars... It's not a well-formed question right now -- too broad -- but regex alone wouldn't help. Commented May 4, 2015 at 18:48
  • 4
    @SeanAllred: For that there's latexindent.
    – Werner
    Commented May 4, 2015 at 18:49


Browse other questions tagged .