%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%                   ventolado.sty
%
% (c) fabien van mook
%
% 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
% 24-6-2001 (versio por la betonista terminaro)
% 25-6-2001
% 22-7-2001
% 4-2-2002 (versio por la ventolista terminaro)
% 5-2-2002, 6-2-2002, 11-2-2002, 13-2-2002, 15-2-2002, 25-2-2002
% 26-2-2002, 27-2-2002 (dosieroj por indeksoj komencighas per "tmp";
% ghenerala reordigo), 3-3-2002, 4-4-2002

% Rimarkoj:
% -- Tiu chi .sty-dosiero bezontatas che elshuto de vv6.cgi.
% -- Uzu dokumentklason "report" au "article".
%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% la bezonataj paka^joj
%
\usepackage{ifthen,vv-multidx,multicol,chicago,graphicx,calc,ulem}
\usepackage{cmbright}
\usepackage[OT2,T1]{fontenc}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% la aliaj alfabetoj
%
% kopiata el texmf/doc/fonts/cyrillic/cyrillic-sample.tex:
%\newcommand{\cyr}{%
%  \renewcommand\familydefault{wncyr}% aldonita
%  \renewcommand\rmdefault{wncyr}%
%  \renewcommand\sfdefault{wncyss}%
%  \renewcommand\encodingdefault{OT2}%
%  \normalfont%
%  \selectfont}
%\DeclareTextFontCommand{\textcyr}{\cyr}

