%
% KP3harj.sty - Tyylitiedosto K3/P3-laskuharjoituksia varten
%
% Kenrick Bingham <Kenrick.Bingham@iki.fi> 5.9.1997
% Modifioitu 19.8.05 Modifioitu 26.10.06
%  

\NeedsTeXFormat{LaTeX2e}
%\ProvidesPackage{v23harj}[1997/09/05]
\ProvidesPackage{KP3harj}[1997/09/05]

\RequirePackage[finnish]{babel}
\RequirePackage[latin1]{inputenc}
%\RequirePackage{a4,amsmath,t1enc}
\RequirePackage{a4,amsmath,amssymb}
\RequirePackage{calc}
\RequirePackage{ae}
\RequirePackage{aecompl}



%\setlength{\textwidth}{160mm}  %alkup.
%\setlength{\textwidth}{165mm}  %alkupp
\setlength{\textwidth}{170mm}  
\setlength{\oddsidemargin}{-15mm} %auttoi ratkaisevasti,pitilisätäitseisarvoa
%\setlength{\oddsidemargin}{-15mm}
%\setlength{\oddsidemargin}{-20mm}
%\setlength{\evensidemargin}{-10mm}   %alkup.
\setlength{\evensidemargin}{-5mm}  % ei hyötyä
%\setlength{\evensidemargin}{-15mm}
\setlength{\textheight}{260mm}
\setlength{\topmargin}{-20mm}
\setlength{\parskip}{2ex}
\setlength{\parindent}{0pt}
\setlength{\columnsep}{2cm}
\usepackage{landscape}
\special{landscape}
\pagestyle{empty}
\AtBeginDocument{\small}

\newcommand{\kohta}[2]
  {\makebox[2.5em]{\quad #1) \hfill}\parbox[t]{\linewidth-2.5em}{#2}}
\newcommand{\koodi}[1]{(#1)}

\newcommand{\R}{{\mathbb R}}
\newcommand{\C}{{\mathbb C}}
\newcommand{\N}{{\mathbb N}}
\newcommand{\Z}{{\mathbb Z}}

\newcommand{\inprod}[1]{\left\langle #1 \right\rangle}

\newcommand{\harjoitus}[3]
  {
  Teknillinen korkeakoulu \hfill Apiola/Häme \\
  Matematiikka \\[2ex]
  \textbf{Mat-1.433/443 Matematiikan peruskurssi KP3-II syksy 2006 \\
  \texttt{http://www.math.hut.fi/teaching/kp3-ii/}\\[2ex] 
%  Laskuharjoitus #1} (viikko #2 -- #3)}
  Laskuharjoitus #1} (viikko #2 , #3)}

\newenvironment{alku}
  {%\medskip \underline{Alkuviikko}
  \begin{enumerate}}
  {\end{enumerate}}

\newenvironment{loppu}
  {%\medskip \underline{Loppuviikko}
  \begin{enumerate}}
  {\end{enumerate}}

% vektori
\newcommand{\V}[1]{{\bf #1}}

% integraalin sijoitusmerkki
\newcommand{\sij}[2]{\Bigl/_{\null\hskip-2mm #1}^{\null\hskip0.5mm #2}}

%$\sij{-1}{1}$    %esim

% Laplace-muunnos 
%\newcommand{\Lap}[1]{{\cal #1}}

%%%%%%%%%%%%%%%%%%%%%%%%

\renewcommand{\vec}[1]{{\boldsymbol{#1}}}
\newcommand{\mat}[1]{{\boldsymbol{#1}}}
\def\b{\vec{b}} 
\def\c{\vec{c}} 
\def\bc{\vec{c}} 
\def\e{\vec{e}} 
\def\f{\vec{f}}
\def\g{\vec{g}} 
\def\h{\vec{h}} 
\def\l{\vec{l}}
\def\n{\vec{n}}
\def\p{\vec{p}} 
\def\q{\vec{q}} 
\def\r{\vec{r}}
\def\s{\vec{s}}
\def\t{\vec{t}}
\def\u{\vec{u}} 
\def\v{\vec{v}}
\def\w{\vec{w}} 
\def\x{\vec{x}}
\def\y{\vec{y}} 
\def\z{\vec{z}}
\def\bP{\vec {P}} 
\def\bQ{\vec {Q}}
\def\A{\mat{A}} 
\def\B{\mat{B}} 
\def\BB{\mat{B}} 
\def\BC{\mat{C}} 
\def\BD{\mat{D}} 
\def\BE{\mat {E}} 
\def\BF{\mat {F}} 
\def\G{\mat{G}} 
\def\H{\mat{H}} 
\def\BI{\mat{I}} 
\def\BJ{\mat {J}}
\def\J{\mat {J}}
\def\BP{\mat {P}} 
\def\BQ{\mat {Q}} 
\def\BR{\mat {R}}
\def\BS{\mat {S}} 
\def\BU{\mat {U}} 
\def\V{\mat {V}} 
\def\BY{\mat{Y}}
\def\O{\mat{O}}
\def\bbK{\mathbb{K}}
\def\whocares{\#}
\def\bphi{\vec{\phi}}
\def\bpsi{\vec{\psi}}
\def\BPhi{\vec{\Phi}}

%       Math definitions

\newcommand{\Ln}{\mat{Ln}}
\newcommand{\D}{\mat{D}}
\newcommand{\F}{\mat{F}}
\renewcommand{\H}{\mat{H}}
\renewcommand{\S}{\mat{S}}
\newcommand{\I}{\mat{I}}
\newcommand{\K}{\mat{K}}
\mathchardef\lscr="7160
\renewcommand{\L}{\mat{L}}
\renewcommand{\l}{\lscr}
\newcommand{\M}{\mat{M}}
\renewcommand{\P}{\mat{P}}
\newcommand{\Q}{\mat{Q}}
\newcommand{\Rat}{\mat{R}}
\newcommand{\U}{\mat{U}}
\newcommand{\X}{\mat{X}}
\newcommand{\Y}{\mat{Y}}






