%------------------------------------------------------------------------------
% LawTeX - LaTeX for Law School
% Copyright 2007-2010, Rohit Nafday.  All rights reserved.
%
% Redistribution and use in source and binary forms, with or without 
% modification, are permitted provided that the following conditions are met:
%
%   * Redistributions of source code must retain the above copyright notice, 
%     this list of conditions and the following disclaimer.
%   * Redistributions in binary form must reproduce the above copyright notice, 
%     this list of conditions and the following disclaimer in the documentation 
%     and/or other materials provided with the distribution.
%
% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
% AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
% IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
% ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
% LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
% CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
% SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
% INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
% CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
% ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
% POSSIBILITY OF SUCH DAMAGE.
%
% $Id: lawtex.sty 11 2011-10-18 01:55:41Z rohit $
%------------------------------------------------------------------------------

%------------------------------------------------------------------------------
% Packages
%------------------------------------------------------------------------------

\usepackage{palatino}
\usepackage{fancyhdr}
\usepackage{setspace}
\usepackage[in,headings]{fullpage}
\usepackage{pdflscape}
\usepackage[titles]{tocloft}
\usepackage[hang]{footmisc}
\usepackage[pdftex]{hyperref}

%------------------------------------------------------------------------------
% Page Style
%------------------------------------------------------------------------------

\pagestyle{fancy}

% Header/Footer
\fancyhf{}
\fancyhead[L]{\course\ (\professor)}
\fancyhead[C]{\doctype}
\fancyhead[R]{\quarter}

\fancyfoot[C]{\thepage}
\fancyfoot[R]{\footnotesize{Generated:\\ \today}}

% Head Height
\setlength{\headheight}{13.6pt}

% Line Spacing
\singlespacing

% Hyper Ref Setup
\hypersetup{
  hyperfootnotes={false},
  pdfborder={0 0 0},
  colorlinks={false},
  urlcolor={black},
  breaklinks={true}}

%------------------------------------------------------------------------------
% Table of Contents
%------------------------------------------------------------------------------

\renewcommand{\cftsecnumwidth}{3em}

%------------------------------------------------------------------------------
% Section Style
%------------------------------------------------------------------------------

\renewcommand{\thesection}{\Roman{section}.}
\renewcommand{\thesubsection}{\Alph{subsection}.}
\renewcommand{\thesubsubsection}{\arabic{subsubsection}.}

%------------------------------------------------------------------------------
% List Style
%------------------------------------------------------------------------------

%
% LawTeX List - Default
%  1. (a)(1)(i)
%

\renewcommand{\labelenumi}{\arabic{enumi}.}
\renewcommand{\labelenumii}{(\alph{enumii})}
\renewcommand{\labelenumiii}{(\arabic{enumiii})}
\renewcommand{\labelenumiv}{(\roman{enumiv})}

\newcommand{\lawtexlist}{\renewcommand{\labelenumi}{\arabic{enumi}.}%
  \renewcommand{\labelenumii}{(\alph{enumii})}%
  \renewcommand{\labelenumiii}{(\arabic{enumiii})}%
  \renewcommand{\labelenumiv}{(\roman{enumiv})}}

%
% Internal Revenue Code (IRC) List
% SECTION + (a)(1)(A)(i)
%

\newcommand{\irclist}{\renewcommand{\labelenumi}{(\alph{enumi})}%
  \renewcommand{\labelenumii}{(\arabic{enumii})}%
  \renewcommand{\labelenumiii}{(\Alph{enumiii})}%
  \renewcommand{\labelenumiv}{(\roman{enumiv})}}

%
% Treasury Regulation List
% SECTION + (a)(1)(i)(A)
%

\newcommand{\treasreglist}{\renewcommand{\labelenumi}{(\alph{enumi})}%
  \renewcommand{\labelenumii}{(\arabic{enumii})}%
  \renewcommand{\labelenumiii}{(\roman{enumiii})}%
  \renewcommand{\labelenumiv}{(\emph{\alph{enumiv}})}}

%------------------------------------------------------------------------------
% Course Information Commands
%------------------------------------------------------------------------------

%
% \course{COURSE NAME}: Print/set the course name.
%

\newcommand{\course}[1]{#1}

%
% \professor{PROFESSOR SURNAME}: Print/set the professor's surname.
%

\newcommand{\professor}[1]{#1}

%
% \doctype{TYPE}: Print/set the document type.  Usually one of the following:
%     * Course Outline
%     * Class Notes
%     * Reading Notes
%

\newcommand{\doctype}[1]{#1}

%
% \quarter{SEASON YEAR}: Print/set the term, e.g., "Autumn 2007".

\newcommand{\quarter}[1]{#1}

%------------------------------------------------------------------------------
% Miscellaneous Commands
%------------------------------------------------------------------------------

%
% \maincase{CASE NAME}: Highlight important cases.
%

\newcommand{\maincase}[1]{\textbf{\emph{#1}}}
