\documentclass{tables}

\newenvironment{spelllist}[1]{%
  \vbox\bgroup%
  \hrule height\arraythickrulewidth%
  \kern\doublerulesep%
  \hbox to\hsize{\hfil\bfseries #1 spells\strut\hfil}%
  \kern\doublerulesep%
  \hrule height\arrayrulewidth%
  \global\levelcount=0%
  \let\endlevel\relax%
  \lineskip\bigskipamount%
  \noindent%
  \hfill%
  \def\level{%
    \endlevel%
      \def\endlevel{%
        \endtabular\hss\egroup%
        \penalty10000\hfill%
        \hbox{}\penalty0\hbox{}%
        \penalty10000\hfill%
      }%
      \global\itemcount=0%
      \global\advance\levelcount1%
      \hbox to.3\hsize\bgroup%
      \tabular{>{\global\advance\itemcount1%
          \hbox to2em{\hfil\the\itemcount.}\quad}l}%
      \multicolumn{1}{@{}l}{\bfseries Level \the\levelcount}\\%
  }%
  \def\split{%
    \\\hlx{vv}%
  }
}{%
  \endtabular%
  \hss\egroup\penalty10000\hfill\hbox{}\par%
  \kern\doublerulesep%
  \hrule height\arraythickrulewidth%
  \egroup%
}

\begin{document}

\sect{Spells}

\begin{set}
\begin{tabular}{\shade rcccccccc} \hlx*{hv}
  \tt{Cleric/Druid spells by level} \\
  \th{Level} & \th{Free} &\th1&\th2&\th3&\th4&\th5&\th6&\th7 \\ \hlx{vhv}
       1     &    ---    & ---& ---& ---& ---& ---& ---& --- \\ \hlx{+}
       2     &    ---    &  1 & ---& ---& ---& ---& ---& --- \\ \hlx{+}
       3     &    ---    &  2 & ---& ---& ---& ---& ---& --- \\ \hlx{+}
       4     &    ---    &  2 &  1 & ---& ---& ---& ---& --- \\ \hlx{+}
       5     &    ---    &  2 &  2 & ---& ---& ---& ---& --- \\ \hlx{+}
       6     &    ---    &  2 &  2 &  1 & ---& ---& ---& --- \\ \hlx{+}
       7     &    ---    &  3 &  2 &  2 & ---& ---& ---& --- \\ \hlx{+}
       8     &    ---    &  3 &  3 &  2 &  1 & ---& ---& --- \\ \hlx{+}
       9     &     1     &  3 &  3 &  3 &  2 & ---& ---& --- \\ \hlx{+}
      10     &     1     &  4 &  4 &  3 &  2 &  1 & ---& --- \\ \hlx{+}
      11     &     1     &  4 &  4 &  3 &  3 &  2 & ---& --- \\ \hlx{+}
      12     &     1     &  4 &  4 &  4 &  3 &  2 &  1 & --- \\ \hlx{+}
      13     &     1     &  5 &  5 &  4 &  3 &  2 &  2 & --- \\ \hlx{+}
      14     &     2     &  5 &  5 &  5 &  3 &  3 &  2 & --- \\ \hlx{+}
      15     &     2     &  6 &  5 &  5 &  3 &  3 &  3 & --- \\ \hlx{+}
      16     &     2     &  6 &  5 &  5 &  4 &  4 &  3 & --- \\ \hlx{+}
      17     &     2     &  6 &  6 &  5 &  4 &  4 &  3 &  1  \\ \hlx{+}
      18     &     3     &  6 &  6 &  5 &  4 &  4 &  3 &  2  \\ \hlx{+}
      19     &     3     &  7 &  6 &  5 &  4 &  4 &  4 &  2  \\ \hlx{+}
      20     &     3     &  7 &  6 &  5 &  4 &  4 &  4 &  3  \\ \hlx{+}
      21     &     3     &  7 &  6 &  5 &  5 &  5 &  4 &  3  \\ \hlx{+}
      22     &     3     &  7 &  6 &  5 &  5 &  5 &  4 &  4  \\ \hlx{+}
      23     &     4     &  7 &  7 &  6 &  6 &  5 &  4 &  4  \\ \hlx{+}
      24     &     4     &  8 &  7 &  6 &  6 &  5 &  5 &  4  \\ \hlx{+}
      25     &     4     &  8 &  7 &  6 &  6 &  5 &  5 &  5  \\ \hlx{+}
      26     &     4     &  8 &  7 &  7 &  6 &  6 &  5 &  5  \\ \hlx{+}
      27     &     5     &  8 &  8 &  7 &  6 &  6 &  6 &  5  \\ \hlx{+}
      28     &     5     &  8 &  8 &  7 &  7 &  7 &  6 &  5  \\ \hlx{+}
      29     &     5     &  8 &  8 &  7 &  7 &  7 &  6 &  6  \\ \hlx{+}
      30     &     5     &  8 &  8 &  8 &  7 &  7 &  7 &  6  \\ \hlx{+}
      31     &     5     &  8 &  8 &  8 &  7 &  7 &  7 &  6  \\ \hlx{+}
      32     &     6     &  9 &  8 &  8 &  8 &  8 &  7 &  7  \\ \hlx{+}
      33     &     6     &  9 &  9 &  8 &  8 &  8 &  8 &  7  \\ \hlx{+}
      34     &     6     &  9 &  9 &  9 &  8 &  8 &  8 &  8  \\ \hlx{+}
      35     &     6     &  9 &  9 &  9 &  9 &  9 &  8 &  8  \\ \hlx{+}
      36     &     7     &  9 &  9 &  9 &  9 &  9 &  9 &  9  \\ \hlx*{vh}
\end{tabular}
\rowgap
\begin{tabular}{\shade rccccccccc} \hlx*{hv}
  \tt{Magic-user spells by level} \\
  \th{Level} &\th1&\th2&\th3&\th4&\th5&\th6&\th7&\th8&\th9 \\ \hlx{vhv}
       1     &  1 & ---& ---& ---& ---& ---& ---& ---& --- \\ \hlx{+}
       2     &  2 & ---& ---& ---& ---& ---& ---& ---& --- \\ \hlx{+}
       3     &  2 &  1 & ---& ---& ---& ---& ---& ---& --- \\ \hlx{+}
       4     &  2 &  2 & ---& ---& ---& ---& ---& ---& --- \\ \hlx{+}
       5     &  2 &  2 &  1 & ---& ---& ---& ---& ---& --- \\ \hlx{+}
       6     &  3 &  2 &  2 & ---& ---& ---& ---& ---& --- \\ \hlx{+}
       7     &  3 &  2 &  2 &  1 & ---& ---& ---& ---& --- \\ \hlx{+}
       8     &  3 &  3 &  2 &  2 & ---& ---& ---& ---& --- \\ \hlx{+}
       9     &  3 &  3 &  2 &  2 &  1 & ---& ---& ---& --- \\ \hlx{+}
      10     &  4 &  3 &  3 &  2 &  2 & ---& ---& ---& --- \\ \hlx{+}
      11     &  4 &  3 &  4 &  3 &  2 & ---& ---& ---& --- \\ \hlx{+}
      12     &  4 &  4 &  4 &  3 &  2 &  1 & ---& ---& --- \\ \hlx{+}
      13     &  5 &  4 &  4 &  3 &  2 &  2 & ---& ---& --- \\ \hlx{+}
      14     &  5 &  4 &  4 &  4 &  3 &  2 & ---& ---& --- \\ \hlx{+}
      15     &  5 &  4 &  4 &  4 &  3 &  2 &  1 & ---& --- \\ \hlx{+}
      16     &  5 &  5 &  4 &  4 &  3 &  2 &  2 & ---& --- \\ \hlx{+}
      17     &  6 &  5 &  4 &  4 &  4 &  3 &  2 & ---& --- \\ \hlx{+}
      18     &  6 &  5 &  4 &  4 &  4 &  3 &  2 &  1 & --- \\ \hlx{+}
      19     &  6 &  5 &  5 &  5 &  4 &  3 &  2 &  2 & --- \\ \hlx{+}
      20     &  6 &  5 &  5 &  5 &  4 &  4 &  3 &  2 & --- \\ \hlx{+}
      21     &  6 &  5 &  5 &  5 &  4 &  4 &  3 &  2 &  1  \\ \hlx{+}
      22     &  6 &  6 &  5 &  5 &  5 &  4 &  3 &  2 &  2  \\ \hlx{+}
      23     &  6 &  6 &  6 &  6 &  5 &  4 &  3 &  3 &  2  \\ \hlx{+}
      24     &  7 &  7 &  6 &  6 &  5 &  5 &  4 &  3 &  2  \\ \hlx{+}
      25     &  7 &  7 &  6 &  6 &  5 &  5 &  4 &  4 &  3  \\ \hlx{+}
      26     &  7 &  7 &  7 &  6 &  6 &  5 &  5 &  4 &  3  \\ \hlx{+}
      27     &  7 &  7 &  7 &  6 &  6 &  5 &  5 &  5 &  4  \\ \hlx{+}
      28     &  8 &  8 &  7 &  6 &  6 &  6 &  6 &  5 &  4  \\ \hlx{+}
      29     &  8 &  8 &  7 &  7 &  7 &  6 &  6 &  5 &  5  \\ \hlx{+}
      30     &  8 &  8 &  8 &  7 &  7 &  7 &  6 &  6 &  5  \\ \hlx{+}
      31     &  8 &  8 &  8 &  7 &  7 &  7 &  7 &  6 &  6  \\ \hlx{+}
      32     &  9 &  8 &  8 &  8 &  8 &  7 &  7 &  7 &  6  \\ \hlx{+}
      33     &  9 &  9 &  9 &  8 &  8 &  8 &  7 &  7 &  7  \\ \hlx{+}
      34     &  9 &  9 &  9 &  9 &  8 &  8 &  8 &  8 &  7  \\ \hlx{+}
      35     &  9 &  9 &  9 &  9 &  9 &  9 &  8 &  8 &  8  \\ \hlx{+}
      36     &  9 &  9 &  9 &  9 &  9 &  9 &  9 &  9 &  9  \\ \hlx*{vh}
\end{tabular}
\line
\begin{tabular}{\shade rccccccccc} \hlx*{hv}
  \tt{Elf spells by level} \\
  \th{Level} &\th1&\th2&\th3&\th4&\th5 \\ \hlx{vhv}
       1     &  1 & ---& ---& ---& --- \\ \hlx{+}
       2     &  2 & ---& ---& ---& --- \\ \hlx{+}
       3     &  2 &  1 & ---& ---& --- \\ \hlx{+}
       4     &  2 &  2 & ---& ---& --- \\ \hlx{+}
       5     &  2 &  2 &  1 & ---& --- \\ \hlx{+}
       6     &  3 &  2 &  2 & ---& --- \\ \hlx{+}
       7     &  3 &  3 &  2 &  1 & --- \\ \hlx{+}
       8     &  4 &  3 &  2 &  2 & --- \\ \hlx{+}
       9     &  4 &  4 &  3 &  2 & --- \\ \hlx{+}
      10     &  5 &  4 &  3 &  2 &  1  \\ \hlx*{vh}
\end{tabular}
\end{set}

\begin{spelllist}{Cleric/Druid}
\level
  Cure light wounds* \\
  Detect evil \\
  Detect magic \\
  Light* \\
  Prot./evil \\
  Purify food and water \\
  Remove fear* \\
  Resist cold \split
  \itshape Detect danger \\
  \itshape Faerie fire \\
  \itshape Locate \\
  \itshape Predict weather
\level
  Bless* \\
  Find traps \\
  Hold person* \\
%%  Know alignment* \\
  Resist fire \\
  Silence 15$'$r \\
  Slow poison \\ %% see house rules
  Snake charm \\
  Speak with animal \split
  \itshape Heat metal \\
  \itshape Obscure \\
  \itshape Produce fire \\
  \itshape Warp wood
\level
  Continual light* \\
  Cure blindness \\
  Cure disease* \\
  Growth of animals \\
  Locate object \\
  Remove curse* \\
  Speak with the dead \\
  Striking \split
  \itshape Call lightning \\
  \itshape Hold animal \\
  \itshape Prot./poison \\
  \itshape Water breathing
\level
  Animate dead \\
  Create water \\
  Cure serious wounds* \\
  Dispel magic \\
  Neutralize poison* \\
  Prot./evil 10$'$r \\
  Speak with plants \\
  Sticks to snakes \split
  \itshape Control temp.\ 10$'$r \\
  \itshape Plant door \\
  \itshape Prot./lightning \\
  \itshape Summon animals
\level
  Commune \\
  Create food \\
  Cure critical wounds* \\
  Dispel evil \\
  Insect plague \\
  Quest* \\
  Raise dead* \\
  Truesight \split
  \itshape Anti-plant shell \\
  \itshape Control winds \\
  \itshape Dissolve \\
  \itshape Pass plant
\level
  Aerial servant \\
  Animate objects \\
  Barrier* \\
  Create normal animals \\
  Cureall \\
  Find the path \\
  Speak with monsters* \\
  Word of recall \split
  \itshape Anti-animal shell \\
  \itshape Summon weather \\
  \itshape Transp.\ through plants \\
  \itshape Turn wood
\level
  Earthquake \\
  Holy word \\
  Raise dead fully* \\
  Restore* \\
  Survival \\
  Travel \\
  Wish \\
  Wizardry \split
  \itshape Creeping doom \\
  \itshape Metal to wood \\
  \itshape Summon elemental \\
  \itshape Weather control
\end{spelllist}

\begin{spelllist}{Magic-user}
\level
  Analyse \\
  Charm person \\
  Detect magic \\
  Floating disc \\
  Hold portal \\
  Light* \\
  Magic missile \\
  Prot./evil \\
  Read languages \\
  Read magic \\
  Shield \\
  Sleep \\
  Ventriloquism
\level
  Continual light* \\
  Detect evil \\
  Detect invisible \\
  Entangle \\
  ESP* \\
  Invisibility \\
  Knock \\
  Levitate \\
  Locate object \\
  Mirror image \\
  Phantasmal force \\
  Web \\
  Wizard lock
\level
  Clairvoyance \\
  Create air \\
  Dispel magic \\
  Fire ball \\
  Fly \\
  Haste* \\
  Hold person \\
  Infravision \\
  Invisibility 10$'$r \\
  Lightning bolt \\
  Prot./evil 10$'$r \\
  Prot./normal missiles \\
  Water breathing
\level
  Charm monster \\
  Clothform \\
  Confusion \\
  Dimension door \\
  Growth of plants* \\
  Hallucinatory terrain \\
  Ice storm/wall \\
  Massmorph \\
  Polymorph others \\
  Polymorph self \\
  Remove curse* \\
  Wall of fire \\
  Wizard eye
\level
  Animate dead \\
  Cloudkill \\
  Conjure elemental \\
  Contact outer plane \\
  Dissolve* \\
  Feeblemind \\
  Hold monster* \\
  Magic jar \\
  Pass-wall \\
  Telekinesis \\
  Teleport \\
  Wall of stone \\
  Woodform
\level
  Anti-magic shell \\
  Death spell \\
  Disintegrate \\
  Geas* \\
  Invisible stalker \\
  Lower water \\
  Move earth \\
  Projected image \\
  Reincarnation \\
  Stone to flesh* \\
  Stoneform \\
  Wall of iron \\
  Weather control
\level
  Charm plant \\
  Create normal monsters \\
  Delayed blast fire ball \\
  Ironform \\
  Lore \\
  Magic door* \\
  Mass invisibility \\
  Power word stun \\
  Reverse gravity \\
  Statue \\
  Summon object \\
  Sword \\
  Teleport any object
\level
  Clone \\
  Create magical monsters \\
  Dance \\
  Explosive cloud \\
  Force field \\
  Mass charm* \\
  Mind barrier* \\
  Permanence \\
  Polymorph any object \\
  Power word blind \\
  Steelform \\
  Symbol \\
  Travel
\level
  Contingency \\
  Create any monster \\
  Gate* \\
  Heal* \\
  Immunity \\
  Maze \\
  Meteor swarm \\
  Power word kill \\
  Prismatic wall \\
  Shapechange \\
  Survival \\
  Timestop \\
  Wish
\end{spelllist}

\end{document}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 
