Home Download Buy Blog Forum Support

Word wrapping in LaTeX files (ST, ST2)

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

Postby Marciano on Sun Mar 06, 2011 5:12 am

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)

Postby jps on Sun Mar 06, 2011 5:16 am

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
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

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

Postby guillermooo on Sun Mar 06, 2011 2:41 pm

Left me wondering too :)
guillermooo
 
Posts: 729
Joined: Thu Jul 23, 2009 9:06 am

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

Postby Marciano on Fri Mar 11, 2011 5:39 am

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
ST2 LaTeX.jpg (64.37 KiB) Viewed 446 times
Marciano
 
Posts: 146
Joined: Fri Sep 18, 2009 2:55 am

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 21 guests