\documentclass[12pt]{book}
\usepackage[slovene]{babel}
\usepackage[cp1250]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amssymb}
\usepackage{latexsym}
\usepackage{amsfonts}
\usepackage{exscale}
\usepackage{makeidx}
\usepackage{myhead}
\usepackage[dvips]{epsfig}
%\usepackage[dvips]{graphics}

%\includeonly{Sem12}
%\includeonly{Sem3,viri}
%\includeonly{Sem11,Sem12,viri}

\textheight187mm

\newlength{\glava}
\setlength{\glava}{\hsize}

\renewcommand\thesection{\arabic{section}}

%----------------------------------------\
%  vstavljanje slik
%----------------------------------------
\renewcommand{\thefigure}{\arabic{figure}}
\newcommand{\inputpic}[1]{\centerline{\epsfig{file=#1}}}

%----------------------------------------
%  naloga
%----------------------------------------
\newcounter{naloga}[section]
\let\printnaloga=\thenaloga
\renewcommand{\thenaloga}{\thesection.\printnaloga}
\newcommand{\nalref}[1]{\ref{#1}}

\newcommand{\naloga}[2]{%
\goodbreak\refstepcounter{naloga}\Label{#1}\noindent
\hbox{{\bf \thenaloga}~}
#2
\par\vskip3mm
}

\newcommand{\znaloga}[2]{%
\goodbreak\refstepcounter{naloga}\Label{#1}\noindent
\hskip-1.75truemm{$^*$}\hbox{{\bf \thenaloga}~}
#2
\par\vskip3mm
}

%----------------------------------------
%  resitev
%----------------------------------------
\newcommand{\resitev}[2]{%
\goodbreak\noindent
\hbox{{\bf Re\v{s}itev naloge \nalref{#1}.~}}
%\hbox{{\bf \nalref{#1},}~ {\bf re\v{s}itev.}}
#2
\par\vskip3mm
}

%----------------------------------------
%  zgled
%----------------------------------------
\newcommand{\zgled}[2]{%
\goodbreak
\medskip
\noindent\hbox{{\sc Zgled.~}}
#1\par %besedilo zgleda
\medskip\par
\noindent
#2\hfill\rule[0mm]{1ex}{1ex}%resitev zgleda
}

%----------------------------------------
%  problem
%----------------------------------------
\newcommand{\problem}[2]{%
\goodbreak
\medskip
\noindent\hbox{{\sc Naloga.~}}
#1\par %besedilo zgleda
\medskip\par
\noindent
#2\hfill\rule[0mm]{1ex}{1ex}%resitev zgleda
}

%----------------------------------------
%  opomba
%----------------------------------------
\newcommand{\opomba}[1]{%
\smallskip
\par\noindent\hbox{{\sc Opomba.~}}
{\small #1}%besedilo opombe
\medskip
}

%----------------------------------------
%  vaja
%----------------------------------------
\newcommand{\vaja}[1]{%
\medskip
\smallskip
\par\noindent\hbox{{\sc Vaja.~}}
{\small #1}%besedilo vaje
\medskip
}

%----------------------------------------
%  razno
%----------------------------------------

\newtheorem{Izrek}{{\sc Izrek}}[section]
\newtheorem{Trditev}[Izrek]{{\sc Trditev}}
\newtheorem{Lema}[Izrek]{{\sc Lema}}
\newtheorem{Posledica}[Izrek]{{\sc Posledica}}
\newtheorem{Definicija}[Izrek]{{\sc Definicija}}

\def\theIzrek{{\rm \arabic{section}.\arabic{Izrek}}}

%\newenvironment{opomba}{\noindent{\bf Opomba.}}{\par\smallskip}
\newenvironment{izrek}{\begin{Izrek}\sl}{\end{Izrek}}
\newenvironment{trditev}{\begin{Trditev}\sl}{\end{Trditev}}
\newenvironment{lema}{\begin{Lema}\sl}{\end{Lema}}
\newenvironment{posledica}{\begin{Posledica}\sl}{\end{Posledica}}
\newenvironment{definicija}{\begin{Definicija}\sl}{\end{Definicija}}

\newlength{\arraycolsepold} %za razmike pri eqnarray*

\newcommand{\DEF}[1]{\emph{#1\/}\index{#1}}
%\newcommand{\DEF}[1]{\emph{#1\/}\marginpar{\scriptsize #1}}
%\newcommand{\Label}[1]{\marginpar{\footnotesize #1}\label{#1}}
\newcommand{\Label}[1]{\label{#1}}

\newcommand{\NN}{\mathbb{N}}
\newcommand{\ZZ}{\mathbb{Z}}
\newcommand{\QQ}{\mathbb{Q}}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\CC}{\mathbb{C}}
\newcommand{\FF}{\mathbb{F}}

\newcommand{\Qed}{\phantom{.}\hfill \rule{2.5mm}{3mm}\medskip}

\renewcommand{\deg}{\hbox{deg}}       %stopnja tocke
\newcommand{\diam}{\hbox{diam}}       %premer grafa
\newcommand{\aut}{\hbox{Aut}}         %grupa avtomorfizmov
\newcommand{\Aut}{\hbox{Aut}}         %grupa avtomorfizmov
\newcommand{\cir}{\hbox{Cir}}         %krozni graf
\newcommand{\Cir}{\hbox{Cir}}         %krozni graf
\newcommand{\cay}{\hbox{Cay}}         %cayleyjev graf
\newcommand{\Cay}{\hbox{Cay}}         %cayleyjev graf
\newcommand{\Sym}{\hbox{Sym}}         %simetricna grupa
\newcommand{\Fix}{\hbox{Fix}}         %pribita mnozica
\newcommand{\Supp}{\hbox{Supp}}         %premaknjena mnozica
\newcommand{\kompl}[1]{\overline{#1}} %komplementarni graf
\newcommand{\kart}{\Box}              %kartezicni produkt
\newcommand{\dd}{d}                   %razdalja
\newcommand{\AG}{{\rm AG}}
\newcommand{\GF}{{\rm GF}}
\newcommand{\GL}{{\rm GL}}
\newcommand{\SL}{{\rm SL}}
\newcommand{\PGL}{{\rm PGL}}
\newcommand{\PSL}{{\rm PSL}}
\newcommand{\AGL}{{\rm AGL}}
\newcommand{\ASL}{{\rm ASL}}
\newcommand{\AGaL}{{\rm A}\Gamma {\rm L}}
\newcommand{\ASiL}{{\rm A}\Sigma{\rm L}}
\newcommand{\PGaL}{{\rm P}\Gamma{\rm L}}
\newcommand{\PSiL}{{\rm P}\Sigma {\rm L}}
\newcommand{\PG}{{\rm PG}}

\newcommand{\cM}{{\mathcal{M}}}
\newcommand{\cP}{{\mathcal{P}}}
\newcommand{\cB}{{\mathcal{B}}}
\newcommand{\cL}{{\mathcal{L}}}

\newcommand{\x}{{\vec{x}}}
\newcommand{\va}{{\vec{a}}}
\newcommand{\vb}{{\vec{b}}}
\newcommand{\e}{{\vec{e}}}
\newcommand{\nula}{{\vec{0}}}

\newcommand{\id}{{\rm id}}

\newcommand{\dokaz}{{\sc{Dokaz: }}\hspace{2mm}}

\newcommand{\vstavi}[1]{\input{#1}}

\makeindex

\begin{document}
\raggedbottom
\language1

\pagenumbering{roman}
\pagestyle{plain}
\include{uvod}
\cleardoublepage

\pagenumbering{arabic}
\pagestyle{headings}
\def\sectionmark#1{\markboth{#1}{#1}}
\def\subsectionmark#1{\markright{#1}}

\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem1}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem2}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem3}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem4}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem5}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem6}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem7}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem8}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem9}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem10}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem11}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem12}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem13}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem14-1}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem14-2}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem14-3}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem14-4}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem14-5}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem15-1}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem15-2}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem15-3}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem15-4}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem15-5}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem15-6}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem15-7}
\addtocontents{toc}{\protect\vspace{1ex}}
\include{Sem15-8}

\addtocontents{toc}{\protect\vspace{2ex}}
\include{viri}
%\include{index}

\printindex

\end{document}
