| \documentclass[10pt,twocolumn]{book} |
| |
| % standard packages |
| |
| % A more pleasant font |
| \usepackage[T1]{fontenc} % use postscript type 1 fonts |
| \usepackage{textcomp} % use symbols in TS1 encoding |
| \usepackage{mathptmx,helvet,courier} % use nice, standard fonts for roman, sans and monospace respectively |
| |
| % Improves the text layout |
| \usepackage{microtype} |
| |
| \usepackage{lscape} |
| \usepackage{epsfig} |
| \usepackage{subfigure} |
| % \usepackage{breakurl} |
| \usepackage{graphicx} |
| \usepackage{rotating} |
| \usepackage{enumerate} |
| \usepackage{ifthen} |
| \usepackage{xcolor} |
| \usepackage{listings} |
| \lstset{basicstyle=\ttfamily} |
| % \usepackage[strings]{underscore} |
| % \usepackage{underscore} |
| \usepackage{pifont} % special character for qqz reference point |
| \usepackage{verbatimbox} % for centering verbatim listing in figure environment |
| \usepackage[bottom]{footmisc} % place footnotes under floating figures/tables |
| \usepackage{tabulary} |
| \usepackage[bookmarks=true,bookmarksnumbered=true,pdfborder={0 0 0}]{hyperref} |
| \usepackage{footnotebackref} % to enable cross-ref of footnote |
| \usepackage[all]{hypcap} % for going to the top of figure and table |
| \usepackage{epigraph} |
| \setlength{\epigraphwidth}{2.3in} |
| % custom packages |
| |
| \usepackage{qqz} |
| \usepackage{origpub} |
| |
| \begin{document} |
| |
| %%HTMLSKIP |
| \lstset{ |
| literate={\_}{}{0\discretionary{\_}{}{\_}}% |
| {->}{}{0\discretionary{->}{}{->}}% |
| } |
| %%HTMLNOSKIP |
| % --- Workaround for Fedora 23 Texlive bug |
| \makeatletter |
| \renewcommand\lstinline[1][]{% |
| \leavevmode\bgroup % \hbox\bgroup --> \bgroup |
| \def\lst@boxpos{b}% |
| \lsthk@PreSet\lstset{flexiblecolumns,#1}% |
| \lsthk@TextStyle |
| \ifnum\iffalse{\fi`}=\z@\fi |
| \@ifnextchar\bgroup{% |
| \ifnum`{=\z@}\fi% |
| \afterassignment\lst@InlineG \let\@let@token}{% |
| \ifnum`{=\z@}\fi\lstinline@}} |
| \makeatother |
| % --- End of workaround for Fedora 23 Texlive bug |
| \newcommand{\co}[1]{\lstinline[breaklines=true,breakatwhitespace=true]{#1}} |
| |
| \title{Is Parallel Programming Hard, And, If So, What Can You Do About It?} |
| \author{ |
| Edited by: \\ |
| \\ |
| Paul E. McKenney \\ |
| Linux Technology Center \\ |
| IBM Beaverton \\ |
| \href{mailto:paulmck@linux.vnet.ibm.com}{paulmck@linux.vnet.ibm.com} \\ |
| } % end author |
| % \date{\ } |
| |
| \setcounter{topnumber}{3} |
| \renewcommand\topfraction{.75} |
| \setcounter{bottomnumber}{2} |
| \renewcommand\bottomfraction{.3} |
| \setcounter{totalnumber}{5} |
| \renewcommand\textfraction{.15} |
| \renewcommand\floatpagefraction{.5} |
| \setcounter{dbltopnumber}{3} |
| \renewcommand\dbltopfraction{.75} |
| \renewcommand\dblfloatpagefraction{.5} |
| |
| \setlength{\textheight}{8.25in} |
| \setlength{\textwidth}{6.5in} |
| \setlength{\columnsep}{0.25in} |
| |
| \newboolean{inbook} |
| \setboolean{inbook}{true} |
| \newcommand{\IfInBook}[2]{\ifthenelse{\boolean{inbook}}{#1}{#2}} |
| \newboolean{twocolumn} |
| \setboolean{twocolumn}{true} |
| \newcommand{\IfTwoColumn}[2]{\ifthenelse{\boolean{twocolumn}}{#1}{#2}} |
| \newboolean{hardcover} |
| \setboolean{hardcover}{false} |
| \newcommand{\IfHardCover}[2]{\ifthenelse{\boolean{hardcover}}{#1}{#2}} |
| |
| \IfHardCover{ |
| \setlength{\topmargin}{13pt} |
| \setlength{\evensidemargin}{-4pt} |
| }{} |
| |
| \setcounter{secnumdepth}{3} |
| |
| \frontmatter |
| |
| \maketitle |
| \input{legal} |
| \tableofcontents |
| |
| \mainmatter |
| |
| \input{howto/howto} |
| \input{intro/intro} |
| \input{cpu/cpu} |
| \input{toolsoftrade/toolsoftrade} |
| \input{count/count.tex} |
| \input{SMPdesign/SMPdesign} |
| \input{locking/locking.tex} |
| \input{owned/owned.tex} |
| \input{defer/defer.tex} |
| \input{datastruct/datastruct.tex} |
| \input{debugging/debugging} |
| \input{formal/formal} |
| \input{together/together.tex} |
| \input{advsync/advsync.tex} |
| \input{rt/rt.tex} |
| \input{easy/easy.tex} |
| % \input{memalloc/memalloc.tex} @@@ covered in SMPdesign |
| \input{future/future.tex} |
| |
| % @@@ Conclusion/summary or something, along with "use the right tool" cartoon. |
| |
| \appendix |
| |
| \input{appendix/appendix.tex} |
| |
| % Index at some point... |
| |
| % page-layout dimensions |
| % \cleardoublepage |
| % ~ \\ |
| % paperheight: \the\paperheight \\ |
| % paperwidth: \the\paperwidth \\ |
| % topmargin: \the\topmargin \\ |
| % headheight: \the\headheight \\ |
| % headsep: \the\headsep \\ |
| % textheight: \the\textheight \\ |
| % textwidth: \the\textwidth \\ |
| % oddsidemargin: \the\oddsidemargin \\ |
| % evensidemargin: \the\evensidemargin \\ |
| % footskip: \the\footskip \\ |
| % topskip: \the\topskip \\ |
| |
| \end{document} |