%%% pagico.sty --- Comandos úteis para o págico
%% Author: albie@alfarrabio.di.uminho.pt

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{pagico}[2012/01/04 Comandos uteis para o pagico]

\usepackage{ifthen}

\newcommand{\topico}[2][]{\ifthenelse{\equal{#1}{}}{}{\textbf{t\'{o}pico #1} }[#2]}

\newenvironment{pagico}[1]{\def\mywikipar{#1}\begin{quote}\it}{
    \par\normalfont\mbox{}\hfill \scriptsize P\'{a}gico: \mywikipar \end{quote}
}

\newcommand{\pagina}[2][]{\textit{#2} (Wikip\'{e}dia\ifthenelse{\equal{#1}{}}{}{, #1})}

\newenvironment{wikipedia}[2][]{\def\mywikipar{#2}
  \ifthenelse{\equal{#1}{}}{\def\mywikiparr{}}{\def\mywikiparr{, #1}}\begin{quote}\it}{
    \par\normalfont\scriptsize\mbox{}\hfill  \mywikipar \\ 
    \mbox{} \hfill Wikip\'{e}dia\mywikiparr \end{quote}
}


%\endinput

%%% Local Variables:
%%% TeX-auto-save: nil
%%% TeX-auto-parse-length: 99999
%%% End:
