Skip to content

Commit

Permalink
updated title, copyright, code listings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2Brownlee committed Dec 24, 2010
1 parent 0f0e380 commit 8e529c4
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 35 deletions.
25 changes: 19 additions & 6 deletions book/definitions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,23 @@
% http://mirror.aarnet.edu.au/pub/CTAN/macros/latex/contrib/listings/
\usepackage{listings}
% define the look of the ruby code
\lstset{language=ruby,
basicstyle=\footnotesize\ttfamily,
% \lstset{language=ruby,
% basicstyle=\footnotesize\ttfamily,
% numbers=left,
% numberstyle=\tiny,
% frame=single,
% columns=flexible,
% upquote=true,
% showstringspaces=false,
% tabsize=2,
% captionpos=b,
% breaklines=true,
% breakatwhitespace=true,
% keywordstyle=\color{blue},
% stringstyle=\color{ForestGreen},
% commentstyle=\color{Gray}}

\lstset{basicstyle=\footnotesize\ttfamily,
numbers=left,
numberstyle=\tiny,
frame=single,
Expand All @@ -73,10 +88,8 @@
tabsize=2,
captionpos=b,
breaklines=true,
breakatwhitespace=true,
keywordstyle=\color{blue},
stringstyle=\color{ForestGreen},
commentstyle=\color{Gray}}
breakatwhitespace=true}


% for ebooks, turn cross references into links
% http://www.tug.org/applications/hyperref/manual.html
Expand Down
3 changes: 3 additions & 0 deletions book/f_acknowledgments.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ \chapter*{Acknowledgments\markboth{Acknowledgments}{}}
% technical editors
I would like to sincerely thank my amazing gaggle of technical and copy editors. This work would not be as rich and accurate without your incredible depth of knowledge and attention to detail. In no particular order: David Howden, Sean Luke, and David Zappia.

% cover
Thanks to Juan for his design guidance on all things aesthetic.

% cover voting
Thanks to the hundreds of machine learning enthusiasts who voted on potential covers and helped shape what this book became. You know who you are!

Expand Down
8 changes: 8 additions & 0 deletions book/f_copyright.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
% copyright.tex
\newpage
\begin{flushleft}
\begin{small}

\vspace*{\fill}

% The Book
\subsubsection*{\mybooktitle: \mybooksubtitle}
\copyright\ Copyright \mybookdate\ \mybookauthor. Some Rights Reserved. \\

Expand Down Expand Up @@ -40,4 +43,9 @@ \subsubsection*{License Summary}

The full terms of the license are located on this web page: \url{http://creativecommons.org/licenses/by-nc-sa/2.5/au/legalcode}

% The Cover
\subsubsection*{Cover Image}
\copyright\ Copyright \mybookdate\ \mybookauthor. All Reserved. \\

\end{small}
\end{flushleft}
56 changes: 28 additions & 28 deletions book/f_title_page.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,34 @@


% def
% \makeatletter
% \def\thickhrulefill{\leavevmode \leaders \hrule height 1pt\hfill \kern \z@}
% \renewcommand{\maketitle}{\begin{titlepage}%
% \let\footnotesize\small
% \let\footnoterule\relax
% \parindent \z@
% \reset@font
% \null
% \vskip 10\p@
% \hbox{\mbox{\hspace{3em}}%
% \vrule depth 0.6\textheight%
% \mbox{\hspace{2em}}
% \vbox{
% \vskip 40\p@
% \begin{flushleft}
% \Large \@author \par
% \end{flushleft}
% \vskip 70\p@
% \begin{flushleft}
% \huge \bfseries \@title \par
% \end{flushleft}
% \vfil
% }}
% \null
% \end{titlepage}%
% \setcounter{footnote}{0}%
% }
% \makeatother
\makeatletter
\def\thickhrulefill{\leavevmode \leaders \hrule height 1pt\hfill \kern \z@}
\renewcommand{\maketitle}{\begin{titlepage}%
\let\footnotesize\small
\let\footnoterule\relax
\parindent \z@
\reset@font
\null
\vskip 10\p@
\hbox{\mbox{\hspace{3em}}%
\vrule depth 0.6\textheight%
\mbox{\hspace{2em}}
\vbox{
\vskip 40\p@
\begin{flushleft}
\Large \@author \par
\end{flushleft}
\vskip 70\p@
\begin{flushleft}
\huge \bfseries \@title \par
\end{flushleft}
\vfil
}}
\null
\end{titlepage}%
\setcounter{footnote}{0}%
}
\makeatother
\author{\mybookauthor}
\title{\mybooktitle\\{\large\mybooksubtitle}}
\date{\mybookdate}
17 changes: 17 additions & 0 deletions book/master.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@

\documentclass[a4paper, 11pt]{book}
\include{definitions}

\lstset{language=ruby,
basicstyle=\footnotesize\ttfamily,
numbers=left,
numberstyle=\tiny,
frame=single,
columns=flexible,
upquote=true,
showstringspaces=false,
tabsize=2,
captionpos=b,
breaklines=true,
breakatwhitespace=true,
keywordstyle=\color{blue},
stringstyle=\color{ForestGreen},
commentstyle=\color{Gray}}

\include{f_title_page}
\makeindex
\begin{document}
Expand Down
4 changes: 3 additions & 1 deletion book/paperback.tex
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,7 @@
\backmatter
\cleardoublepage\phantomsection
\addcontentsline{toc}{part}{Index}
\printindex
\begin{small}
\printindex
\end{small}
\end{document}

0 comments on commit 8e529c4

Please sign in to comment.