nostarch.pdf.
nostarch.pdf.
nostarch.pdf.
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
\bottomrule<br />
\belowrulesep<br />
\belowbottomsep<br />
\abovetopsep<br />
Our \bottomrule is thin:<br />
584 \def\bottomrule{\noalign{\ifnum0=‘}\fi<br />
585 \@aboverulesep=\aboverulesep<br />
586 \global\@belowrulesep=\belowbottomsep<br />
587 \global\@thisruleclass=\@ne<br />
588 \@ifnextchar[{\@BTrule}{\@BTrule[\lightrulewidth]}}<br />
Again redefining booktabs:<br />
589 \belowrulesep=0.7ex<br />
590 \belowbottomsep=0.65pt<br />
591 \aboverulesep=0.7ex<br />
592 \abovetopsep=0.65pt<br />
3.15 Verbatim and Listings Customization<br />
Code<br />
\FV@ListParameterHook<br />
This is for framed code:<br />
593 \DefineVerbatimEnvironment{Code}{Verbatim}{frame=lines,framerule=0.25pt}<br />
The skip before code is too large for us<br />
594 \FV@AddToHook\FV@ListParameterHook{\vspace{-6pt}}<br />
\bibsection<br />
We also enable verbatim footnotes.<br />
595 \VerbatimFootnotes<br />
We set up captions with captions:<br />
596 \lstset{captionpos=b}<br />
And make the code to be in typewriter font:<br />
597 \lstset{basicstyle=\ttfamily,columns=fullflexible}<br />
3.16 Bibliography<br />
We actually use chapter for bibliographic sections, but here we try to be nice to<br />
natbib:<br />
598 \AtBeginDocument{<br />
599 \def\bibsection{%<br />
600 \clearpage<br />
601 {\pagestyle{empty}\cleardoublepage}%<br />
602 \everypar{}%<br />
603 \thispagestyle{empty}%<br />
604 \global\@topnum\z@<br />
605 \@afterindentfalse<br />
606 \gdef\@chapterart{}%<br />
607 \@nschapterpreamble<br />
608 \vspace*{0.622in}%<br />
609 \addcontentsline{toc}{chapter}{\MakeUppercase{\bibname}}%<br />
610 \addcontentsline{tbc}{bchapter}{\bibname}%<br />
611 {\centering<br />
612 {\fontfamily{\dgdefault}\fontseries{br}\fontsize{16pt}{20pt}\selectfont<br />
28