Perl script to add indentation (leading horizontal space) to LaTeX files. It can modify line breaks before, during and after code blocks; it can perform text wrapping and paragraph line break removal. It can also perform string-based and regex-based substitutions/replacements. The script is customisable through its YAML interface.
GNU General Public License v3.0
894
stars
84
forks
source link
Double backslash regex does not match decimals #564
Please provide the following when posting an issue:
original .tex code
yaml settings
actual/given output
desired or expected output
anything else
The regex for
doubleBackSlash
does not pick up decimals https://github.com/cmhughes/latexindent.pl/blob/78d452f8fc359d828e2c8a4cac0d2c6fc92d2967/defaultSettings.yaml#L655. See https://regex101.com/r/KkFe4h/1.Something like
\\\\(?:\h*\[\h*(?:\d+\.)?\d+\h*[a-zA-Z]+\h*\])
seems to work better. See https://regex101.com/r/Wq1fZw/1.