Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text versus Source Indenting #1337

Open
slienhard opened this issue Jun 7, 2018 · 4 comments
Open

Text versus Source Indenting #1337

slienhard opened this issue Jun 7, 2018 · 4 comments

Comments

@slienhard
Copy link

Currently LaTeX in Sublime is considered a text document therefore when there is a long line and word wrap happens, the text on the next line is indented to the same level as the previous line.

Text based

    \item blah blah blah blah
    blah blah blah blah blah
    blah blah blah`

Source based

   \item blah blah blah blah
      blah blah blah blah blah
      blah blah blah`

Source code in Sublime treats the indenting in a better way in my opinion. The indent amount on the subsequent line is indented further. Several LaTeX editors offer this: BBedit, Texpad to name a few.

If possible, please consider having an option for a LaTeX document be considered a source file versus a text file.

I was able to take the LaTeX syntax file and change the scope to source.tex.latex. This had the intended affect, but I think making that change interferes with the LaTeXTools package which is beyond my understanding.

Thanks for considering.

@r-stein
Copy link
Member

r-stein commented Jun 10, 2018

Changing the scope to source.tex.latex will disable most features of LaTeXTools, because we usually check for the context text.tex.latex. You may use source text.tex.latex, but this should be configurable by settings not by changing the syntax definition. I will further investigate in that direction.

@r-stein
Copy link
Member

r-stein commented Jun 10, 2018

It doesn't seem to be possible to change that sublimehq/sublime_text#1722. You may try to use the base scope source text.tex.latex if it really bothers you, but I don't know about other side effects of that.

@slienhard
Copy link
Author

Thank you for taking a look!

@AnnanFay
Copy link

AnnanFay commented May 10, 2019

Has anyone had any success with this?

@slienhard Did using source text.tex.latex have any negative consequences?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants