diff options
Diffstat (limited to 'pdf/template.tex')
-rw-r--r-- | pdf/template.tex | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pdf/template.tex b/pdf/template.tex index 00f4acf..762383b 100644 --- a/pdf/template.tex +++ b/pdf/template.tex @@ -30,11 +30,10 @@ \usepackage{changepage} \usepackage{pdfpages} -\usepackage{geometry} -\geometry{left=1.5cm,right=1.5cm,top=2cm,bottom=2cm} +\usepackage[bindingoffset=0.5cm, margin=1.5cm, includeheadfoot]{geometry} % To support tables so required tabulary package -\usepackage{tabulary} +\usepackage{longtable,tabulary} \definecolor{colorchapter}{RGB}{0,0,0} % All black \definecolor{colorsection}{RGB}{0,0,0} @@ -49,6 +48,9 @@ \definecolor{editorOcher}{rgb}{1, 0.5, 0} % #FF7F00 -> rgb(239, 169, 0) \definecolor{editorGreen}{rgb}{0, 0.4, 0.1} % #007C00 -> rgb(0, 150, 25) +% for pandoc +\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}, @@ -329,7 +331,7 @@ framexleftmargin=20pt \renewcommand{\thetab}{\thechapter.\arabic{tab}} \newcommand{\prechap}{第} -\newcommand{\postchap}{章} +\newcommand{\postchap}{部分} \newcommand{\presect}{} \newcommand{\postsect}{节} \renewcommand{\chaptermark}[1]{\markboth{\textbf{\prechap \thechapter \postchap}\hspace*{1ex}#1}{}} |