% environment lau supra ekzemplo:
% (notu ke metu \protect\begin{cyr}....\protect\end{cyr} en \indeks !)
\newenvironment{cyr}{%
  \renewcommand\familydefault{wncyr}% aldonita
  \renewcommand\rmdefault{wncyr}%
  \renewcommand\sfdefault{wncyss}%
  \renewcommand\encodingdefault{OT2}%
  \normalfont%
  \selectfont%
}{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% la ne-standardaj latex-difinoj pro unicodize.pm 
%
%\begin{cyr} jam supre
\def\g#1{`#1'}
\def\gg#1{<<\thinspace#1\thinspace>>}
\def\unicode#1{\protect\fbox{U+#1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% supersignoj
%
% uit babel-sty voor tsjechisch:
%
%  \DeclareTextCompositeCommand{\v}{OT1}{t}{%
%    t\kern-.23em\raise.24ex\hbox{'}}
%  \DeclareTextCompositeCommand{\v}{OT1}{d}{%
%    d\kern-.13em\raise.24ex\hbox{'}}

% stomweg d' en t' definieren voor \v{d} en \v{t}:

\DeclareTextCompositeCommand{\v}{T1}{t}{%
  t\kern-.23em\raise.24ex\hbox{'}\hspace{-.05em}}
\DeclareTextCompositeCommand{\v}{T1}{d}{%
  d\kern-.13em\raise.24ex\hbox{'}\hspace{-.1em}}

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

\usepackage{vpage}

\setpapersize{Afour}
\setmarginsrb{15mm}% leftmargin
             {15mm}% topmargin
             {15mm}% rightmargin
             {20mm}% botommargin
             {0pt}% headheight
             {0mm}% headsep
             {0pt}% footheight
             {10mm} % footskip

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% ReferKodo
%
%
\def\indeks#1#2#3{\ifthenelse{\equal{\Identigilo}{x}}%
                             {}%
                             {\protect\index{tmp#1}{#3|see{\Tipsigno\Identigilo}}%
                             }
                 }
\def\indekso#1#2#3{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% \titolo{}{}{}
%
%
\def\titolo#1#2#3{\def\Sufikso{}%
                  \ifthenelse{\equal{\Identigilo}{x}}%
                             {}%
                             {\def\Sufikso{\Identigilo}}%
                  \entry{\NNivelo}{}{}{\TekstFormato#3}%
                  \def\Tipsigno{~}%
                  \addcontentsline{e#1}%
                                  {\Nivelo}%
                                  {\numberline{\Sufikso}#3}
                  }%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% enhavolisto
%
%

\def\mychapter#1{{\chapitroteksto#1}\par%
                 \vspace*{\baselineskip}}

\newcommand{\enhavolisto}[2]{\newpage %
                             \vspace*{\baselineskip}%
                             \mychapter{#2}%
                             \par%
                             \@starttoc{e#1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% chapitro
%
%
\def\chapitroteksto{\bfseries\Large\raggedright}

\def\chaptername{}

\newenvironment{chapitro}[2]{\clearpage\newpage%
                             \begin{minipage}{\linewidth}
                             \def\Tipsigno{}%
                             %\def\@currentlabel{#2}%
                             %\label{#2}%
                             \def\ReferKodo{#2}%
                             \def\Identigilo{x}%
                             \def\Nivelo{chapter}%
                             \def\TekstFormato{\chapitroteksto}%
                            }{\end{minipage}%
                              \par\vspace{2em plus0.5ex minus0.15ex}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% paragrafo
%
%
\def\paragrafoteksto{\bfseries\large\raggedright}

\newenvironment{paragrafo}[2]{\begin{minipage}{\linewidth}%
                              \def\NNivelo{0}%
                              \def\Tipsigno{}%
                              %\def\@currentlabel{#2}%
                              %\label{#2}%
                              \def\ReferKodo{#2}%
                              \def\Identigilo{x}%
                              \def\Nivelo{section}%
                              \def\TekstFormato{\paragrafoteksto}%
                             }{\end{minipage}%
                               \par\vspace{2em plus0.5ex minus0.15ex}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% subparagrafo
%
%
\def\subparagrafoteksto{\bfseries\raggedright}

\newenvironment{subparagrafo}[2]{\begin{minipage}{\linewidth}%
                                 \def\Tipsigno{}%
                                 %\def\@currentlabel{#2}%
                                 %\label{#2}%
                                 \def\ReferKodo{#2}%
                                 \def\Identigilo{x}%
                                 \def\Nivelo{subsection}%
                                 \def\TekstFormato{\subparagrafoteksto}%
                                }{\end{minipage}%
                                  \par\vspace{2em plus0.5ex minus0.15ex}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% subsubparagrafo
%
%
\def\subsubparagrafoteksto{\bfseries\raggedright}

\newenvironment{subsubparagrafo}[2]{\begin{minipage}{\linewidth}%
                                    \def\Tipsigno{}%
                                    %\def\@currentlabel{#2}%
                                    %\label{#2}%
                                    \def\ReferKodo{#2}%
                                    \def\Identigilo{x}%
                                    \def\Nivelo{subsubsection}%
                                    \def\TekstFormato{\subsubparagrafoteksto}%
                                   }{\end{minipage}%
                                     \par\vspace{2em plus0.5ex minus0.15ex}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% branchtitolo
%
%
\newenvironment{branchtitolo}[2]{\begin{minipage}{\linewidth}%
                                 \def\Tipsigno{}%
                                 %\def\@currentlabel{#2}%
                                 %\label{#2}%
                                 \def\ReferKodo{#2}%
                                 \def\Identigilo{x}%
                                 \def\Nivelo{subsubsection}%
                                 \def\TekstFormato{\subsubparagrafoteksto}%
                                }{\end{minipage}%
                                  \par\vspace{2em plus0.5ex minus0.15ex}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% figuro
%
%
\def\kapo#1#2#3{\textbf{\Tipsigno\Identigilo\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}%
                           %\def\@currentlabel{#2}%
                           \label{#2}%
                           \def\Tipsigno{\FigTipsigno}%
                           \def\ReferKodo{#2}%
                           \def\Identigilo{\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}%
                           %\def\@currentlabel{#2}%
                           \label{#2}%
                           \def\Tipsigno{\TabTipsigno}%
                           \def\ReferKodo{#2}%
                           \def\Identigilo{\arabic{NrTabelo}}%
                           \begin{table*}%
                           \begin{minipage}{\textwidth}\centering%
                           }{\end{minipage}\end{table*}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% \entry{}{}{}
%
%
%% een list-entry (met een gezamenlijke inspringmarge van
%% \entrylabelwidth en een ekstra inspringmarge #1em)
%
\newlength{\entrylabelwidth}
\setlength{\entrylabelwidth}{2em}
\newcommand{\entrylabel}[1]{\mbox{#1}\hfil}
\newcommand{\entry}[4]{%
  \begin{list}{\makebox[\entrylabelwidth]{#2\hfill#3~~}}{%
    \setlength{\topsep}{0ex}%
    \setlength{\partopsep}{0ex}%
    \setlength{\labelsep}{0em}%
    \renewcommand{\makelabel}{\entrylabel}%
    \setlength{\labelwidth}{\entrylabelwidth}%
    \setlength{\leftmargin}{\labelwidth}%
    \addtolength{\leftmargin}{\labelsep}%
    \addtolength{\leftmargin}{1.5em*#1}%
    \setlength{\rightmargin}{0mm}%
   }%
%   \item \setlength{\rightskip}{0pt plus 2cm} #3%
   \item \raggedright #4%
  \end{list}%
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% numero
%
%
\def\NNivelo{0}
\def\numero#1#2#3#4{\def\Tipsigno{}%
                    \def\Identigilo{#3}%
                    \def\@currentlabel{#3}%
                    \label{\ReferKodo}%
                    \def\NNivelo{#1}%
                    \entry{\NNivelo}{}{}{{\TekstFormato#3}}%
                   }
\def\titolnumero#1#2#3#4{\def\Tipsigno{\ParTipsigno}%
                         \def\Identigilo{#3}%
                         \def\@currentlabel{#3}%
                         \label{\ReferKodo}%
                         \def\NNivelo{#1}%
                         \entry{\NNivelo}{}{{\TekstFormato\Tipsigno}}{{\TekstFormato#3}}%
                        }
\def\branchnumero#1#2#3#4{\def\Tipsigno{\ParTipsigno}%
                          \def\Identigilo{#3}%
                          \def\@currentlabel{#3}%
                          \label{\ReferKodo}%
                          \def\NNivelo{#1}%
                          \entry{\NNivelo}{}{{\TekstFormato\Tipsigno}}{{\TekstFormato#3}}%
                         }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% artikolo
%
%
\def\esprimo#1#2#3{\ifthenelse{\equal{\AntauaLingvo}{#1}}%
                              {\entry{\NNivelo}{}{}{#3}}%
                              {\entry{\NNivelo}{}{$\cdot$}{#3}}%
                   \def\AntauaLingvo{#1}%
                   }

%\def\difino#1#2{\textsf{#2}\par}
%\def\ekspliko#1#2#3{\raggedright#3\par}
\def\ekspliko#1#2#3{\entry{\NNivelo}{}{-}{#3}}
\def\rimarko#1#2#3{\entry{\NNivelo}{}{}{Rim.: #3}}
%\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##2##3{}%
\def\esprimkodo##1##2##3{}%
\def\diskuto##1##2##3{}%
\def\dato##1##2##3{}%
\def\autoro##1##2##3{}%
\def\hist##1##2##3{}%
\def\sekretoj##1##2##3{}%
}

\senfoninformoj

\newcounter{NrArtikolo}
\newenvironment{artikolo}[2]{\setlength{\parindent}{0em}%
                             \setlength{\parskip}{0.1ex}%
                             \frenchspacing%
                             \refstepcounter{NrArtikolo}%
                             \begin{minipage}{\linewidth}
                             %\def\@currentlabel{#2}%
                             %\label{#2}%
                             \def\NNivelo{0}%
                             \def\Tipsigno{}%
                             \def\ReferKodo{#2}%
                             \def\Identigilo{x}%
                             \def\AntauaLingvo{x}%
                             \def\TekstFormato{\normalsize}%
                            }{\end{minipage}%
                              \par
                              %\vspace{2em plus0.5ex minus0.15ex}
                              \vspace{\baselineskip}
                             }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% branchkomenco, branchfino
%
%
\newsavebox{\neniigilo}
\newenvironment{branchkomenco}[2]{%
   \def\numero##1##2##3{}\begin{lrbox}{\neniigilo}}{\end{lrbox}%
}
\newenvironment{branchfino}[2]{%
   \def\numero##1##2##3{}\begin{lrbox}{\neniigilo}}{\end{lrbox}%
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% tekstaro
%
%
\def\teksto#1#2#3{\entry{\NNivelo}{}{}{\ifthenelse{\equal{#1}{eo}}%
                                                  {{\sl#3}}%
                                                  {\textbf{#1:}~~{\sl#3}}%
                                      }%
                 }

\newenvironment{tekstaro}[2]{\setlength{\parindent}{0em}%
                             \frenchspacing%
                             \setlength{\parskip}{0.1ex}%
                             \refstepcounter{NrArtikolo}%
                             %\begin{minipage}{\linewidth}
                             %\def\@currentlabel{#2}%
                             %\label{#2}%
                             \def\NNivelo{0}%
                             \def\Tipsigno{}%
                             \def\ReferKodo{#2}%
                             \def\Identigilo{x}%
                             \def\TekstFormato{\normalsize}%
                            }{%\end{minipage}%
                              \par
                              %\vspace{2em plus0.5ex minus0.15ex}
                              \vspace{\baselineskip}
                             }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% gramatikaj difinoj
%
\def\Bvi{\textit{m}} %    vira
\def\Bin{\textit{f}} %    ina
\def\Bko{\textit{u}} %    komuna
\def\Bne{\textit{n}} %    neutrala

\def\Bsi{\textit{s}}  %    singularo
\def\Bpl{\textit{pl}} %    pluralo

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

\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
%
\def\Bc#1{\gg{#1}}   % c   citajho
\def\Bs#1{\g{#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\Baldono#1{\uline{#1}} % aldonita teksto rilate al antaua versio

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% signoj
%
\def\Bekkrisigno{!}  % uzata ene de \indeks{}{}{}
\def\Banstatau{\protect\BBanstatau}  % uzata ene de \indeks{}{}{}
\def\BBanstatau{\ensuremath{\sim}}  % uzata ene de \indeks{}{}{}
\def\Brompstreko{/}  % uzata ene de \indeks{}{}{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% referencoj
%
\def\ArtTipsigno{$\hookrightarrow$}
\def\FigTipsigno{Fig.~}
\def\TabTipsigno{Tab.~}
\def\ParTipsigno{\S}

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

\def\Bviduankau{$\rightarrow$}
\def\Bsamsenca{$=$}
\def\Bnesamsenca{$\neq$}
\def\Bmala{$\Join$}
\def\Bsupera{$\supset$}
\def\Bsuba{$\subset$}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% indeksaj aferoj
%
\makeindex{tmpeo}
\makeindex{tmpen}
\makeindex{tmpcs}
\makeindex{tmpfr}
\makeindex{tmpde}
\makeindex{tmpes}
\makeindex{tmpit}
\makeindex{tmpnl}
\makeindex{tmppl}
\makeindex{tmpru}
\makeindex{tmpsv}

\def\indeksolisto#1#2{\printindex{tmp#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}

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