\documentclass[10pt]{amsart}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{local}

\begin{document}
\filename
\centerline{\LaTeX\ {\sc Seminar: Tables}}

\LaTeX\ has amazing table producing capabilities.  Tables are produced with the \verb=tabular= environment.  The syntax is
\begin{verbatim}
    \begin{tabular}[pos]{cols},
\end{verbatim}
where \verb=pos= has one of the values \verb=t,b= or is left empty.  These determine the overall alignment of the
table relative to the surrounding text, and should be experimented with.  The column formatting argument
\verb=cols= is a little complex.  There must be an entry for every column, consisting of one of \verb=c,r,l=
which indicate the alignment (center, right, or left) of the data in the column, as well as certain optional
formatting commands, the most common of which are the symbols \verb=|= and \verb=||= which produce
a vertical line and a double vertical line wherever they appear.  Rows are then entered using the alignment
tabs \verb=&= to separate columns and line breaks \verb=\\= to indicate the end of a row.  Unlike columns,
the number of rows does not have to be pre-specified.  Observe that table data can consist of text or
math or both.

Take a look at the code for the following tables in the file \verb=tables.tex= and edit as you wish.
There are some commands to keep in mind:

\subsection{multicolumn}

The command \verb=\multicolumn{num}{cols}{input}= joins together \verb=num= columns, aligning the input
according to the parameters \verb=cols=, which can be any one of \verb=r,l,c= together with \verb=|,||=
as above.

\subsection{hline, cline}

The command \verb=\hline= produces a horizontal line extending across the entire table.  It can only be issued
after a line break \verb=\\=.  The command \verb=\cline{n-m}= draws a horizontal line from the left side
of column $n$ to the right side of column $m$.  It may only be issued after a line break, and several can
be issued at once.

\subsection{Table Parameters}

There are several parameters that can be altered.  The most useful of these is \verb=\arraystretch=,
which may be altered by issuing the command (either locally or globally)
\verb=\renewcommand{\arraystretch}{factor}=, where \verb=factor= indicates how much to stretch the spacing
in the table.  It's standard value is 1.

\bigskip
\renewcommand{\arraystretch}{1.5}

\begin{tabular}{|r||c|c|c|c|c|c|c|}
    \hline
    {\bf TIME} & 9-10 & 10-11 & 11-12 & 12-1 & 1-2 & 2-3 & 3-4 \\
    \hline
    \hline
    {\sc Sun.} & \multicolumn{7}{c|}{sleep}\\
    \hline
    {\sc Mon.} & Analysis & Topology & Alg. Geometry & \multicolumn{2}{c|}{Lunch} & Algebra & \\
    \hline
    {\sc Tu.}  &  \multicolumn{3}{c|}{\em grading!}  & \multicolumn{2}{c|}{Lunch} &   \multicolumn{2}{c|}{CFT.} \\
    \hline
    {\sc Wed.} & Analysis & Topology & Alg. Geometry & \multicolumn{2}{c|}{Lunch} & Algebra & \\
    \hline
    {\sc Thu.} &  \multicolumn{3}{c|}{\em grading!}  & \multicolumn{2}{c|}{Lunch} &   \multicolumn{2}{c|}{CFT.} \\
    \hline
    {\sc Fri.} & Analysis & Topology & Alg. Geometry & \multicolumn{2}{c|}{Lunch} & Algebra & \\
    \hline
    {\sc Sat.} & \multicolumn{7}{c|}{$\mathfrak{party!!}$} \\
    \hline
\end{tabular}

\bigskip\bigskip
\renewcommand{\arraystretch}{1.3}
\newcommand{\rb}[1]{\raisebox{1.5ex}[0pt]{#1}}
\begin{tabular}{|c||c|c|c|c|c|c|}

    \hline

             & \multicolumn{2}{c|}{9:10--10:00 am} & \multicolumn{2}{c|}{10:10--11:00 am} & \multicolumn{2}{c|}{ 11:10--12:00 pm} \\
    \cline{2-7}
             &            & Teacher        &            & Teacher         &               &   Teacher \\
    \cline{3-3}\cline{5-5}\cline{7-7}
    \rb{Day} & \rb{Subj.} & Room           & \rb{Subj.} & Room            & \rb{Subj.}    &   Room    \\
    \hline
    \hline
             &                 & Barrett   &                & Lott      &                    &   Hacking  \\
    \cline{3-3}\cline{5-5}\cline{7-7}
    \rb{Mon.} & \rb{Analysis.} & 3088 EH.  & \rb{Topology.} & 4096 EH.  & \rb{Geometry.}&   2074 EH.    \\
    \hline
             &                 & Barrett   &                & Lott      &                    &   Hacking  \\
    \cline{3-3}\cline{5-5}\cline{7-7}
    \rb{Wed.} & \rb{Analysis.} & 3088 EH.  & \rb{Topology.} & 4096 EH.  & \rb{Geometry.}&   2074 EH.    \\
    \hline
             &                 & Barrett   &                & Lott      &                    &   Hacking  \\
    \cline{3-3}\cline{5-5}\cline{7-7}
    \rb{Fri.} & \rb{Analysis.} & 3088 EH.  & \rb{Topology.} & 4096 EH.  & \rb{Geometry.}&   2074 EH.    \\
    \hline
\end{tabular}


I was too lazy to format Tuesday and Thursday, so it's left as an exercise.



\end{document}
