%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%                   vv.sty
%
% (c) fabien van mook, fabien@hetnet.nl
%
% shangoj: 11-7-1998, 12-7-1998, 16-1-1999, 18-1-1999, 12-9-1999,
% 13-9-1999, 17-9-1999, 19-9-1999, 7-3-2000
% 23-6-2001, 22-7-2001

% Rimarkoj:
% -- Tiu chi .sty-dosiero bezontatas che elshuto de vv3.cgi.
% -- Uzu dokumentklason "report".
% -- ogonek ne funkcias (vidu la difinon sube)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% la bezonataj paka^joj
%
\usepackage{ifthen,vv-multidx,multicol,chicago,graphicx}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% la aliaj alfabetoj
%
\newfont{\cyrfnt}{wncyr10}
\newcommand{\cyr}[1]{{\baselineskip12pt\cyrfnt#1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% la pa^goaspekto
%
\setlength{\columnsep}{6ex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% ReferKodo
%
%
\def\indeks#1#2#3{\protect\index{#1}{#3|see{\Referencilo\ReferKodo}}}
\def\indekso#1#2#3{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% enhavolisto, chapitro
%
%
\def\mychapter#1{{\bfseries\Large\raggedright#1}\par%
                 \vspace*{\baselineskip}}
\newcommand{\enhavolisto}[2]{\newpage %
                             \vspace*{\baselineskip}%
                             \mychapter{#2}%
                             \par%
                             \@starttoc{e#1}}

\renewcommand{\thechapter}{\ParReferencilo\arabic{chapter}}

\def\chaptername{}

\newenvironment{chapitro}[2]{\clearpage\newpage%
                             \vspace*{\baselineskip}%
                             \refstepcounter{chapter}%
                             \mychapter{\thechapter}%
                              \label{#2}%
                              \def\Referencilo{}%
                              \def\ReferKodo{\thechapter}%
                              \newcommand{\titolo}[3]{\mychapter{##3}%
                                                      \addcontentsline{e##1}%
                                                                      {chapter}%
                                                                      {\protect\numberline{\thechapter}##3}}%
                              }{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% paragrafo
%
%
\renewcommand{\thesection}{\ParReferencilo\arabic{chapter}.\arabic{section}}

\newenvironment{paragrafo}[2]{\section{~}%
                              \label{#2}%
                              \def\Referencilo{}%
                              \def\ReferKodo{\thesection}%
                              \newcommand{\titolo}[3]{\section*{##3}%
                                                      \addcontentsline{e##1}%
                                                                      {section}%
                                                                      {\protect\numberline{\thesection}##3}}%
                              }{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% subparagrafo
%
%
\renewcommand{\thesubsection}{\ParReferencilo\arabic{chapter}.\arabic{section}.\arabic{subsection}}

\newenvironment{subparagrafo}[2]{\subsection{~}%
                              \label{#2}%
                              \def\Referencilo{}%
                              \def\ReferKodo{\thesubsection}%
                              \newcommand{\titolo}[3]{\subsection*{##3}%
                                                      \addcontentsline{e##1}%
                                                                      {subsection}%
                                                                      {\protect\numberline{\thesubsection}##3}}%
                              }{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% subsubparagrafo
%
%
\renewcommand{\thesubsubsection}{\S \arabic{chapter}.\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}

\newenvironment{subsubparagrafo}[2]{\subsubsection{~}%
                              \label{#2}%
                              \def\Referencilo{}%
                              \def\ReferKodo{\thesubsubsection}%
                              \newcommand{\titolo}[3]{\subsubsection*{##3}%
                                                      \addcontentsline{e##1}%
                                                                      {subsubsection}%
                                                                      {\protect\numberline{\thesubsubsection}##3}}%
                              }{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% figuro
%
%
\def\kapo#1#2#3{\textbf{\Referencilo\ReferKodo\quad(#1):}~#3\par}

\def\htmlbildo#1#2#3{}
\def\latexbildo#1#2#3{\includegraphics[#1]{#3}\par}

\newcounter{NrFiguro}
\newenvironment{figuro}[2]{\setlength{\parindent}{0em}%
                           \frenchspacing%
                           \setlength{\parskip}{0.1ex}%
                           \refstepcounter{NrFiguro}%
                           \label{#2}%
                           \def\Referencilo{\FigReferencilo}%
                           \def\ReferKodo{\arabic{NrFiguro}}%
                           \begin{figure*}%
                           \begin{minipage}{\textwidth}\centering%
                           }{\end{minipage}\end{figure*}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% tabelo
%
%
\def\htmltabelo#1#2#3{}
\def\latextabelo#1#2#3{#3\par}

\newcounter{NrTabelo}
\newenvironment{tabelo}[2]{\setlength{\parindent}{0em}%
                           \frenchspacing%
                           \setlength{\parskip}{0.1ex}%
                           \refstepcounter{NrTabelo}%
                           \label{#2}%
                           \def\Referencilo{\TabReferencilo}%
                           \def\ReferKodo{\arabic{NrTabelo}}%
                           \begin{table*}%
                           \begin{minipage}{\textwidth}\centering%
                           }{\end{minipage}\end{table*}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% artikolo
%
%
\def\esprimo#1#2#3{\makebox[12mm][l]{\ifthenelse{\equal{#2}{1}}%
                                                {}%
                                                {\textsf{#1~#2:~}}}%
                   \ifthenelse{\equal{#1}{eo}}%
                              {\textbf{#3}}%
                              {#3}%
                   \par}
%\def\indeks#1#2#3{\protect\index{#1}{#3|see{\ReferKodo}}}
%\def\difino#1#2{\textsf{#2}\par}
\def\ekspliko#1#2#3{\textsf{#3}\par}
\def\rimarko#1#2#3{#3\par}
%\def\bildo#1#2#3#4{\medskip\medskip\parbox{\linewidth}{\textsf{#3}\par\medskip\framebox[\linewidth][c]{#4}}}

\gdef\foninformoj{%
\def\kategorio##1{\textsl{\tiny##1}\par}%
\def\esprimkodo##1{\textsl{\tiny##1}\par}%
%\def\diskuto##1{\textsl{\tiny##1}\par}%
%\def\dato##1{\textsl{\tiny##1}\par}%
%\def\autoro##1{\textsl{\tiny##1}\par}%
\def\hist##1{\texstsl{\tyny##1}\par}%
\def\sekretoj##1{\texstsl{\tyny##1}\par}%
}

\gdef\senfoninformoj{%
\def\kategorio##1{}%
\def\esprimkodo##1{}%
%\def\diskuto##1{}%
%\def\dato##1{}%
%\def\autoro##1{}%
\def\hist##1{}%
\def\sekretoj##1{}%
}

\senfoninformoj

\newcounter{NrArtikolo}
\newenvironment{artikolo}[2]{\setlength{\parindent}{0em}%
                             \frenchspacing%
                             \setlength{\parskip}{0.1ex}%
                             \refstepcounter{NrArtikolo}%
                             \begin{minipage}{\linewidth}
                             % alt 1:
                             %{\makebox[0mm][r]{{$\bullet$\hspace{1.5mm}}}\arabic{NrArtikolo}}%
                             % alt 2:
                             \nobreak\raisebox{-1ex}{\framebox[0mm][r]{{\normalsize\arabic{NrArtikolo}}}}%
                             \nobreak%
                             \label{#2}%
                             \def\Referencilo{}%
                             \def\ReferKodo{\arabic{NrArtikolo}}%
                             \par}{\end{minipage}\par\vspace{2em plus0.5ex minus0.15ex}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% tekstaro
%
%
\def\teksto#1#2#3{\textbf{#1:}~~#3\par}

\newenvironment{tekstaro}[2]{\setlength{\parindent}{0em}%
                               \frenchspacing%
                               \setlength{\parskip}{0.1ex}%
                               \refstepcounter{NrArtikolo}%
                               \begin{minipage}{\linewidth}
                               % alt 1:
                               %{\makebox[0mm][r]{{$\bullet$\hspace{1.5mm}}}\arabic{NrArtikolo}}%
                               % alt 2:
                               \nobreak\raisebox{-1ex}{\framebox[0mm][r]{{\normalsize\arabic{NrArtikolo}}}}%
                               \nobreak%
                               \label{#2}%
                               \def\Referencilo{}%
                               \def\ReferKodo{\arabic{NrArtikolo}}%
                               \par}{\end{minipage}\par\vspace{2em plus0.5ex minus0.15ex}}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% supersignoj
%

\def\a#1{\'#1} %     x kun akuta akcento
\def\g#1{\`#1} %     x kun grava akcento
\def\e#1{\^#1} %     x kun chapelo
\def\U#1{\"#1} %     x kun umlauto/tremao
\def\t#1{\~#1} %     x kun tildo
%\def\l#1{\=#1} %     x kun horizontala streketo supra
\def\p#1{\.#1} %     x kun punkto supra
%\ux     x kun arketo supra
%\vx     x kun v supra
%\Hx     x kun hungara umlauto
%\cx     x kun cedilo
%\dx     x kun punkto malsupra
%\bx     x kun horizontala streketo malsupra
%\rx     x kun ringo supra
%\ox     x kun trastrekigo
\def\k#1{#1} %       x kun ogonek

%\2xy    ligita literparo xy

%\ss     germana ligita sz
%\si     i sen punkto
%\sj     j sen punkto

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% gramatikaj difinoj
%

\def\Bvi{[vi]} %    vira
\def\Bin{[in]} %    ina
\def\Bko{[ko]} %    komuna
\def\Bne{[ne]} %    neutrala

\def\Bsi{[si]} %    singularo
\def\Bpl{[pl]} %    pluralo

\def\Btr{[tr]} %    transitiva
\def\Bnt{[nt]} %    netransitiva

%[gr]...[=gr]  gramatikajho

\def\Bsubst{[subst]}
\def\Bverbo{[verbo]}
\def\Badver{[adver]}
\def\Badjek{[adjek]}
\def\Bprepo{[prepo]}
\def\Binter{[inter]}
\def\Bkonju{[konju]}
\def\Bsubju{[subju]}
\def\Bprono{[prono]}

\def\Bsufik{[sufik]}
\def\Bprefi{[prefi]}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% teksta strukturo
%

%[p]          paragrafo

\def\Bc#1{``#1''}    % c   citajho
\def\Bs#1{`#1'}      % s   speciala uzo/signifo, ofte skribita inter "..."
\def\Bt#1{{\em#1}}   % t   titolo, nomo de gazeto k.s.
\def\Be#1{{\em#1}}   % e   emfazo
\def\Bekz#1{{\em#1}} % ekz ekzemplo
\def\Bm#1{$#1$}      % m   matematikajho

\def\Bsup#1{$^{#1}$} % sup  superskribo
\def\Bsub#1{$_{#1}$} % sub  subskribo

\def\Bcalineo#1{``#1''}    % c-alineo
\def\Bekzalineo#1{{\em#1}} % ekz-alineo
\def\Bmalineo#1{$#1$}      % m-alineo

\def\Btri#1{{\bf#1}}      % [..x..]
\def\Bdu#1{{\bf#1}}       % [.x.]
\def\Bunu#1{{\bf#1}}      % [.x]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% referencoj
%
\def\ArtReferencilo{$\hookrightarrow$}
\def\FigReferencilo{Fig.~}
\def\TabReferencilo{Tab.~}
\def\ParReferencilo{\S}

\def\Bart#1{\ArtReferencilo\ref{#1}}           % artikolo
\def\Bxart#1#2{#2~[\ArtReferencilo\ref{#1}]}   % artikolo
\def\Bbib#1{[\shortciteNP{#1}]}                % bib
\def\Bxbib#1#2{[\shortciteNP{#1}: #2}          % bib kaj paghoindiko k.s.
\def\Bfig#1{\FigReferencilo~\ref{#1}}          % figuro
\def\Btab#1{\TabReferencilo~\ref{#1}}          % tabulo
\def\Bpar#1{\ParReferencilo~\ref{#1}}          % paragrafoj kaj chapitroj

\def\Bvidu{$\rightarrow$}
\def\Begal{$=$}
\def\Bneegal{$\neq$}
\def\Bmal{$\Join$}
\def\Bsuper{$\supset$}
\def\Bsub{$\subset$}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% indeksaj aferoj
%
\makeindex{eo}
\makeindex{en}
\makeindex{cs}
\makeindex{fr}
\makeindex{de}
\makeindex{es}
\makeindex{it}
\makeindex{nl}
\makeindex{pl}
\makeindex{ru}
\makeindex{sv}

\def\indeksolisto#1#2{\printindex{#1}{\mychapter{#2}}%
                      \addcontentsline{e#1}%
                                      {chapter}%
                                      {#2}%
                      \ifthenelse{\equal{eo}{#1}}%
                                 {}%
                                 {\addcontentsline{eeo}%
                                                  {chapter}%
                                                  {#2}%
                                 }
                      }

\def\see#1#2{#1}

\def\Bmatch#1{{\it#1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% literaturaj referencoj
%
\setlength{\bibhang}{0em}
%\newcommand{\liter}[1]{[\shortciteNP{#1}]}
%\newcommand{\literj}[1]{\shortciteANP{#1} [\citeyearNP{#1}]}
%\newcommand{\litera}[1]{\shortciteANP{#1}}
%\newcommand{\literpp}[2]{[\shortciteNP{#1}: \BIBpp{}~#2]}
%\newcommand{\literx}[2]{[\shortciteNP{#1}: #2]}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% citiloj
%
%\def\G#1{{\cyr{\symbol{60}}\thinspace#1\thinspace\cyr{\symbol{62}}}}
%\def\g#1{{`#1'}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% signoj
%
\def\Bgrado{$^o$}
\def\Belcento{\%}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% fino
%
\endinput
