Skip to content

Instantly share code, notes, and snippets.

@bjmorgan
Last active June 25, 2021 16:47
Show Gist options
  • Save bjmorgan/4322965 to your computer and use it in GitHub Desktop.
Save bjmorgan/4322965 to your computer and use it in GitHub Desktop.
Light theme designed for LaTeX in TextMate / Sublime Text. Based on my colour scheme in TeXShop, with extensions for additional syntax highlighting for \ref, \label, \cite, \footnote, math environment, and others. Also supports syntax highlighting for \caption and \mathrm, provided these are listed in the LaTeX.tmLanguage file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>TeXShop Extended</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
<dict>
<key>background</key>
<string>#FFFFFF</string>
<key>caret</key>
<string>#000000</string>
<key>foreground</key>
<string>#000000</string>
<key>invisibles</key>
<string>#BFBFBF</string>
<key>lineHighlight</key>
<string>#DFDFDF</string>
<key>selection</key>
<string>#CAD6FD</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Comment</string>
<key>scope</key>
<string>comment</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic</string>
<key>foreground</key>
<string>#DD3333</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>String</string>
<key>scope</key>
<string>string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Number</string>
<key>scope</key>
<string>constant.numeric</string>
<key>settings</key>
<dict/>
</dict>
<dict>
<key>name</key>
<string>Built-in constant</string>
<key>scope</key>
<string>constant.language</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
</dict>
</dict>
<dict>
<key>name</key>
<string>User-defined constant</string>
<key>scope</key>
<string>constant.character, constant.other</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#AAAAAA</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Variable</string>
<key>scope</key>
<string>variable.language, variable.other</string>
<key>settings</key>
<dict/>
</dict>
<dict>
<key>name</key>
<string>Keyword</string>
<key>scope</key>
<string>keyword</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#AAAAAA</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Storage</string>
<key>scope</key>
<string>storage</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#AAAAAA</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Class name</string>
<key>scope</key>
<string>entity.name.class</string>
<key>settings</key>
<dict/>
</dict>
<dict>
<key>name</key>
<string>Inherited class</string>
<key>scope</key>
<string>entity.other.inherited-class</string>
<key>settings</key>
<dict/>
</dict>
<dict>
<key>name</key>
<string>Tex: {}</string>
<key>scope</key>
<string>punctuation.section.group.tex , punctuation.definition.arguments.begin.latex, punctuation.definition.arguments.end.latex, punctuation.definition.arguments.latex, punctuation.definition.textbf.begin.latex, punctuation.definition.textbf.end.latex, punctuation.definition.textit.begin.latex, punctuation.definition.textit.end.latex, punctuation.definition.footnote.begin.latex, punctuation.definition.footnote.end.latex, punctuation.definition.caption.begin.latex, punctuation.definition.caption.end.latex, punctuation.definition.todo.begin.latex, punctuation.definition.todo.end.latex, punctuation.definition.tocite.begin.latex, punctuation.definition.tocite.end.latex</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#229D00</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Tex: $$</string>
<key>scope</key>
<string>punctuation.definition.string.begin.tex, punctuation.definition.string.end.tex</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#229D00</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Function name</string>
<key>scope</key>
<string>entity.name.function</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#00FF00</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Section name</string>
<key>scope</key>
<string>entity.name.section</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FF9933</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Label name</string>
<key>scope</key>
<string>variable.parameter.definition.label.latex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FF9933</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Function name</string>
<key>scope</key>
<string>constant.other.reference.label.latex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FF9933</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Function argument</string>
<key>scope</key>
<string>variable.parameter</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#AAAAAA</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Tag name</string>
<key>scope</key>
<string>entity.name.tag</string>
<key>settings</key>
<dict/>
</dict>
<dict>
<key>name</key>
<string>Tag attribute</string>
<key>scope</key>
<string>entity.other.attribute-name</string>
<key>settings</key>
<dict/>
</dict>
<dict>
<key>name</key>
<string>Library function</string>
<key>scope</key>
<string>support.function</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#AAAAAA</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Library function</string>
<key>scope</key>
<string>constant.other.general.math.tex, constant.character.math.tex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#44AAFF</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Math function</string>
<key>scope</key>
<string>support.function.general.tex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#44AAFF</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Library constant</string>
<key>scope</key>
<string>support.constant</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FF0000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Library class/type</string>
<key>scope</key>
<string>support.type, support.class</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Library variable</string>
<key>scope</key>
<string>support.other.variable</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Invalid</string>
<key>scope</key>
<string>invalid</string>
<key>settings</key>
<dict/>
</dict>
<dict>
<key>name</key>
<string>Support function note</string>
<key>scope</key>
<string>support.function.note.latex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#888888</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Support function note</string>
<key>scope</key>
<string>support.function.textit.latex, support.function.mathrm.latex, support.function.textbf.latex, support.function.emph.latex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#B38742</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Support function note</string>
<key>scope</key>
<string>constant.character.escape.tex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Support function note</string>
<key>scope</key>
<string>punctuation.definition.note.begin.latex, punctuation.definition.note.end.latex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#888888</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Escape character</string>
<key>scope</key>
<string>constant.character.escape.tex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#BBBBBB</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Note String</string>
<key>scope</key>
<string>markup.raw.note.latex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FF4433</string>
<!-- <key>background</key>
<string>#CCCCCC</string> -->
</dict>
</dict>
<dict>
<key>name</key>
<string>Todo Function</string>
<key>scope</key>
<string>support.function.tocite.latex, support.function.todo.latex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FF4433</string>
<!-- <key>background</key>
<string>#CCCCCC</string> -->
</dict>
</dict>
<dict>
<key>name</key>
<string>Todo Text</string>
<key>scope</key>
<string>markup.raw.todo.latex, markup.raw.tocite.latex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#666666</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Citation</string>
<key>scope</key>
<string>constant.other.reference.citation.latex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#A64A08</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Footnote</string>
<key>scope</key>
<string>meta.footnote.latex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#555555</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Caption</string>
<key>scope</key>
<string>meta.function.caption.latex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Footnote</string>
<key>scope</key>
<string>meta.function.environment.general.latex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#CCCCCC</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Math</string>
<key>scope</key>
<string>string.other.math.tex, string.other.math.block.environment.latex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#13669E</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Footnote</string>
<key>scope</key>
<string>meta.function.environment.tabular.latex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#000000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Footnote</string>
<key>scope</key>
<string>punctuation.definition.table.cell.latex, punctuation.definition.table.row.latex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#229D00</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Math plain text</string>
<key>scope</key>
<string>markup.raw.mathrm.latex</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#3E3E3E</string>
</dict>
</dict>
</array>
<key>uuid</key>
<string>AFEEAC70-B7C1-4F01-8552-E81BBE872375</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment