%        File: Doodlesheet.ltx
%     Purpose: Check-sheet for attendance, etc
%     Created: Wed Jan 22 04:00 PM 2014 E
% Last Change:     22 Aug 2014
%
%<<<1
%\documentclass[7pt]{article}					%#d
\documentclass[landscape,7pt]{article}				%#f
\usepackage[margin=1cm]{geometry}
\usepackage{fontsize}
\usepackage{colortbl}
\usepackage{ifthen}
\usepackage[scaled]{helvet}

\pagestyle{empty}
\setlength{\parindent}{0pt}
\renewcommand{\arraystretch}{1.5}	% adjust for vertical fit
%>>>1

%  :mkdraft for portrait (fall),     :mkfinal for landscape (spring)
%
%	Fall:   set ThgvWk to week of semester during which Thanksgiving occurs.
%	Spring: set ThgvWk to 16
%\newcounter{ThgvWk}   \setcounter{ThgvWk}{14}			%#d

%<<<1
\newlength{\colwidth}	\setlength{\colwidth}{0mm plus 4mm minus 1mm}
\newcounter{linenr}	
%\newcounter{PreThgv}  							%#d
%    \setcounter{PreThgv}{\value{ThgvWk}} \addtocounter{PreThgv}{-1}	%#d
%\newcounter{PostThgv}							%#d
%    \setcounter{PostThgv}{14} \addtocounter{PostThgv}{-\value{ThgvWk}}	%#d

\newcommand{\Bar}{{\color{black}\vline}}

\newcommand{\nl}{
	& & & & & & & & & &
	& & & & & &%						%#f
%	& & & & & & &%						%#d
    \addtocounter{linenr}{1}
    \ifthenelse{\value{linenr} = 3}{%
	\setcounter{linenr}{0}%
	\\\arrayrulecolor{black}\hline%
    }{%
	\\\arrayrulecolor[gray]{0.75}\hline%
    }
}

%\ifcase \value{ThgvWk} 								%#d
%    \or  \or  \or  \or  \or       \or  \or  \or  \or  \or 			%#d
%    \or {}	% ThgvWk=11							%#d
%    \or \newcommand{\TblLine}{Wk10  & Wk11  &   12  & Wk13  & Wk14 & Wk15 & 16}	%#d
%    \or \newcommand{\TblLine}{Wk10  & Wk11  & Wk12  &   13  & Wk14 & Wk15 & 16}	%#d
%    \or \newcommand{\TblLine}{Wk10  & Wk11  & Wk12  & Wk13  &   14 & Wk15 & 16}	%#d
%    \or \newcommand{\TblLine}{Wk10  & Wk11  & Wk12  & Wk13  & Wk14 & 15/16}	%#d
%    \else \newcommand{\TblLine}{Wk10& Wk11  & Wk12  & Wk13  & Wk14 & Wk15 }	%#d
%\fi										%#d

\begin{document}


\small \sffamily
\begin{tabular*}{\textwidth}
    {%
	l@{\enspace}l!{\Bar}%
	@{~~\extracolsep{\colwidth}}%
	*{15}{r!{\Bar}}%					%#f
	p{8mm}							%#f
%	*{\value{PreThgv}}{c!{\Bar}}%			wks before Thgv Wk	%#d
%	@{\extracolsep{-1mm}}>{\kern 1.7ex}c<{\kern -1.7ex}!{\Bar}%	Thgv Wk	%#d
%	@{~~\extracolsep{\colwidth}}c!{\Bar}% 				Tg+1	%#d
%	*{\value{PostThgv}}{c!{\Bar}}% 			wks betw Tg+1 and 16	%#d
%	@{\extracolsep{-1mm}}>{\kern 1.7ex}c<{\kern -1.7ex}!{\Bar}%	Wk16	%#d
%	p{7mm}% 					last blank		%#d
%
    } 	
    && Wk 1  & Wk 2  & Wk 3  & Wk 4  & Wk 5  & Wk 6  & Wk 7  & Wk 8  & Wk 9  & 
    Wk10  & Wk11  & Wk12  & Wk13  & Wk14 & Wk15  &  	%#f
%    \TblLine%						%#d
    \\\hline
%>>>1
% template line:   
%	Doe & Mary \nl 

Alpha & Alice \nl
Beta  & Bernard \nl
Gamma & Ginnie \nl
Delta & Donald \nl
Epsilon & Ellie \nl
Zeta	& Zoe \nl
Eta	& Eric\nl
Theta	& Thomas\nl
Iota	& Eileen \nl


\end{tabular*}
\end{document}

% vim substitutions for pasted names:  (highlight names, <esc>, then paste cmd)
  :'<,'>s/\t/ \& / | '<,'>s/$/\\nl/ | :silent! '<,'>s/_/ /g

%		 vim: ft=texnoplugin tw=0 foldmethod=marker foldmarker=<<<,>>>
