Skip to content

Instantly share code, notes, and snippets.

@bcomnes
Last active August 29, 2015 14:07
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 bcomnes/01361a9134a5de390f96 to your computer and use it in GitHub Desktop.
Save bcomnes/01361a9134a5de390f96 to your computer and use it in GitHub Desktop.
Selectable LaTeX Scopes in TextMate 2
\documentclass{report}
\title{Sections and Chapters}
\author{Bret Comnes}
\date{\today}
\begin{document}
\maketitle
\part{(-1) part name} % (fold)
\label{prt:part_name}
\chapter{(0) chapter name} % (fold)
\label{cha:chapter_name}
This is the chapter
\section{(1) section name} % (fold)
\label{sec:section_name}
This is the first section
\subsection{(2) subsection name} % (fold)
\label{sub:subsection_name}
This is a subsection.
\subsubsection{(3) subsubsection name} % (fold)
\label{ssub:subsubsection_name}
And this is a subsubsection.
\paragraph{(4) paragraph name} % (fold)
\label{par:paragraph_name}
This is a paragraph selector.
\subparagraph{(5) subparagraph name} % (fold)
\label{subp:subparagraph_name}
This is a subparagraph.
% subparagraph subparagraph_name (end)
% paragraph paragraph_name (end)
% subsubsection subsubsection_name (end)
% subsection subsection_name (end)
% section section_name (end)
% chapter chapter_name (end)
% part part_name (end)
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment