Skip to content

Instantly share code, notes, and snippets.

@bjmorgan
Created December 21, 2012 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjmorgan/4354854 to your computer and use it in GitHub Desktop.
Save bjmorgan/4354854 to your computer and use it in GitHub Desktop.
Modified symbol matching ( TM | SL2 ) preference file for LaTeX. This presents the different sections indented according to their hierarchy.
<?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>meta.function.section.latex</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
<key>symbolTransformation</key>
<string>
s/\\chapter\{([^\}]+)\}/$1/g;
s/\\section\{([^\}]+)\}/\t$1/g;
s/\\subsection\{([^\}]+)\}/\t\t$1/g;
s/\\subsubsection\{([^\}]+)\}/\t\t\t$1/g;
</string>
</dict>
<key>uuid</key>
<string>005BE156-8D74-4036-AF38-283708645115</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment