Skip to content

Commit

Permalink
tweaks to headings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2Brownlee committed Jan 15, 2011
1 parent cd205a7 commit 5874e1d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
10 changes: 6 additions & 4 deletions book/definitions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@
% a replacement for fancyheadings
% http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/
\usepackage{fancyhdr}
% \pagestyle{fancy}
\fancyhead[LO]{\slshape\nouppercase{\leftmark}}
\fancyhead[RE]{\slshape\nouppercase{\rightmark}}
\fancyhead[LE,RO]{\thepage}
\fancyhead[LO]{\slshape \leftmark}
\fancyhead[RE]{\slshape \rightmark}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}}




% add an index
% http://ctan.unsw.edu.au/macros/latex/contrib/index/index.pdf
\usepackage{index}
Expand Down Expand Up @@ -85,6 +86,7 @@
% stringstyle=\color{ForestGreen},
% commentstyle=\color{Gray}}

% http://mirror.aarnet.edu.au/pub/CTAN/macros/latex/contrib/listings/
\lstset{language=ruby,
basicstyle=\footnotesize\ttfamily,
numbers=left,
Expand Down Expand Up @@ -123,7 +125,7 @@

% Algorithm2e is an environment for writing algorithms in LaTeX2e
% http://www.ctan.org/tex-archive/macros/latex/contrib/algorithm2e/
\usepackage[noline, algoruled, linesnumbered, algosection]{styles/algorithm2e}
\usepackage[algoruled, linesnumbered, algosection]{styles/algorithm2e}

% for adding in bib for each section or chapter
% http://merkel.zoneo.net/Latex/natbib.php
Expand Down
4 changes: 4 additions & 0 deletions book/f_toc.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
% toc

\setcounter{tocdepth}{1}
\tableofcontents
11 changes: 5 additions & 6 deletions book/paperback.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
\begin{document}
\defaultbibliography{../workspace/bibtex}
\frontmatter
\maketitle
\clearpage
\include{f_copyright}
\setcounter{tocdepth}{1}
\tableofcontents
\maketitle
\include{f_copyright}
\cleardoublepage\include{f_toc}
\addtocontents{toc}{\protect\markboth{Contents}{}}
\cleardoublepage\include{f_foreword}
\cleardoublepage\include{f_preface}
\cleardoublepage\include{f_acknowledgments}
Expand All @@ -38,7 +37,7 @@
\include{c_neural}
\part{Extensions}
\include{c_advanced}

\part{Appendix}
\appendix
\include{b_appendix1}

Expand Down

0 comments on commit 5874e1d

Please sign in to comment.