## Word wrapping in LaTeX files (ST, ST2)

### Re: Word wrapping in LaTeX files (ST, ST2)

OK, thanks for the clarification. Do you think it would be possible to tweak the tmLanguage file so as to not break things, but still ensure that backslashes stay with their associated command (e.g \emph etc.)? WHere should I look? Thanks!
Marciano

Posts: 146
Joined: Fri Sep 18, 2009 2:55 am

### Re: Word wrapping in LaTeX files (ST, ST2)

As an example, the '\' and the 'emph' are assigned different scopes by LaTeX.tmLanguage, which causes Sublime Text to treat them as two separate tokens. If you changed the regex to not assign the '\' its own scope, then it would be placed in the same token.
jps

Posts: 3215
Joined: Wed Mar 19, 2008 12:33 pm

### Re: Word wrapping in LaTeX files (ST, ST2)

Left me wondering too
guillermooo

Posts: 738
Joined: Thu Jul 23, 2009 9:06 am

### Re: Word wrapping in LaTeX files (ST, ST2)

I have noticed another issue: in inline math mode ($...$), commands are not kept on a single line (in addition to possibly being separated from their backslash). A picture is worth a thousand words...
Attachments
ST2 LaTeX.jpg (64.37 KiB) Viewed 533 times
Marciano

Posts: 146
Joined: Fri Sep 18, 2009 2:55 am

Previous