From e0ed73db63f0bfe4a0cc116f87348d39c438fa5a Mon Sep 17 00:00:00 2001 From: Tong Hui Date: Thu, 6 Oct 2016 20:51:14 +0800 Subject: clean up template --- pdf/template.tex | 101 ------------------------------------------------------- 1 file changed, 101 deletions(-) diff --git a/pdf/template.tex b/pdf/template.tex index bbf3f8b..5e4e1ed 100644 --- a/pdf/template.tex +++ b/pdf/template.tex @@ -52,107 +52,6 @@ \providecommand{\tightlist}{% \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} -\lstdefinelanguage{JavaScript}{ - keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, if, in, while, do, else, case, break}, - keywordstyle=\color{blue}\bfseries, - ndkeywords={class, export, boolean, throw, implements, import, this, public, static, int, char, string, ref, float, double}, - ndkeywordstyle=\color{editorGreen}\bfseries, - identifierstyle=\color{black}, - sensitive=false, - comment=[l]{//}, - morecomment=[s]{/*}{*/}, - commentstyle=\color{purple}\ttfamily, - stringstyle=\color{red}\ttfamily, - morestring=[b]', - morestring=[b]" -} - -\lstset{ - language=JavaScript, - backgroundcolor=\color{lightgray}, - extendedchars=true, - basicstyle=\footnotesize\ttfamily, - showstringspaces=false, - showspaces=false, - numbers=left, - numberstyle=\footnotesize, - numbersep=5pt, - tabsize=2, - breaklines=true, - showtabs=false, - captionpos=b, -xleftmargin=20pt, -frame=tb, -framexleftmargin=20pt -} - -\lstdefinelanguage{JS}{ - morekeywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, if, in, while, do, else, case, break}, - morecomment=[s]{/*}{*/}, - morecomment=[l]//, - morestring=[b]", - morestring=[b]' -} - -\lstdefinelanguage{HTML5}{ - language=html, - sensitive=true, - alsoletter={<>=-}, - otherkeywords={ - % HTML tags - , , , , , , , - , , , , , , >< - }, - ndkeywords={ - % General - =, - % HTML attributes - charset=, id=, width=, height=, - % CSS properties - border:, transform:, -moz-transform:, transition-duration:, transition-property:, transition-timing-function: - }, - morecomment=[s]{}, - tag=[s] -} - -\lstset{% - % Basic design - backgroundcolor=\color{editorGray}, - basicstyle={\small\ttfamily}, - frame=l, - % Line numbers - xleftmargin={0.75cm}, - numbers=left, - stepnumber=1, - firstnumber=1, - numberfirstline=true, - % Code design - keywordstyle=\color{blue}\bfseries, - commentstyle=\color{darkgray}\ttfamily, - ndkeywordstyle=\color{editorGreen}\bfseries, - stringstyle=\color{editorOcher}, - % Code - language=HTML5, - alsolanguage=JavaScript, - alsodigit={.:;}, - tabsize=2, - showtabs=false, - showspaces=false, - showstringspaces=false, - extendedchars=true, - breaklines=true, - % Support for German umlauts - literate=% - {Ö}{{\"O}}1 - {Ä}{{\"A}}1 - {Ü}{{\"U}}1 - {ß}{{\ss}}1 - {ü}{{\"u}}1 - {ä}{{\"a}}1 - {ö}{{\"o}}1 -} - - \lstset{ %language=C++, basicstyle=\small\ttfamily, -- cgit v1.2.3