\documentclass[12pt,letterpaper,fleqn]{report}

\usepackage{graphicx}
\usepackage{color}
\usepackage{floatflt}
\usepackage{fancyhdr}
\usepackage{amsmath,epsfig}
\usepackage{url}
% \usepackage{spconf,amsmath,epsfig}

\usepackage{geometry}

\geometry{verbose,letterpaper, dvips,
          lmargin=1.5in, rmargin=1.0in,
          tmargin=1.0in, bmargin=1.25in,
          head=12pt, nofoot}

\usepackage[final]{jmacro}

\JMPageHeaders

\begin{document}

  \setcounter{page}{0}
  \pagenumbering{roman}
  
  \topskip=0pt
  \baselineskip=13pt
  \parskip=10pt % for toc
  \parindent 8mm
  
  \input{titlePage.tex}
  
  \JMBodySpacing
  
  \input{acknowledgements.tex}
  %\input{signaturePage.tex}
  \input{abstract.tex}
  
  % table of contents:
  % the .toc file generated isn't entirely accurate.  If you run latex & bibtex a few times
  % so it generates everything, and look at the table of contents, it will show the list
  % of figures and list of tables page numbers to be one less than the actually are.  To hack
  % a fix for it (assuming of course that it's really latex's fault and not mine), you can
  % open the .toc file and edit the numbers that will be displayed in the table of contents.
  % Then, run latex once.  This will change the table of contents to the numbers you edited
  % in the .toc file.  But running latex again will overwrite your changes.
  {
    \JMTOCSpacing
    
    \tableofcontents
    
    \addcontentsline{toc}{chapter}{List of Figures}
    \listoffigures
    
    \addcontentsline{toc}{chapter}{List of Tables}
    \listoftables
    
    % \nocite{*} % This line affects the bibliography.  If it is uncommented, then
                 % entries in the bibliography that aren't actually referenced in the
                 % paper will still be placed in the bibliography.  Without this line,
                 % entries may still be placed in the .bib file, but the entries that
                 % are not used throughout the paper are not added to the created
                 % bibliography pages.
  }
  
  % actual text
  {
    \newpage
    \setcounter{page}{0}
    \pagenumbering{arabic}
    
    \JMBodySpacing
    
    \input{ch1/ch1.tex} % Introduction
    \input{ch2/ch2.tex} % Literature Review
    \input{ch3/ch3.tex} % Star Analysis; "what we did"
    \input{ch4/ch4.tex} % Results
    \input{ch5/ch5.tex} % Conclusions
  }
  
 
  % bibliography
  {
    \newpage
    \baselineskip=13pt
    % \bibliographystyle{IEEEbib} % attempts to order based on appearance
    \bibliographystyle{plain} % attempts or order alphabetically by author
    \addcontentsline{toc}{chapter}{Bibliography} 

    \bibliography{bib}
  }
 
  
\end{document}
