Contextual sentencesBeginWith
, semicolons, lowercase and \paragraph
#527
Labels
bug
unexpected behaviour; should be a priority for fixing
implemented
implemented tag means that either an enhancement or feature request has been implemented, or bugfix
one-sentence-per-line
one sentence per line; documented at https://latexindentpl.readthedocs.io/en/latest/sec-the-m-switch
original .tex code
yaml settings
actual/given output
\par agraph{latexindent.pl} latexindent.pl is a Perl script that indents .tex (and other) files according to an indentation scheme that the user can modify to suit their taste. Environments, including those with alignment delimiters (such as tabular), and commands, including those that can split braces and brackets across lines, are usually handled correctly by the script. Options for verbatim-like environments and commands, together with indentation after headings (such as chapter, section, etc) are also available. The script also has the ability to modify line breaks, and to add comment symbols and blank lines; furthermore, it permits string or regex-based substitutions. All user options are customisable via the switches and the YAML interface.
desired output
My point
Hello,
I would like to break sentences at semicolons, this would ideally require looking for sentences starting lowercase only following a semicolon.
I don't think it is currently possible, I would like to ask for a way to configure latexindent to have different
sentencesBeginWith
rules depending onsentencesFollow
cases, in the same spirit as what is done for poly-switches, where one can specify different values for each environment.For now, if I allow sentences to begin lowercase, I encounter this awkward situation if the
par
option is also turned on, where\paragraph{}
commands are split. I suspect there may be abefore
/after
option to detect commands before sentences that I didn't find in the docs, if not, that might also be something to add.Thanks for the tool !
The text was updated successfully, but these errors were encountered: