Instantly share code, notes, and snippets.

Embed
What would you like to do?
XeLaTeX section additions
\setsansfont[Mapping=tex-text,Scale=1.1]{Scrawler}
\setmainfont[Mapping=tex-text,Scale=1.0]{Lucida Grande}
\setmonofont{Courier}
\makeatletter
\newcounter{subsubsubsection}[subsubsection]
\def\subsubsubsectionmark#1{} % Just list the number
\def\thesubsubsubsection {\thesubsubsection.\arabic{subsubsubsection}}
\def\subsubsubsection{
\vspace{0.1in}
\@startsection
{subsubsubsection} % NAME
{4} % LEVEL
{\z@} % INDENT
{-3.25ex\@plus -0.1ex \@minus -.2ex} % BEFORESKIP
{0.2ex \@plus .01ex} % AFTERSKIP
{\normalsize\bf} % STYLE
}
\def\l@subsubsubsection{\@dottedtocline{4}{4.8em}{4.2em}} % TOC Entry
\RequirePackage[cm-default]{fontspec}
\RequirePackage{xunicode}
\RequirePackage{xltxtra}
\defaultfontfeatures{Scale=MatchLowercase}
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright \sffamily
\ifnum \c@secnumdepth >\m@ne
\large \bfseries \@chapapp\space \thechapter
\par\nobreak
\vskip 10\p@
\fi
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 20\p@
}}
\def\@makeschapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright
\sffamily
\interlinepenalty\@M
\Huge\bfseries #1\par\nobreak
\vskip 20\p@
}}
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -0.1ex \@minus -.2ex}%
{0.2ex \@plus.01ex}%
{\sffamily\large\bfseries}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -0.1ex \@minus -.2ex}%
{0.2ex \@plus .01ex}%
{\sffamily\normalsize\bfseries}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{-3.25ex\@plus -0.1ex \@minus -.2ex}%
{0.2ex \@plus .01ex}%
{\sffamily\MakeUppercase\small\bfseries}}
\renewcommand\subsubsubsection{\@startsection{subsubsubsection}{4}{\z@}%
{-3.25ex\@plus -0.1ex \@minus -.2ex}%
{0.2ex \@plus .01ex}%
{\sffamily\MakeUppercase\small\bfseries}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment