%        File: Fall Syllabus.ltx
%     Created: Tue 10 Jun 2014, 20:33 EDT
%          By: H.A.Trujillo
% Last Change:      4 Aug 2014

%  Preamble 	<<<
\documentclass{article} 
% Packages <<<2
\usepackage{fontsize}
\usepackage[utf8]{inputenc} 
    \usepackage{textcomp}
\usepackage{mathpazo}      	    	%     Palatino w/o osf
%\usepackage[osf]{mathpazo}		%     Palatino w/  osf
\usepackage[margin=1in, bottom=0.75in]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
    \rhead{\em\DATE}
    \lhead{\emph{Chemistry 231}}
    \lfoot{\footmsg}
    \cfoot{}
    \renewcommand{\headrulewidth}{0pt}
    \setlength\headsep{10pt}

% Section titles: <<<2
\usepackage{titlesec}  
    \titleformat	{\section}{\normalsize\bfseries}{}{}{\nopagebreak}
    \titlespacing*	{\section}{0pt} {2ex} {0pt}

  \renewcommand{\title}[1]
	{\begin{center} \textbf{\large{#1}} \end{center} \vskip 10 pt}

  \setcounter{secnumdepth}{-1}	% do not number any sections

% Spacing <<<2

\linespread{0.85} 			% controls table lines, but not footer or parbox spacing
%\renewcommand{\arraystretch}{0.69}	% controls table lines but not footer or parbox spacing
\parindent=0pt

% Headers and Footers <<<2
\input{$HOME/Ltx/date.tex}	% Define handout-date in an external file

\newcommand{\footmsg}{%
    {$\Rightarrow$ }\parbox[t]{0.9\textwidth}{\small
	Textbook: Klein, \emph{Organic Chemistry}, \currEdn\ edn.
%	\\Pages in [brackets] are for the \prevEdn\ edition of the textbook.
	\\Exams will be given in the prelab slot (Tuesday, 10:00, SLC-101).
    }
}

% >>>
% Table Innards and Standard Abbrevns	<<<2
\newcommand {\up} 	[1] {\textsuperscript{#1}}		% text superscripting
\newcommand {\dn}	[1] {\raisebox{-0.5ex}{#1}}		% text subscripting
        \def \st{\textsuperscript{st}} 	\def \nd{\textsuperscript{nd}}
        \def \rd{\textsuperscript{rd}}	\def \th{\textsuperscript{th}}
\newcommand{\halfof}	[1] 			% writes "/2" after a chapter number
		{#1\kern 0.1ex\dn{\textfractionsolidus\kern 0.1ex\footnotesize 2}\,}


% Table Abbrevns <<<2

\newcommand{\mc}	[1] {\multicolumn{2}{c}{#1}}	% span two columns
\newcommand{\ctr}	[1] {\multicolumn{1}{c}{#1}} 
\newcommand{\g} 	    {\vs{1.9em}}                % gap between chapters
\newcommand{\vs}	[1] {\rule{0pt}{#1}}		% vertical strut
\newcommand{\hs}	[1] {\rule{#1}{0pt}}          	% horizontal strut

\newcommand{\cont}	[1] {\cptr{\emph{(#1 cont)}} {} }
\newcommand{\idem}	    {\hs{7ex}”} 			    % ditto mark
%\newcommand{\idem}	    {\hs{7ex}\smash{\raisebox{-2.5ex}{”}}}  % continued lab

%				    \rule proportions:    [-x] {0} { \g + 2x ex}
%
%					#1 = wk  #2=wkdy  #3=date  #4=Exam Title.  
%\newcommand{\exam}	[4] {\\\g\bf#1 &\bf#2 &\bf#3 && \quad\qquad{\bf#4}\rule[-1ex]{0pt}{4ex}}
%
\newcommand{\exam}	[3] {% #1 = Exam Title  #2 = date  #3 = when ("during prelab")
    \\\multicolumn{6}{l}{%
	\bf\hs{23mm}\hbox to 65mm{#1\hfil} #2,\enspace#3 \rule[-1ex]{0pt}{4ex}
    }\g
}

\newcommand{\brk}	[1] {\\\g&&&& \quad\qquad{\em#1}\rule[-1ex]{0pt}{4ex}}


\newcommand{\noMon}	    { \\ \the\wk & W & \box\dAte &\box\cptrNo &\box\cptrTtl &\box\Lab
			      \global\advance\wkdy 2 \global\advance\wk 1\relax}
\newcommand{\noEOW}	    {\global\wkdy=1\relax}

% Counters and Boxes for Table Rows 	<<<2

\newbox\dAte
\newbox\cptrNo
\newbox\cptrTtl
\newbox\Lab

\newcount\wk
\newcount\wkdy
\wk=1
\wkdy=1

\newcommand{\cptr}	[2] {\global\setbox\cptrNo\hbox{\g#1} \global\setbox\cptrTtl\hbox{#2}}
\renewcommand{\date}	[1] {\global\setbox\dAte\hbox{#1}}
\newcommand{\lab}	[1] {\global\setbox\Lab\hbox{\smash{\hsize=18ex\vtop{#1\vs{0.8em}\hfil}}}}
%\newcommand{\lab}	[1] {\global\setbox\Lab\hbox{\smash{\hsize=20ex\vtop{#1\vs{1.1em}}}}}
%\newcommand{\lab}	[1] {\global\setbox\Lab\hbox{#1}}
%	set a box w/o spacing or other bits of commands above
\newcommand{\miscbox}	[2] {\global\setbox#1 \hbox{#2}}	
\def\tab{&}
\def\nl{\hfil\newline}

\newcommand\lect{%
    \ifcase \wkdy
	   \or   \\ \the\wk \tab M \global\advance\wk 1
	   \or   \\ \tab W
	   \or   \\ \tab F \global\wkdy=0 
       \fi
		& \box\dAte & \box\cptrNo & \box\cptrTtl & \box\Lab
    \global\advance\wkdy 1
}

\begin{document}
\title{Syllabus}
\begin{smaller} \begin{smaller}
% >>>1

% USAGE NOTES:
%
%    \lect causes line to be printed, with Week# and [MWF] automatically inserted.
%    \cptr{N°}{title}  and  \lab{lab name}  must precede the \lect line.
%
%    \cont{n} indicates that chapter n is continued:  "(n cont)"
%    \idem    produces ditto-marks for continued bits (eg, \lab{\idem})
%
%    Exams: \exam{week}{wkday}{date}{exam title}.  
%		Spacing before and after is automatic if a new chapter, a break, or
%		a \cont follow, but "\\" must be appended otherwise.
%
%    Breaks: \brk{name of vacation}
%    		Spacing for \brk is identical to that for \exam.  
%		No extra spacing is needed if a \brk and \exam are contiguous.
%	     
%	     \noMon	skip Mon and start week on Weds   (eg, Labor Day)
%	     \noEOW	skip rest of week (W? + F) and scroll to subseq Monday
%							  (eg, Thanksgiving)
%
%    Adventitious Bits:
%    	\miscbox{\boxname}{contents} allows a box to be filled without invoking
%	    the formats above.     boxes: \cptrNo  \cptrTtl \Lab

% <<<1 Table Setup

\hs{10pt} % hack to center table
%
%%               wk         wd date      cpt sub lab
\begin{tabular}{r@{\enspace}l r@{\qquad} l   l   l}
    \mc{\large Week}	& \large Date\hs{1ex}	& \hspace{-5mm} \large Chapter & &
    		\hs{6ex}\large Lab\\
    \hline  % vs = vertical strut ; hs = horizontal strut
    \vs{1.3em} & & \hs{1cm} & \hs{5mm}  & \hs{80mm}  & \hs{19ex}  \\[-2.5em]
% >>>

\gdef\prevEdn{8\th\ (blue)}
\gdef\currEdn{2\nd}

%   wk	& wkday	& date 	 & cptr	  & subject	& lab
	
\date{25 Aug}	 % wk 1
    		\lab{check-in}
		\cptr{1}{Dipoles,\, Orbitals,\, Bonding}
	\lect
	\lect
	\lect

		\exam{Review Quiz\quad (½ period)} {Weds 3 Sept} {in class}

\date{3 Sept}	 % wk 2
		\cont{1}
		\lab{Recrystallizn, MPs}
	\noMon
		\cptr{2}{Structure,\, Formal Charge,\, Resonance and Electron Pushing}
	\lect

\date{8 Sept}	 % wk 3
		\lab{Distillation}
	\lect
		\cptr{3}{Acidity}
	\lect
	\lect

\date{15 Sept}	 % wk 4
		\lab{TLC}
	\lect
		\cptr{4}{Nomenclature,\, Conformations,\, Cycloalkanes}
	\lect
	\lect

\date{22 Sept}	 % wk 5
		\lab{Spectroscopy Wkshp}
	\lect
		\exam{FIRST EXAM: \ chapters 1, 2, 3, \halfof{4}}{Tues 23 Sept}{during prelab}
		\cont{4}
	\lect
		\cptr{15/16}{Spectroscopy}
	\lect

\date{29 Sept}	 % wk 6
		\lab{Chromatography}
	\lect
	\lect
	\lect

\date{6 Oct}	 % wk 7
		\cptr{5}{Stereochemistry}
		\lab{\hs{2ex}\emph{Mon lab only}}
	\lect
	\lect 
	\noEOW

    \brk{Fall Break}

\date{13 Oct}	 % wk 8
		\cont{5}
		\lab{Stereochem Wkshp}
	\lect 
	\lect 
		\cptr{6}{Reactions and Mechanism}
	\lect 

\date{20 Oct}	 % wk 9
		\lab{A/B Extraction}
	\lect 

		\cptr{7}{Nucleophilic Substitution}
	\lect
	\lect

\date{27 Oct}	 % wk 10
    		\lab{\idem}
	\lect 
		\exam{SECOND EXAM: \ chapters \halfof{4}, 5, 6, \halfof{7}, spectro}{Tues 28 Oct}{during prelab}
	\lect
	\lect

		\cptr{8}{Alkenes I:\enspace Elimination Reactions}
\date{3 Nov}	 % wk 11
    		\lab{Nucleophilic\nl Substitution}
	\lect 
	\lect
	\lect

\date{10 Nov}	 % wk 12
		\lab{Functional Group\nl Identification}
	\lect
		\cptr{9}{Alkenes II:\enspace Electrophilic Addition}
	\lect
	\lect

\date{17 Nov}	 % wk 13
    		\lab{\idem}
	\lect
		\lab{Lab Exam}
%		\lab{\idem\nl\hs{5ex}{Lab Exam}\vs{1em}}
	\lect
		\cptr{10}{Alkynes}
	\lect

\date{24 Nov}	 % wk 14
		\cptr{11}{Radicals}
		%\lab{Lab Exam\nl\hs{5ex}\emph{no lab}\vs{1em}}
		\lab{\emph{no lab}}
	\lect
	\noEOW

    \brk{Thanksgiving Break}

\date{1 Dec}	 % wk 15
		\cont{11}
		\lab{check-out}
	\lect
		\exam{THIRD EXAM: \ chapters \halfof{7}, 8, 9, 10, \halfof{11}}{Tues 2 Dec}{during prelab}
	\lect
	\lect

\date{9 Dec}	 % wk 16
	\lect

\end{tabular}
%\hfil
\end{smaller} \end{smaller}


\end{document}

%	vim:  tw=80 nowrap ft=texnoplugin fdm=marker fmr=<<<,>>> ve=all 
