Hi Jenny,
I haven’t use Sublime for writing LaTeX at all (and my LaTeX in general is rather rusty), so I don’t know if I can be of much help.
How you go about creating indents depends on what the scopes for the syntax are like. You can’t transplant this method from Markdown to LaTeX. (Markdown uses #s to markup sections, so you just convert these to spaces. LaTeX uses different markup so the regular expression that does the transformation won’t work. But see below.)
I imagine you did this by renaming the file mentioned in the error as I mentioned above. You should probably rename it back, since it’s not going to help you with your LaTeX woes. This was a bad suggestion, to be honest; as it turns out there’s a simpler way of overriding .tmPreference files. (See below.)
The default LaTeX package does not provide .tmPreference files, so my guess is that you’re using some other package which populates the Go To Symbol list. I looked at LaTeXTools, which is the most popular one. It contains two .tmPreferences:
-
Symbol List - Sections.tmPreferences – This uses the (sub)section/chapter scopes. From looking at the tmLanguage file and from what I remember from LaTeX, I think it’s possible to indent the sections in the Go To Symbol list, but it’s non-trivial, and I don’t have the time to fiddle with this right now. Because I’ve never used Textmate, it might help if you could post a link to a publically avaible .tex document along with a screenshot of the Go To list in Textmate. I will at least be able to tell you if it’s possible (according to my current understanding of Symbol Lists, which admittedly is far from perfect).
-
Symbol List - Labels.tmPreferences – This one is probably the one that’s populating the list with “theorems, lemmas, equations, etc.” The way to remove the labels from the Go To list is to create the following file called .tmPreferences, and saving it somewhere in Packages:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Symbol List</string>
<key>scope</key>
<string>variable.parameter.definition.label.latex, meta.definition.label.latex</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>0</integer>
</dict>
</dict>
</plist>
Hope this helps,
Alex