\documentclass[10pt,a4paper,titlepage]{book} \usepackage[width=7in, height=9.5in,papersize={8.5in,11in}]{geometry} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{moreverb} \usepackage{listings} \usepackage{layout} \usepackage{fancyhdr} \usepackage{color} \author{Brett Langdon} \title{Programming In General} \pagestyle{fancy} \voffset=0.25in \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} \definecolor{lstkeyword}{rgb}{.2,.2,.7} \definecolor{lstcomment}{rgb}{.7,.7,.7} \definecolor{lstidentifier}{rgb}{0,0,0} \definecolor{lststring}{rgb}{.4,.4,.4} \lstset{ numbers=left, stepnumber=1, numberstyle=\footnotesize, frame=single, showspaces=false, showstringspaces=false, basicstyle=\ttfamily, linewidth=6.5in, xleftmargin=0.5in, keywordstyle=\bfseries\color{lstkeyword}, commentstyle=\itshape\color{lstcomment}, identifierstyle=\color{lstidentifier}, stringstyle=\color{lststring}, morekeywords={class,public,private,protected,$this,return,this,self,if,else,function,print}, morestring=[b]', morestring=[b]", morecomment=[s]{/*}{*/}, comment=[l]{//} } \lstdefinelanguage{javascript}{ keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, if, in, while, do, else, case, break}, ndkeywords={class, export, boolean, throw, implements, import, this}, sensitive=false, comment=[l]{//}, morecomment=[s]{/*}{*/}, morestring=[b]', morestring=[b]" } \lstdefinelanguage{php}{ keywords={$this,class,public,private,protected,return,new,null,catch,try,switch,if,else,while,do,case,break,continue,true,false,function,boolean,throw,implements,inhrits,echo,print} sensitive=false, comment=[l]{//}, morecomment=[s]{/*}{*/}, morestring=[b]', morestring=[b]" } \begin{document} \begin{titlepage} \begin{center} \vspace*{3 in} \HRule \\[0.4cm] {\huge \bfseries Programming In General} \HRule \\[0.4cm] \emph{Author:}\\ Brett \textsc{Langdon} \vfill {\large \today} \end{center} \end{titlepage} \tableofcontents \chapter{Introduction} \input{"./1 - Introduction/Introduction"} \vfill \pagebreak \section{Who Is This Resource For} \input{"./1 - Introduction/1.1 - Who Is This Resource For"} \section{Code Examples} \input{"./1 - Introduction/1.2 - Code Examples"} \chapter{Getting Started} \input{"./2 - Getting Started/Getting Started"} \vfill \pagebreak \section{Choosing A Programming Language} \input{"./2 - Getting Started/1.1 - Choosing A Programming Language"} \section{Sudo Language} \input{"./2 - Getting Started/1.2 - Sudo Language"} \section{How To Read This Resource} \input{"./2 - Getting Started/1.3 - How To Read This Resource"} \chapter{Functional Programming} \input{"./3 - Functional Programming/Functional Programming"} \vfill \pagebreak \section{Variables} \input{"./3 - Functional Programming/1.1 - Variables"} \section{Control Statements} \input{"./3 - Functional Programming/1.3 - Control Statements"} \section{Loops} \input{"./3 - Functional Programming/1.4 - Loops"} \section{Functions} \input{"./3 - Functional Programming/1.5 - Functions"} \chapter{Object Oriented Programming} \input{"./4 - Object Oriented Programming/Object Oriented Programming"} \vfill \pagebreak \chapter{Data Structures} \input{"./5 - Data Structures/Data Structures"} \vfill \pagebreak \chapter{Algorithms} \input{"./6 - Algorithms/Algorithms"} \vfill \pagebreak\end{document}