%        File: !comp!expand("%:p:t")!comp!
%     Created: !comp!strftime("%a %e %b %Y, %H:%M %Z")!comp!
%          By: H.A.Trujillo
%	  For: Example Reports in Lab Manual
% Last Change:     21 Aug 2014
%    Template:     10 Jul 2013


				<+README+>
%  	"mkdraft"   before processing as a stand-alone document.
%  	"mkfinal"   before using through an \include or \input line.

%	mhchem.sty replaces (-)-charges with (--) in ttfont.  Use \up{-} instead.

%	Preamble for lab-book files:	<<<
%\documentclass[10pt,notitlepage]{book} 				%#d
%\usepackage[utf8]{inputenc} 						%#d
%    \usepackage{textcomp}		% seems to be necessary if inputenc = utf8   %#d
%\usepackage{amssymb} 							%#d
%\usepackage{amsmath}							%#d
%\usepackage{newcent}			       				%#d
%\usepackage{eulervm}			       				%#d
%%\usepackage{euler}							%#d
%\usepackage{eulertext}		% set up "handwritten" font		%#d
%\usepackage{fancyhdr}							%#d
%\usepackage[twoside, margin=1in, outer=1.5in]{geometry}		%#d
%\usepackage{setspace}						       	%#d
%\usepackage[bottom,hang,multiple]{footmisc}			       	%#d
%    \setlength{\footnotemargin}{1.5ex}					%#d
%    \setlength{\skip\footins}{15pt}	% a bit of extra space above footnoterule %#d
%    \setlength{\footnotesep}{3ex}					%#d
%\usepackage[position=above,font=bf]{caption}	 		 	%#d
%\usepackage{graphicx}							%#d
%\usepackage [version=3] {mhchem}					%#d
%\usepackage{xspace}							%#d
%\setlength{\parskip}{1.15ex plus 0.5ex minus 0.2ex}	% (~5pt) default: 0pt %#d
%\linespread{1.75}							%#d
%\pagestyle{fancy}							%#d
%    \fancyheadoffset[OE]{0.5in}					%#d
%    \cfoot{}								%#d
%    \renewcommand{\headrulewidth}{0pt}					%#d

%% sections:								%#d
%  \newcommand{\ct}	[1] {\hangindent=2.5cm \hangafter 1 	        %#d
%				{\noindent\bf\LARGE\em\strut#1}}        %#d
%\renewcommand{\section}	[1] {\vskip 15pt \hrule \nopagebreak \vskip 5pt{\bf \noindent #1\nopagebreak} \par}%#d
 % \newcommand{\hwhdr}	[1] {\noindent\textbf{#1}\nopagebreak} %"handwritten" heading
%  \newcommand{\subsect}	[1] {{\bf \noindent #1}\par\nopagebreak}	%#d
%  \newcommand{\ssc}	[1] {\par\noindent\underline{#1}\par\nopagebreak}%#d
%\renewcommand{\paragraph}[1]{\par\emph{#1}}				%#d
%  \newcommand{\warning}	[1] {\begin{singlespacing}\vskip -5pt\qquad\fbox{\parbox[c] %#d
%				{0.85\textwidth}{#1}}\end{singlespacing}\medskip}%#d

%% footnoting:							(see usage egs at end) %#d
%  \newcommand{\jr}	[5] {#1 \ \emph{\frenchspacing#2}\ {\bf#3}, \emph{#4}, #5} %#d
%  \newcommand{\jrb}	[4] {#1 \ \emph{\frenchspacing#2}\ {\bf#3}, #4}	%#d
%  \newcommand{\book}	[6] {#1 \ \emph{#2}; #3: #4, #5, #6}	        %#d
%  \newcommand{\bookb}	[7] {#1 \ \emph{#2}, (#3, ed.); #4: #5, #6, #7} %#d
%  \newcommand{\bookc}	[8] {#1 \ ``{#2}" in \emph{#3}, (#4, ed.); #5: #6, #7, #8}%#d

%  \newcommand{\hiddenfootnote}[1] {\stepcounter{footnote}\footnotetext{#1}}%#d
%  \newcommand{\xref}	[1] {\textsuperscript{\ref{#1}}}		%#d

%% handy formatting							%#d
%  \newcommand {\up} [1] {\textsuperscript{#1}}	% text superscripting   %#d
%  \newcommand {\dn} [1] {\raisebox{-0.5ex}{#1}}	% text subscripting	%#d
% \def \st{\textsuperscript{st}\xspace}	\def \nd{\textsuperscript{nd}\xspace} %#d
% \def \rd{\textsuperscript{rd}\xspace}	\def \th{\textsuperscript{th}\xspace} %#d
									%#f
%\newcommand{\expno}	 {ExptNo}					%#d
%\fancyhead[RO]{\em ShortTitle \qquad Expt \expno.\thepage}	        %#d
%\fancyhead[LE]{\em Expt \expno.\thepage \qquad Chemistry 233/234 Laboratory Manual} %#d
%\usepackage[T1]{fontenc}		% delete once last <<...>> is filled %#d
% 	
%>>> 	FONT GLITCHES:
%	
%	to obtain...	use...
%		.	:
%		,	;
%		:	$:$
%		-	$--$  (n-dash length)  or · (center-dot)
%		%	try: \% ,   \sy{\%} ,  \text{\textdiscount}
%		=	=  or $/$
%		( )	$($    $)$
%______________________________

%::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


    \def \snii{S\dn{\textsc{n}}2\xspace}
    \def \hnmr{\up{1}H NMR\xspace}
    \def \hnmrdata{\hnmr(\ce{CDCl3}): }


%\linespread{1.5}							%#d

%\begin{document}	%>>>						%#d


\section{Example Report}						

\begin{ttfamily}
    \setlength{\jot}{15pt}
    \raggedright
{
    \singlespacing
	\noindent
	    <+ Report Date +>	\hfill	<+ Author +>\\
	\noindent
	    <+ Lab Day +>	\hfill	Partner:~<+ Partner +>\\

    \vspace{20pt}

    {\centering\textbf{
	<+ Title +>
    }\par}


    \bigskip

    \SRhdr{Abstract}\noindent
	<+ abstract +>
\par}

\medskip

\SRhdr{Reaction and Mechanism}

{\centering
    \bigskip

%    \includegraphics[clip]{<+ Net Rx fig+>}

    \bigskip

%    \includegraphics[clip]{<+ Mech fig +>}
\par}

\SRhdr{Experimental}
\emph{<+ heading +>}: \
<+ Exptl body +>
%
\textbf{<+cpd+>:} \hnmrdata $\delta$ <+chm shft+> (<+ etc +>),
    1.84 (pent, 2H, \ce{CH3C}\emph{H}\dn{\footnotesize 2}, 2H), 
    1.48 (sext, C\emph{H}\dn{\footnotesize 2}\ce{CH2Br}),
    0.95 (t, 2H, \ce{CH2Br}).

\medskip

\SRhdr{Discussion}
<++>


\SRhdr{Calculations}

\mathversion{egCalcs}
\begin{eufont}
  \small
	%	Try \intertext{...}  -- simpler?
	
  \HWhdr{Starting Materials$:$}
      \vspace*{-1em}
      \begin{align*}
	  (1.84\ g\ NaBr)\left(\frac{1\ mol}{102.88\ g}\right)	&= 17.8_8\ mmol\ NaBr 
	\\
	  (1.04\ g\ NaCl)\left(\frac{1\ mol}{58.43\ g}\right)	&= 17.8_0\ mmol\ NaCl
	\\
	  (0.95\ mL\ BuOH) \left(\frac{0.810\ g}{ml}\right)\left(\frac{1\ mol}
	      {74.12\ g}\right) &= 10._4\ mmol\ BuOH	
	      & \Leftarrow Limiting\ Reagent 
      \end{align*}

  \HWhdr{Product Ratio$:$}\qquad
      See spectrum

  \HWhdr{Percent Yield$:$}
      \vspace*{-1em}
	  \begin{align*}
	      \frac{0.9508\ g\ obtained}{1.3_3\ g\ theor} &= 71._5\%\ yield
	  \end{align*}

\end{eufont}
\end{ttfamily}

%\end{document}								%#d



% Usage:								%#d
%    \SRhdr{...}		Courier heading (eg report)		%#d
%    \HWhdr{...}		Handwritten hdg (calculations)		%#d
%									%#d
%	sample-report footnote						%#d
%    \SRfn {fn#}{footnote text}{label}   -> sometimes flaky		%#d
