% Physics 300B Lab Manual
% Eric Ayars
%
% Version information:
%	First compilation: v0.5
%		2/13/07
%	version 1.0, Spring '09
%	version 1.9, Spring '10
%		Added Johnson Noise lab, chi-squared verbage in error-analysis
%		chapter, and some questions on some labs. Need to add questions
% 		on other labs, fix c lab, etc, etc. 
%		Lots of work needed for changes from UCB sabbatical, but the 
%		master is due tomorrow so it's a working edit...
%	version 1.92, April '10
%		Fixed Johnson Noise lab

\documentclass[11pt]{book}

\usepackage{floatflt}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{array}
\usepackage{url}
\usepackage{isotope}


% My definitions
\newcommand{\Half}
	{\frac{1}{2}}
\newcommand{\mean}[1]
	{\overline #1}
\newenvironment{defif}[2]{
	{\noindent \bf #1: }%
	$#2$
	\begin{equation}
	}{
	\end{equation}
}
\newcommand{\Deg}{$^\circ$}

% Book margins
\oddsidemargin = 1 in
\evensidemargin = 0.5 in

% Fancy Headers
\RequirePackage{fancyhea}
\pagestyle{fancyplain}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection{} #1}}
\lhead[\fancyplain{}{\bfseries\thepage}]
    {\fancyplain{}{\bfseries\rightmark}}
\rhead[\fancyplain{}{\bfseries\leftmark}]
    {\fancyplain{}{\bfseries\thepage}}
\cfoot[]{}
\addtolength{\headheight}{1.6pt}

% My format for examples. Produces a lined-off quote-text section-numbered example. Text in the [optional parameter] will appear in parentheses after the example number.
	\usepackage{ifthen}
	\usepackage{theorem}
	\theoremstyle{break}
	\theorembodyfont{\rmfamily}
	\newtheorem{Exmp}{Example}[section]	
	\newenvironment{Example}[1][{}]{%
		\noindent\rule{\textwidth}{1mm}
		\begin{quote}
		\ifthenelse{\equal{#1}{}}{\begin{Exmp}}{\begin{Exmp}[{#1}]}%
		}{
		\end{Exmp}
		\end{quote}
		\noindent\rule{\textwidth}{1mm}%
	}%


\begin{document}

\setcounter{secnumdepth}{3}
\renewcommand{\bibname}{References}

\frontmatter
\include{title}
\tableofcontents

\mainmatter
% Informational stuff
\include{intro}
\include{error}
\include{graph}
\include{linux}
\include{experiments}

% Actual experiments
\include{gnuplot}\label{exp:gnuplot}
\include{LabView}
\include{millican}
\include{johnson}
\include{avogadro}
\include{ruchardt}
\include{neutron-activation}
\include{muon}
\include{temp_coef}
\include{xrf}
\include{c}
\include{compton}
\include{bandgap}
\include{germanium}
\include{pair_production}
\include{1-D_crystal}


\addcontentsline{toc}{chapter}{References}
\bibliography{library}
\bibliographystyle{plain}

\end{document}
