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
Constructs like `{a}_{{b}}` prevent correct parsing of mandatory arguments #563
For some reason, mandatory arguments containing constructs like {a}_{{b}} or {a}^{{b}} are not recognized properly. Neither for indentation nor for line breaks. Unfortunately, this happens quite regularly in math material. (I also add a more realistic example, as for me the mechanism is not yet clear.)
For some reason, mandatory arguments containing constructs like
{a}_{{b}}
or{a}^{{b}}
are not recognized properly. Neither for indentation nor for line breaks. Unfortunately, this happens quite regularly in math material. (I also add a more realistic example, as for me the mechanism is not yet clear.)Example for indentation
with
gives
but I expect the first two commands to be indented as the third one which is there for comparison
For some reason, without
\othercmd
, the last example is indented correctly. But one can put more additional commands and it still fails.Example for modifylinebreaks
upon running
produces
while I expect