%broadmacros: revisions for broad agency announcement of propmacros
%propmacros.tex  general-purpose macros for typical proposals

% HORIZONTAL MARGINS
% Left margin 1 inch (0 + 1)
\setlength{\oddsidemargin}{0in}
% Text width 6.5 inch (so right margin 1 inch).
\setlength{\textwidth}{6.5in}

% VERTICAL MARGINS
% Top margin 0.5 inch (-0.5 + 1)
\setlength{\topmargin}{-0.5in}
% Head height 0.25 inch (where page headers go)
\setlength{\headheight}{0.25in}
% Head separation 0.25 inch (between header and top line of text)
\setlength{\headsep}{0.25in}
% Text height 9 inch (so bottom margin 1 in)
\setlength{\textheight}{9in}

% PARAGRAPH INDENTATION
% \setlength{\parindent}{0in}
% SPACE BETWEEN PARAGRAPHS
\setlength{\parskip}{\medskipamount}

% SHORT FORMS FOR ITALICIZED ``i.e.'', ``e.g.'', ``etc.''
\newcommand{\ie}{{\em i.e.,\/}}
\newcommand{\eg}{{\em e.g.,\/}}
\newcommand{\etc}{{\em etc.\/}}

% TIGHT LISTS (no para space betwee items, small indent)
\newenvironment{tightlist}%
{\begin{list}{}{%
    \setlength{\topsep}{0in}
    \setlength{\partopsep}{0in}
    \setlength{\itemsep}{0in}
    \setlength{\parsep}{0in}
    \setlength{\leftmargin}{1.5em}
    \setlength{\rightmargin}{0in}
    \setlength{\itemindent}{0in}
}
}%
{\end{list}
}

\renewcommand{\thechapter}{\Alph{chapter}}
\catcode`\@=11
\def\@part[#1]#2{\ifnum \c@secnumdepth >-2\relax  % IF secnumdepth > -2
        \refstepcounter{part}                     %   THEN step part counter
        \addcontentsline{toc}{part}{\thepart      %        add toc line
        \hspace{1em}#1}\else                      %   ELSE add unnumbered line
        \addcontentsline{toc}{part}{#1}\fi        % FI
   \markboth{}{}
   {\centering                       % %% added 19 Jan 88
    \ifnum \c@secnumdepth >-2\relax  % IF secnumdepth > -2
      \huge\bf Volume \thepart         %   THEN Print 'Part' and number
    \par                             %         in \huge bold.
    \vskip 20pt \fi                  %        Add space before title.
    \Huge \bf                        % FI
    #1\par}\@endpart}                % Print Title in \Huge bold.
    
\def\@chapapp{Section}
\def\chapter{\cleardoublepage      % Starts new page.
   \thispagestyle{plain}     % Page style of chapter page is 'plain'
   \global\@topnum\z@        % Prevents figures from going at top of page.
   \@afterindentfalse        % Suppresses indent in first paragraph.  Change
   \secdef\@chapter\@schapter}   % to \@afterindenttrue to have indent.

% \@makechapterhead {TEXT} : Makes the heading for the \chapter command.
%

\def\@makechapterhead#1{             % Heading for \chapter command
  \vspace*{0pt}                     % Space at top of text page.
%  \vspace*{50pt}                     % Space at top of text page.
  { \parindent 0pt \raggedright 
    \ifnum \c@secnumdepth >\m@ne     % IF secnumdepth > -1 THEN
      \LARGE\bf \@chapapp{} \thechapter % Print 'Chapter' and number.
      \par 
      \vskip 10pt \fi                  % Space between number and title.
%      \vskip 20pt \fi                  % Space between number and title.
    \LARGE \bf                        % Title.
%    \Huge \bf                        % Title.
    #1\par 
    \nobreak                         % TeX penalty to prevent page break.
    \vskip 15pt                      % Space between title and text.
%    \vskip 40pt                      % Space between title and text.
  } }

% \@makeschapterhead {TEXT} : Makes the heading for the \chapter* command.
%

\def\@makeschapterhead#1{             % Heading for \chapter* command
  \vspace*{0pt}                     % Space at top of text page.
%  \vspace*{50pt}                     % Space at top of text page.
  { \parindent 0pt \raggedright 
    \LARGE \bf                        % Title.
%    \Huge \bf                        % Title.
    #1\par 
    \nobreak                         % TeX penalty to prevent page break.
    \vskip 15pt                      % Space between title and text.
%    \vskip 40pt                      % Space between title and text.
  } }

\def\thebibliography#1{\section{References}\list
  {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
    \advance\leftmargin\labelsep
    \usecounter{enumi}}
    \def\newblock{\hskip .11em plus .33em minus .07em}
    \sloppy\clubpenalty4000\widowpenalty4000
    \sfcode`\.=1000\relax}

\catcode`\@=12


%\renewcommand{\thesubsection}{\thesection-\arabic{subsection}}
%\renewcommand{\thesubsubsection}{\thesection-\arabic{subsection}.\arabic{subsubsection}}

\catcode`\@=11

%to change section heading
%\def\section{\newpage\setcounter{figure}{0}\@startsection {section}{1}{10em}{\z@}{2.3ex plus .2ex}{\Large\bf Section}}

%\def\fnum@figure{Figure \thesection-\thefigure}


%to change captions from normalsize to footnotesize
\long\def\mycaption#1[#2]#3{\addcontentsline{\csname
  ext@#1\endcsname}{#1}{\protect\numberline{\csname 
  the#1\endcsname}{\ignorespaces #2}}\par
  \begingroup
    \@parboxrestore
    \footnotesize
    \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
  \endgroup}
\renewcommand\caption{\refstepcounter\@captype \@dblarg{\mycaption\@captype}}
\catcode`\@=12

\newcommand{\fig}[3]{% name height caption     (single-column figure in two-column format)
\begin{figure}
  \hbox{\vrule height#2}
  \caption{#3}
  \label{#1}
\end{figure}}

\newcommand{\figw}[3]{% name height caption	(full-width figure)
\begin{figure*}
  \hbox{\vrule height#2}
  \caption{#3}
  \label{#1}
\end{figure*}}

 \def\doublet{0.52\textwidth}
 \def\triplet{0.35\textwidth}
 \def\quadruplet{1.02\textwidth}
 \def\sextet{0.68\textwidth}

\renewcommand{\textfraction}{0.05}


\newcommand{\by}{$\times$}

\newcommand{\cam}{{\sc cam}}
\newcommand{\Cam}{{\sc Cam}}
\newcommand{\ram}{{\sc ram}}
\newcommand{\dram}{{\sc dram}}
\newcommand{\sram}{{\sc sram}}
\newcommand{\vlsi}{{\sc vlsi}}
\newcommand{\crt}{{\sc crt}}
\newcommand{\darpa}{{\sc darpa}}


\renewcommand{\labelenumi}{\arabic{enumi}.}

\let\em=\sl
