%
% Dimensioni della pagina
\textwidth=17cm
\oddsidemargin=-1in\advance\oddsidemargin by 2.5cm
\evensidemargin=-1in\advance\evensidemargin by 1.5cm

% Scritta IPISA '96
%
\def\ipisa{IPISA~'96}

%
% Eliminiamo il numero di capitolo dalle figure
%
\makeatletter\renewcommand{\thefigure}{\@arabic\c@figure}\makeatother
%\renewcommand{\thefootnote}{\text{\arabic{footnote}}}

\newcommand{\titolo}{\Large\bfseries}
\newcommand{\parfont}{\large\bfseries}
\newcommand{\indice}{\bfseries}
\newcommand{\indicefont}{\rm}
\newcommand{\piccolo}{\small\ttfamily}
\newcommand{\moltopiccolo}{\footnotesize\ttfamily}
\newcommand{\autorefont}{\rm}
\newcommand{\tablefont}{\small}
\newcommand{\az}{}
\newcommand{\prm}{\small\rm}

% TeX ha il permesso di debordare di questo
% numero di punti nel caso la formattazione
% di un paragrafo non gli riesca.
%
\setlength{\emergencystretch}{3pt}

% Con questi parametri forziamo il massimo di divisione
% delle parole, e accettiamo Underfull boxes a piene mani.
%
\pretolerance=-1
\hyphenpenalty=0
\tolerance=6000
\hbadness=9000
\vbadness=9000
\doublehyphendemerits=0
\finalhyphendemerits=0
\widowpenalty=10000
\clubpenalty=10000

% L'apostrofo viene trattato come lettera
\lccode`\'=39
\uccode`\'=39

% Dimensione carattere per centrare i verbatim
\newlength{\charwidth}

%
% \autore{nome autore}{testo a spaziatura fissa, es. e-mail}
%
\newcommand{\autore}[2]{%
{{\protect\par\bigskip\noindent{\obeylines\autorefont#1}\par\medskip}}
{{\protect\noindent\piccolo#2}}}


%
% clamorosamente copiato dal LaTeX companion, ma
% per ora non funziona...
%
%\newenvironment{Ventry}[1]%
%{\begin{list}{}{\renewcommand{\makelabel}[1]{\textsf{##1:}\hfil}%
%\settowidth{\labelwidth}{\textsf{#1:}}%
%\setlength{\leftmargin}{\labelwidth+\labelsep}}}%
%{\end{list}}

\newcommand{\entrylabel}[1]{\mbox{\textsf{#1:}}\hfil}%
\newenvironment{entry}%
   {\begin{list}{}%
      {\renewcommand{\makelabel}{\entrylabel}%
        \setlength{\labelwidth}{35pt}%
        \setlength{\leftmargin}{\labelwidth+\labelsep}%
      }%
   }%
   {\end{list}}

\def\commento#1{{\indice #1}}%

\newenvironment{codestyle}{\begingroup\small\begin{alltt}}{\end{alltt}\endgroup}
\newenvironment{tinycodestyle}{\begingroup\tiny\begin{alltt}}{\end{alltt}\endgroup}
\newenvironment{smallcodestyle}{\begingroup\footnotesize\begin{alltt}}{\end{alltt}\endgroup}
\newenvironment{tabstyle}{\begin{figure}\tablefont\parindent 0pt \begin{center}}{\end{center}\end{figure}}

%
% \articolo{<titolo>}{<nome autore>}
%
\newcommand{\articolo}[2]{\setcounter{figure}{0}\bigbreak
 \vbox{\noindent\hrule height 2pt\section*{#1}\medskip
 {\noindent\it #2}}\par\noindent\typeout{ Articolo:\space #1}%
 \markboth{\upshape\bfseries \ipisa:\space\space {\rm #1}}{\upshape\bfseries \ipisa:\space\space {\rm #1}}%
 \addcontentsline{toc}{section}{{\indice #1}}%
 \addtocontents{toc}{\protect\hskip 1cm{\indicefont #2}\vskip0.2cm}%
 }%


% paragrafo: definisce un nuovo titolo all'interno di un articolo
% prende come solo argomento il titolo
%
% esempio: \paragrafo{Titolo}
%
\newcommand{\paragrafo}[1]{\subsection*{#1}}

% sottoparagrafo: definisce un nuovo sottoparagrafo all'interno di un articolo
% prende come solo argomento il titolo, identico a paragrafo
%
\newcommand{\sottoparagrafo}[1]{\subsubsection*{#1}}

\widowpenalty=10000     % togliamo le vedove
\clubpenalty=10000      % e gli orfani

% le seguenti definizioni sono usate nell'articolo di Ghib\`o
\renewcommand\c[1]{{\small\texttt{#1}}} % porzioni di codice
\newcommand\code[1]{\c{#1}}             % porzioni di codice
\newcommand{\f}[1]{{\small\texttt{#1}}} % file
\newcommand{\cf}[1]{{\footnotesize\texttt{#1}}} % come \c ma per le footnote.
\newcommand{\p}[1]{{\small\texttt{#1}}} % programmi
\newcommand{\g}[1]{``#1''}              % gadget
\newcommand{\ped}[1]{\ifmmode_{\rm #1}\else$_{\rm #1}$\fi} % pedici in tondo
\newcommand{\TM}{$^{\rm TM}$}                              % TradeMark
\newcommand{\unit}[1]{{\rm\,#1}}        % unita` di misura
\newcommand{\spath}[1]{{\small\path|#1|}} % per i path lunghi
\newcommand{\A}{\protect\textrm{\textsl{AMIGA}}\xspace}
\newcommand{\web}{\p{WEB}}
\newcommand{\webtoc}{\p{web2c}}
\newcommand{\dvips}{\p{dvips}}
\newcommand{\evpaths}{EVPaths}
\newcommand{\showdvi}{Show\-DVI}
\newcommand{\dviprint}{DVI\-Print} 
\newcommand{\shost}{Special\-Host}
\newcommand{\AL}{AudioLab16\xspace}

%
% Comando per citazioni IN INGLESE: testo e autore
%
\newcommand{\citazione}[2]{%
\bigskip
{
%\vbox{
\small
\begin{flushright}
\selectlanguage{english}%
{\em#1}\par
\def\argautore{#2}
\ifx\empty\argautore\relax\else{\smallskip#2}\fi
\end{flushright}
%}
}}

%
% Comando per citazioni IN ITALIANO: testo e autore
%
\newcommand{\citazioneit}[2]{%
\bigskip
{
%\vbox{  
\small
\begin{flushright}
{\em#1}\par  
\def\argautore{#2}
\ifx\empty\argautore\relax\else{\smallskip#2}\fi
\end{flushright}
%}
}}

%
% Per spezzare
%
\newcommand{¦}{\discretionary{}{}{}}
