cheese/cheese.sty

51 lines
1.4 KiB
Plaintext
Raw Normal View History

%
% Copyright 2016 (c) Anna Schumaker.
%
\usepackage[landscape, top=0.8in, bottom=0.5in, left=0.7in, right=0.7in]{geometry}
\usepackage{makecell}
\usepackage{tabularx}
% Create a thick line for table borders
\newcommand{\thickline}{\Xhline{2\arrayrulewidth}}
% Set up a common table header style
\newcommand{\tbhead}[1]{\bfseries\centering\arraybackslash\footnotesize{#1}}
% Add a new column type for centered columns of specified width
\newcolumntype{C}{>{\centering\arraybackslash}p{0.85in}}
% ... and a new column type for thick vertical lines
\newcolumntype{'}{!{\vrule width 1pt}}
% Create a new environment that sets up everything we need to make cheese
\newenvironment{cheese}[1]
{
\thispagestyle{empty}
\noindent
\setlength{\extrarowheight}{2pt}
\begin{tabularx}{\textwidth}{ p{2.5in}lllX }
Cheese: \textbf{#1} & Flavors: \hfill & & Date: & Age Until: \\
Milk Brand: \hfill & Type: ( Whole / \hspace{4em} )
& Homogenized: (Y / N )
& Pastuerized: ( Y / N )
& Other: \\
\end{tabularx}
\noindent
\setlength{\tabcolsep}{3pt}
\setlength{\extrarowheight}{4pt}
\tabularx{\textwidth}{ 'c'c|C|C|C|C|c|X' }
\thickline
\tbhead{} & \tbhead{Operation} & \tbhead{Amount} & \tbhead{Time}
& \tbhead{Goal Temp} & \tbhead{Actual Temp}
& \tbhead{Ph} & \tbhead{Comments And Notes} \\
}
{
\thickline
\endtabularx
% FIXME: A newline was required for the \thickline to show up?
}