%!TEX root = std.tex
%% layout.tex -- set overall page appearance

%%--------------------------------------------------
%%  set page size, type block size, type block position

\setstocksize{11in}{8.5in}
\settrimmedsize{11in}{8.5in}{*}
\setlrmarginsandblock{1in}{1in}{*}
\setulmarginsandblock{1in}{*}{1.618}

%%--------------------------------------------------
%%  set header and footer positions and sizes

\setheadfoot{\onelineskip}{2\onelineskip}
\setheaderspaces{*}{2\onelineskip}{*}

%%--------------------------------------------------
%%  make miscellaneous adjustments, then finish the layout
\setmarginnotes{7pt}{7pt}{0pt}
\checkandfixthelayout

%%--------------------------------------------------
%% Paragraph numbering
\newcounter{Paras}
\counterwithin{Paras}{chapter}
\counterwithin{Paras}{section}
\counterwithin{Paras}{subsection}
\counterwithin{Paras}{subsubsection}
\counterwithin{Paras}{paragraph}
\counterwithin{Paras}{subparagraph}
\makeatletter
\def\pnum{\addtocounter{Paras}{1}\noindent\llap{{%
  \scriptsize\raisebox{.7ex}{\arabic{Paras}}}\hspace{\@totalleftmargin}\quad}}
\makeatother

% Leave more room for section numbers in TOC
\cftsetindents{section}{1.5em}{3.0em}

% For compatibility only.  We no longer need this environment.
\newenvironment{paras}{}{}
