Class: LatexBeautify
Defined in: | src/beautifiers/latex-beautify.coffee |
Inherits: | Beautifier |
Variables Summary
- name =
-
"Latex Beautify"
- link =
-
"https://github.com/cmhughes/latexindent.pl"
- isPreInstalled =
-
false
- options =
-
{ LaTeX: true }
Variable inherited from Beautifier
Promise name options executables _exe languages beautify logger
Instance Method Summary
- # (void) buildConfigFile(options) There are too many options with latexmk, I have tried to slim this down to the most useful ones.
- # (void) setUpDir(dirPath, text, config) Latexindent accepts configuration files only.
- # (void) beautify(text, language, options) Beautifier does not currently have a method for creating directories, so we call temp directly.
Inherited Method Summary
Methods inherited from
Beautifier
#isPreInstalled #loadExecutables #exe #deprecate #deprecateOptionForExecutable #tempFile #readFile #findFile #getDefaultLineEnding #which #run #setupLogger
Instance Method Details
#
(void)
buildConfigFile(options)
There are too many options with latexmk, I have tried to slim this down to the most useful ones. This method creates a configuration file for latexindent.
#
(void)
setUpDir(dirPath, text, config)
Latexindent accepts configuration files only. This file has to be named localSettings.yaml and be in the same folder as the tex file. It also insists on creating a log file somewhere. So we set up a directory with all the files in place.
#
(void)
beautify(text, language, options)
Beautifier does not currently have a method for creating directories, so we call temp directly.