%    Copyright (c) 2006 Joe Foley

%    Permission is hereby granted, free of charge, to any person
%    obtaining a copy of this software and associated documentation
%    files (the "Software"), to deal in the Software without
%    restriction, including without limitation the rights to use,
%    copy, modify, merge, publish, distribute, sublicense, and/or sell
%    copies of the Software, and to permit persons to whom the
%    Software is furnished to do so, subject to the following
%    conditions:

%    The above copyright notice and this permission notice shall be
%    included in all copies or substantial portions of the Software.

%    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
%    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
%    OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
%    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
%    HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
%    WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
%    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
%    OTHER DEALINGS IN THE SOFTWARE.

% You will need the non-standard formular and svn packages
% from CTAN to latex this document
\documentclass[12pt]{article}
\parindent=0in
%\parskip=0.5\baselineskip
\parskip=0in
%\addtolength{\baselineskip}{-30pt}
\usepackage[margin=0.75in]{geometry}
\usepackage{amssymb}\usepackage{multicol}
\usepackage{formular}\usepackage{fancyhdr}
%\usepackage{svninfo}
\pagestyle{fancyplain}
%\svnInfo $Id: energy-analysis.tex 45 2006-10-23 22:49:37Z foley $
%\fancyhead[RE,LO]{\leftmark}
%\fancyhead[LE,RO]{\thepage}
%\fancyhead[LE,RO]{\leftmark}
\lhead{2.810 Energy Analysis Sample Worksheet}
\rhead{\tiny By Joe Foley$<$foley@mit.edu$>$}
\usepackage{setspace}\setstretch{1.5}
\newcommand{\checkbox}[1]{$\Box$#1\hspace{0.1in}}
\newcommand{\fld}[1]{\useFRMfield{#1}}
\newcommand{\newfld}[2]{\newFRMfield{#1f}{#2}}
\newcommand{\newnfld}[2]{\newFRMfield{#1f}{#2}[#1]}
\newcommand{\firstnf}[2]{\newFRMfield{#1f}{#2}[#1]\useFRMfield{#1f}}
\setlength{\tabcolsep}{0mm}
%\renewcommand{\subsection}{\@startsection
% {subsection} % name
% {2} % level
% {0mm} %indent
% {-\baselineskip}% beforeskip
% {0.5\baselineskip}% afterskip
% {\normalfont\normalsize\itshape}% style
%}

\begin{document}
\setFRMinlinestyle
\newFRMfield{blankf}{1.5in}
\newFRMfield{medblankf}{1in}
\newfld{lgblankf}{5in}
\newFRMfield{smblankf}{.5in}
\newFRMfield{smnumf}{.5in}[\#]
\newFRMfield{tinynumf}{.25in}[\#]
\newFRMfield{smcabf}{.35in}[\#S]
\newFRMfield{medcabf}{.35in}[\#M]
\newFRMfield{lgcabf}{.35in}[\#L]
\newFRMfield{drawerf}{.35in}[\#Drawers]
\newFRMfield{milef}{.25in}[mi]
\newFRMfield{size}{.5in}[size]
\newFRMfield{area}{.5in}[sq. ft.]
\newFRMfield{namef}{2in}[Name]
\newFRMfield{datef}{1in}[MM/DD]
\newFRMfield{datetimef}{1.2in}[MM/DD HH:MM]
\newFRMfield{recf}{2in}[type, XXXXXXXXX]
\newFRMfield{phonef}{2in}[(XXX)XXX-XXXX]
\newFRMfield{washcountf}{.75in}[W\&D/Apts]
\newFRMfield{emailf}{1.5in}[user@domain.org]
\newFRMfield{addressf}{3.5in}[\# Street]
\newFRMfield{townf}{1.5in}[City, ZIP]
\newFRMfield{moneyf}{1in}[\$]
\newFRMfield{depositf}{1in}[\$deposit]
\newFRMfield{rentf}{1in}[\$rent]
\newFRMfield{rentdepf}{1in}[\$first/last rent]
\newFRMfield{brokerf}{1in}[\$broker fee]
\newFRMfield{movcost}{1in}[\$moving costs]
\newFRMfield{smmoneyf}{.5in}[\$]
\newFRMfield{avgcostf}{.5in}[\$avg/mo]
\newFRMfield{marketf}{.75in}[Supermarket]
\newFRMfield{yn}{0.25in}[(Y/N)]
\newFRMfield{loctimewalk}{0.75in}[walking]
\newFRMfield{loctimebiking}{0.75in}[biking]
\newFRMfield{loctimebus}{0.75in}[bus]
\newFRMfield{loctimet}{0.75in}[MBTA]
\newFRMfield{loctimecar}{0.75in}[car]
\newFRMfield{secf}{0.5in}[seconds]
\newFRMfield{pressf}{0.5in}[good/bad]
\newFRMfield{tempdelf}{1in}[temp change]
\newFRMfield{stairf}{1.5in}[\#,narrow?,twisty?]
\newFRMfield{wheattype}{0.75in}[type]
\newFRMfield{wheatsize}{0.75in}[gallons]
\newFRMfield{elecf}{0.375in}[amps]
\newFRMfield{closets}{0.75in}[closets]
\newFRMfield{noisetraf}{2in}[Traffic]
\newFRMfield{noisepar}{2in}[Parties]
\newFRMfield{noiseother}{2in}[Other]
\newFRMfield{sml}{0.75in}[Sm/Med/Lg]
\newFRMfield{depretcond}{5in}[Return Cond.]
\newFRMfield{expf}{1in}[Exper./1st-time]
\newFRMfield{plugf}{0.5in}[gnd/nognd][/]

\newcommand{\ynbox}{\checkbox{Y}\checkbox{N}}
\newFRMenvironment{notefillin}{\large Notes:}{2}
\newcommand{\firstfillin}[2]{\newFRMenvironment{#1fillin}{\large #1:}{#2}\begin{#1fillin}\end{#1fillin}}
{\bf Evaluator:} \fld{namef}\quad {\bf Date:}\useFRMfield{datetimef}\quad 
{\bf Team:} \useFRMfield{smnumf}\\
{\bf Process:}\fld{medblankf}
\firstnf{Manufacturer}{1in}
\firstnf{Model}{1.5in}
\firstnf{Serial}{1in}\\
	{\bf Duty Cycle:}\newFRMfield{dutyf}{2in}[Idle:Operating]\fld{dutyf}\\

\newnfld{Duration(s)}{1in}  \newnfld{Volts}{1in}  \newnfld{Amps}{1in}
\newnfld{Energy(J)}{1in}

\section*{Warmup}
\fld{Duration(s)f} $\times$ \fld{Voltsf} $\times$ \fld{Ampsf} =
\fld{Energy(J)f}\\ 

{\bf \begin{notefillin}\end{notefillin}}
\section*{Idle}
\fld{Duration(s)f} $\times$ \fld{Voltsf} $\times$ \fld{Ampsf} =
\fld{Energy(J)f}\\ 

{\bf \begin{notefillin}\end{notefillin}}
\section*{Operating}
\fld{Duration(s)f} $\times$ \fld{Voltsf} $\times$ \fld{Ampsf} =
\fld{Energy(J)f}\\ 

{\bf \begin{notefillin}\end{notefillin}}
\section*{Additional}
\firstfillin{Coolant/Lubricant}{1}
\firstfillin{Abrasive}{1}
\firstfillin{Tooling}{1}
\firstfillin{Computer/Controller}{1}

{\bf \begin{notefillin}\end{notefillin}}
\end{document}

