% \usepackage[a4paper,twosideshift=-15mm,left=40mm,right=40mm,bottom=20mm,top=65mm]{geometry}
% %\usepackage[a4paper,twosideshift=0mm,left=30mm,right=30mm,bottom=30mm,top=25mm]{geometry}

\usepackage{graphicx}

\newcounter{exam}
\raggedbottom
\newenvironment{com}{\begin{footnotesize} Notas:\begin{description}}{\end{description}\end{footnotesize}}
\def\linha#1{\item[linha #1] -}
%\newenvironment{exemplo}[1]{\addtocounter{exam}{1}\begin{list}{}{
\newenvironment{exemplo}[1]{~\\*[-1ex]
\protect{\makebox[0mm][l]{\hspace{1mm}\raisebox{-6.5mm}[0pt][0pt]{\rule{.2pt}{5mm}}\raisebox{-1.5mm}[0pt][0pt]{\rule{4cm}{.2pt}}
}\refstepcounter{exam}\textbf{Exemplo \theexam:} #1} %% \\*[-1ex]
\begin{list}{}{
 \itemindent  1.2em
 \leftmargin  1em
 \rightmargin 1em
 \listparindent 0.5em
 \parsep 2pt %%%
}\item 

}{\end{list} %% ~\\*[-1ex] 
\mbox{}\hspace{1mm}\raisebox{1ex}[0pt][1ex]{\rule{.2pt}{5mm}\rule{4cm}{.2pt}}

\smallskip }
%%}\item[Exemplo \theexam: #1]\mbox{}\\}{\end{list}
%%}\item[Exemplo \theexam: #1]\mbox{}\\}{\mbox{}\\*------------------\end{list} }

\newcounter{theref}
\def\addthe#1#2{}  % add entry to the thesaurus file
\def\tindex#1{\refstepcounter{theref}\typeout{THESAURUS{#1}{\thetheref}}\label{THESAURUS:\thetheref}}

\def\exref#1{\ref{#1}, pg.\pageref{#1}}

%figuras...---------------------------------------------

\def\figtex#1#2{\begin{figure}[htbp]
\begin{center}
\input{#1}
\caption{#2}
\end{center}
\end{figure}   
}

\def\figtexl#1#2#3{\begin{figure}[htbp]
\begin{center}
\input{#1}
\caption{#2\label{#3}}
\end{center}
\end{figure}   
}

%\def\jjeps#1#2{
%\epsfxsize=#2\hsize
%\epsfbox{#1}
%}

\def\jjeps#1#2{
\includegraphics[width=0.7\hsize]{#1}
}


\def\jjfig2eps#1#2#3#4{\begin{figure}[htb]
\begin{center}
\jjeps{#1}{#4}
\caption{#2\label{#3}}
\end{center}
\end{figure}   
}

\def\jjfigeps#1#2#3#4{\begin{figure}[htbp]
\begin{center}
\jjeps{#1}{#4}
\caption{#2\label{#3}}
\end{center}
\end{figure}   
}

\def\jjffigeps#1#2#3#4{\begin{figure}[htbp]
\begin{center}
%\epsfxsize=#4\hsize
\fbox{\jjeps{#1}{#4}}
\caption{#2\label{#3}}
\end{center}
\end{figure}   
}

%-----------

%\marginparwidth 48pt
%\marginparsep 10pt
\parskip 6pt
%\parskip 2pt
\parindent 1em

%\setcounter{secnumdepth}{2}
%\setcounter{tocdepth}{3}


\def\too#1{{\tt #1}}
\def\s#1{{\sc #1}}
\def\eng#1{\emph{#1}}
\def\beginIng{}
\def\endIng{}
\def\moral#1{\vskip .1cm \begin{center}\fbox{\begin{minipage}{0.9\columnwidth}
 #1\end{minipage}}\end{center}\vskip .1cm }
%\def\falta#1{
%\fbox{Falta #1}\marginpar{:-(}}
\def\falta#1{\fbox{\begin{minipage}{0.9\columnwidth}
 \textbf{Falta} #1\end{minipage}}\marginpar{:-(}
}
\def\caixa#1{ \vskip .1cm \fbox{\begin{minipage}{0.95\columnwidth}#1\end{minipage}}\vskip .1cm }

\def\pensar#1{\vskip .1cm \begin{center}\begin{minipage}{0.8\columnwidth}
Para pensar \hfill {\footnotesize Quando me reformar?...}\\ #1\end{minipage}\end{center}\vskip .2cm }
\def\fcite#1{\cite[#1?]{#1}}
\def\prh#1{\marginpar{[prh:#1]}(***)}
\def\co#1{{\tt #1}}
\def\yalg{YaLG}

\def\pln{processamento de linguagem natural}
\def\ln{linguagem natural}
\def\open{\eng{open source}}
\def\FS{FS}
\def\tfs{\eng{typed feature structure}}
\def\fs{\eng{feature structure}}
\def\dsl{\eng{domain specific language}}
\def\camila{\s{Camila}}
\def\camtex{Cam\TeX{}}
\def\EF{EF}
\def\ef{estrutura de facetas}
\def\etf{estrutura tipada de facetas}
\def\ispell{\too{ISpell}}
\def\jspell{\too{jspell}}
\def\kspell{\too{kspell}}
\def\nllex{\too{nllex}}
\def\ems{\s{ems}}
\def\mktextrr{\s{mktextrr}}
\def\library{\s{Library::*}}
\def\texttrans{\s{text::translate}}
\def\xmldt{\s{xml::dt}}
\def\ddmf{\s{ddmf}}
\def\dpl{\s{dpl}}
\def\dac{dicionário aberto de calão}
\def\aea{{\footnotesize (anarco-)}enciclopédia do Alfarrábio}
\def\wmboi{\textsc{wmboi}}
\def\dicttex{Dict\TeX}
\def\ptc{\s{Ptc}}

\def\jjff#1#2{#1 \rightharpoonup #2}
\def\jjset#1{ set(#1) }
\def\jjseq#1{ #1^* }
\def\jjprod#1#2{#1 \times #2}
\def\jjalt#1#2{#1 + #2}
\def\jjfunc#1#2{#1 \rightarrow #2}
%\def\jjany{any}
%\def\jjnil{\perp}
\def\jjnil{\mbox{\textbf{1}}}
\def\jjany{\mbox{\textbf{any}}}

%---- alteracoes ao camila.mac ----------------------

\def\traco{\addvspace{3mm}}
\def\SORTS{}
%\def\INV#1{inv (#1)}
\def\OPERS{\addvspace{1mm}}
\def\cong{=}
%\def\SORTS{\esp\mbox{}\hrulefill\mbox{} \\*}
%\def\OPERS{\esp\mbox{}\hrulefill\mbox{} \\*}
\def\set#1{set(#1)}
\def\STATE#1#2{
 \addvspace{1mm}
 \mbox{\textbf{State} } $#1:#2$ 

}

%---- alteracoes `as listas do latex

%% %\def\@listI{\leftmargin\leftmargini
%% %            \parsep 0\p@ \@plus1\p@ \@minus\p@
%% %            \topsep 8\p@ \@plus2\p@ \@minus4\p@
%% %            \itemsep0\p@}
%% \def\@listI{\leftmargin\leftmargini
            %% \parsep 0\p@ \@plus1\p@ \@minus\p@
            %% \topsep 0\p@ \@plus2\p@ \@minus4\p@
            %% \itemsep0\p@}
%% \let\@listi\@listI
%% \@listi
%% \def\@listii {\leftmargin\leftmarginii
              %% \labelwidth\leftmarginii
              %% \advance\labelwidth-\labelsep
              %% \topsep    0\p@ \@plus2\p@ \@minus\p@}
%% \def\@listiii{\leftmargin\leftmarginiii
              %% \labelwidth\leftmarginiii
              %% \advance\labelwidth-\labelsep
              %% \topsep    0\p@ \@plus\p@\@minus\p@
              %% \parsep    \z@
              %% \partopsep \p@ \@plus\z@ \@minus\p@}
%% 
%% \renewcommand\labelitemi{\normalfont\bfseries --}
%% \renewcommand\labelitemii{$\m@th\bullet$}     
%% 
%% \def\subitem{\par\setbox0=\hbox{--\enspace}% second order
                %% \noindent\hangindent\wd0\box0}% index entry
%% 
%% \def\subsubitem{\par\setbox0=\hbox{--\,--\enspace}% third
                %% \noindent\hangindent\wd0\box0}% order index entry
                                                                      
%-------------

%% \usepackage{fancyhdr}
%% \pagestyle{fancy}
%% \fancyhead[LE,RO]{\thepage}
%% \fancyfoot[R,L]{}
%% %%\fancyfoot[C]{\today}
%% \fancyfoot[C]{}
%% \renewcommand{\chaptermark}[1]{\markboth{ \thechapter.\ #1}{}}
%% \renewcommand{\sectionmark}[1]{\markright{ \thesection.\ #1}}
%% %\rhead{\nouppercase{\rightmark}}
%% %\lhead{\nouppercase{\leftmark}}
%% \fancyhead[LO]{\nouppercase{\rightmark}}
%% \fancyhead[RE]{\nouppercase{\leftmark}}
%% %\fancyhead[RE,LO]{}      

%---------------

\newenvironment{dictionary}{%
\baselineskip 11pt
\small
\fontsize{9pt}{11pt}
\parskip 0pt
\begin{list}{}{
 \leftmargini 6mm
 \leftmarginii 6mm
 \leftmarginiii 6mm
 \topsep 0pt 
 \itemsep 0mm
 \itemindent -4mm
 \parsep 0pt
 \leftmargin 6mm 
 % \listparindent 30mm
  \labelwidth 0pt 
}
}{\end{list}}
%% \newenvironment{dictionary}{%
%% \fontsize{9pt}{10pt}
%% \parskip 0pt

%% \list{}{%%\leftmargin .5em
%%       \leftmargini .4em
%%       \leftmarginii .4em
%%       \leftmarginiii .4em
%% %      \labelsep 0em
%% %                 \itemindent  0.5em%
%% %                 \itemindent  -1.2em%
%%       \listparindent 0em
%%       \parsep 0pt
%%       \parindent 10pt
%%       } }{\endlist
%% }

\newcommand{\term}[2]{%
 \item \textbf{#1} \index{\number\ctermos:#1}\dicthead{\number\ctermos}
      {\small #2 }
  \global\advance\ctermos by1
}

%\newenvironment{myquote}{\begin{flushright}\sf\it }{ \end{flushright}}
\newenvironment{myquote}{\mbox{} \hfill \begin{minipage}[t]{10cm}
   \begin{flushright}\sf\it }{\end{flushright}\end{minipage}\\[1cm]}

%\def\myquote#1#2{ \ \\[1cm] \mbox{} \hfill \begin{minipage}[t]{10cm}
%                    \small {\it #1} \\[.5cm] \mbox{} \hfill  #2
%                  \end{minipage}\\[2cm]
%               }

