
% Folha de estilo para provas 
%
%                   A.Fagundes, Mai/97
% -------------------------------------------------------------------
% Folhas de estilo a serem incluidas
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{isolatin1}
\usepackage[brazil]{babel}             % hifenacao, data, etc
\usepackage{graphicx}
\usepackage{pifont}
\usepackage{fancybox}
%
\pagestyle{empty}
%---------------------------------------------------------------------
% Dimensoes: utilizamos o maximo do papel
\setlength{\topmargin}       {0pt}
\setlength{\headheight}      {0pt}
\setlength{\headsep}         {0pt}
\setlength{\evensidemargin}  {0pt}
\setlength{\oddsidemargin}   {0pt}
\setlength{\marginparwidth}  {0pt}
\setlength{\marginparsep}    {0pt}
\setlength{\footskip}        {0pt}
\setlength{\parindent}       {0pt}
%
\setlength{\hoffset}         {-30pt}
\setlength{\voffset}         {0pt}
%
\setlength{\textheight}    {287mm}     % Dimensionamento para papel a4
\setlength{\textwidth}     {170mm}
\setlength{\voffset}       {-10mm}
%
\setlength{\fboxrule}{2pt}             % Caixa de destaque
\setlength{\fboxsep}{2mm}
% ---------------------------------------------------------------------
% Novos Contadores 
\newcounter{QstNo}                     % Numero para as questoes
\newcounter{ItmNo}[QstNo]              % Numero para os itens na questao
\newcounter{SolNo}[QstNo]              % Numero para os itens na solucao
% ----------------------------------------------------------------------
% Novas dimensoes
\newlength{\QstLth}
\newlength{\FigLth}\setlength{\FigLth}{40mm}       % Figura deve caber em 4 cm
\newlength{\Dummy} \setlength{\Dummy} {\textwidth}
\newlength{\ItmInd}\settowidth{\ItmInd}{(2.00)}       % Indentacao para itens
% ----------------------------------------------------------------------
% Novos Fonts
\newfont{\Fonta}{cmss10 scaled 2728}
\newfont{\Fontb}{cmdunh10 scaled 1440}
% Novos comandos
% ---------------  Logo e identificacao
%
\newcommand{\Qm}{\,?\relax}
\newcommand{\Disc}{\parbox[b][0pt][b]{50mm}{\Fonta\quad FMT0458\quad}}
%\newcommand{\Disc}{\parbox[b][0pt][b]{50mm}{\Fonta\quad FAP2293\quad}}
\newcommand{\Logo}{%
   \centerline{\hrulefill}\kern -.5\baselineskip
   \centerline{\hrulefill}\kern -.5\baselineskip
   \centerline{\hrulefill\phantom{\Disc}\hrulefill}\kern -.5\baselineskip
   \centerline{\hrulefill\phantom{\Disc}\hrulefill}\kern -.5\baselineskip
   \centerline{\hrulefill\phantom{\Disc}\hrulefill}\kern -.5\baselineskip
   \centerline{\hrulefill{\hbox{\Disc}}\hrulefill}\kern -.5\baselineskip
   \centerline{\hrulefill}\kern -.5\baselineskip
   \centerline{\hrulefill}\kern -.5\baselineskip
}
% ---------------  Avisos
\newcommand{\Avisos}{}
\newcommand{\Here}{\ding{52}}
\newcommand{\FuLne}{\par\centerline{\rule{\textwidth}{2pt}}\par}
\newcommand{\Hafne}{\par\centerline{\rule{0.5\textwidth}{2pt}}\par}
\newcommand{\Avsa} {Esta prova tem dura\c{c}\~{a}o de 100 minutos.}
\newcommand{\Avsb} {}%\'{E} proibido o uso de calculadoras.}
\newcommand{\Avsc} {Escreva de forma leg\'{\i}vel.}
\newcommand{\Avsd} {Resolva cada quest\~{a}o em sua folha pr\'{o}pria.}
\newcommand{\Avse} {Justifique as fórmulas utilizadas que não constam
                    do formulário.}
\newcommand{\Avsf} {Ap\'{o}s 60 min, a compreens\~{a}o
                     do enunciado passa a fazer parte da quest\~{a}o.}

\newcommand{\Prova}[2]{%
 \par
 \begin{minipage}[c]{0.45\textwidth}
   \vspace{0pt}
   \Logo
 \end{minipage}\hfill%
 \begin{minipage}[c]{0.45\textwidth}
   \centerline{\large\sf\rule{0pt}{1.1em} #2\hfill%
               \framebox[3\totalheight]{\Fonta P\,\raisebox{-0.2em}{#1B}}}
   \centerline{\Fontb\rule{0pt}{1.3em}%
                    Complementos de Mec\^{a}nica  Cl\'{a}ssica}
 %               F\'{\i}sica--\raisebox{-.3em}{3} para Engenharia Elétrica}
%             F\'{\i}sica--\raisebox{-.3em}{4} para Engenharia Elétrica}
 \end{minipage}
 \par\mbox{}
%
  \renewcommand{\Avisos}{%
    \Hafne
    \begin{tabular}{@{\Here\,}p{75mm}@{\hspace{3pt}}@{\Here\,}p{75mm}}
       \Avsa   &  \Avsb\\
       \Avsc   &  \Avsd\\
       \Avse   &  \Avsf
    \end{tabular}
    \Hafne
    }
}

\newcommand{\Gabarito}[2]{%
 \begin{minipage}[c]{0.45\textwidth}
   \vspace{0pt}
   \Logo
 \end{minipage}\hfill%
 \begin{minipage}[c]{0.45\textwidth}
   \centerline{\large\sf\rule{0pt}{1.1em} #2\hfill%
               \framebox[3\totalheight]{\Fonta P\,\raisebox{-0.2em}{#1}}}
   \centerline{\Fontb\rule{0pt}{1.3em}%
 }
 %                Licenciatura}
 %          F\'{\i}sica--\raisebox{-.3em}{3} para a Escola Polit\'{e}cnica}
%            F\'{\i}sica--\raisebox{-.3em}{4} para Engenharia Elétrica}
 \end{minipage}
 \par\mbox{}
%
  \renewcommand{\Avisos}{%
%    \Hafne
    \begin{center}
    {\Large \textbf{Solu\c{c}\~oes}}
    \end{center}
%    \Hafne
    }
  \Avisos\
}


% --------------- Environments de questoes
\newcommand{\QstFnt}{\fontsize{17}{17pt}\sffamily\selectfont} % font para numerar questao
\newcommand{\QstNum}{\makebox[0pt][r]{\mbox{}\stepcounter{QstNo}\QstFnt\theQstNo--\,}}
\newcommand{\FigSpc}{\rule{0pt}{\FigLth}\hspace{\FigLth}}
\newcommand{\FigNam}{}
\newcommand{\Itm}[2]{\par\hangindent=\ItmInd\hangafter=1%
                      \stepcounter{ItmNo}{\sf{\bf\alph{ItmNo}}.\makebox[\ItmInd][r]{(#1)}}%
                      \ignorespaces\,#2}
% ---------------------------------------------------------------------
% Environment para questoes

\newenvironment{QstsFig}[2][\textwidth]{%          % Parametros: Largura e enunciado.
  \setlength{\QstLth}{#1}
  \begin{minipage}[t]{\QstLth}
  \QstNum\ignorespaces%
  \normalfont\ignorespaces
}{%
 \end{minipage}%                                    
 \par\vspace*{\baselineskip}                             % separacao com a proxima questao
}
%  ===================================================
\newenvironment{QstcFig}[2][\textwidth]{%          % Parametros: Largura e enunciado.
 \renewcommand{\FigNam}{#2}
 \setlength{\QstLth}{#1}
   \addtolength{\QstLth}{-\FigLth}
   \addtolength{\QstLth}{-2em}
   \addtolength{\FigLth}{1em}
   \begin{minipage}[t]{\QstLth}
    \QstNum\ignorespaces%
    \normalfont\ignorespaces%
}{%
    \end{minipage}\hspace{\fill}%
    \ignorespaces
    \begin{minipage}[t]{\FigLth}
      \vspace{-0.5\baselineskip}\hspace{\fill}
      \includegraphics[width=40mm]{\FigNam}\\
      \centerline{Quest\~{a}o \theQstNo}
    \end{minipage}%
 \par\vspace*{\baselineskip}                             % separacao com a proxima questao
}

\newcommand{\Dest}[1]{% Destacamos solucao final
\hspace{\fill}$\Longrightarrow$\nobreak\fbox{$#1$}\par%
}
% Environment para questoes

\newenvironment{SolsFig}[1][\textwidth]{%          % Environment para solucoes sem figura.
  \par
  \setlength{\QstLth}{#1}
  \addtolength{\QstLth}{-4em}
  \setlength{\arrayrulewidth}{2pt}
  \begin{tabular}{l|l}
    \begin{minipage}[c]{5pt}
      \QstNum
    \end{minipage} & %
    \normalfont\ignorespaces
    \begin{minipage}[c]{\QstLth}
}{%
    \end{minipage}                                   
  \end{tabular}                            % separacao com a proxima questao
  \vspace{5mm}
}
\newcommand{\Isl}[2]{\par\hangindent=\ItmInd\hangafter=1%
   \stepcounter{ItmNo}{\sf{\bf\alph{ItmNo}}.\makebox[\ItmInd][r]{(#1)}}% 
    \ignorespaces\,#2}

\newcommand{\NomPrvLab}{%                   % Caixa para Nome Prova de Lab
 \Ovalbox{\raisebox{16pt}{\textbf{\textsf{Nome:}}}%
      \rule{60mm}{0pt}\rule{0pt}{8mm}}\rule{2pt}{0pt}%
 \Ovalbox{\raisebox{16pt}{\textbf{\textsf{N$^o$USP:}}}%
      \rule{15mm}{0pt}\rule{0pt}{8mm}}\rule{2pt}{0pt}% 
 \Ovalbox{\raisebox{16pt}{\textbf{\textsf{Turma LAB:}}}%
      \rule{2mm}{0pt}\rule{0pt}{8mm}}%
 \rule{5mm}{0pt}
 \raisebox{-20pt}{%
 \Ovalbox{\rule{20mm}{0pt}\rule{0pt}{20mm}}}%
\par\rule{0pt}{5pt}\par
}

\endinput
%%
%% End of prv.sty









