Sublime Forum

Alt + Q with LaTeX commands

#1

I’m not sure if this is a bug, or a [in my case] unwanted feature, but when wrapping a paragraph in a LaTeX document that starts with a command, subsequent lines are prefixed with a ‘’. For example:

\textit{Sample} text that gets wrapped.

becomes

\textit{Sample} text \that gets wrapped.

I realise the automatic line prefix behaviour could be useful in situations like this, but can it be made to detect commands in LaTeX documents and not prefix ‘’ on wrapped lines? For example:

\textit{Sample} text that gets wrapped.

becomes

\textit{Sample} text that gets wrapped.

as expected, and

% This is a commented line.

becomes

% This is a % commented line.

as is currently implemented. Cheers!

1 Like