
\documentclass[portuges,a4paper]{article}
\usepackage{babel}
\usepackage[mathletters]{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fancyvrb}
%\usepackage{t1enc}
%\usepackage{jjaulas}
\usepackage{graphicx}
%no #usepackage provided
\RequirePackage[a4paper,top=2cm,left=2cm,right=2cm,bottom=1.5cm,nohead,nofoot]{geometry}
\parindent 0pt
\parskip 3pt
\fvset{fontsize=\small, numbers=left, frame=leftline, numberblanklines=false}

\newcounter{quest}
%\def\theenumi{\alpha{enumi}}
\newenvironment{questao}[2][]{

\def\theenumi{\alph{enumi})}
   \addtocounter{quest}{1}{\bf Quest\~ao \thequest\ (#2)}
 \marginpar{#1}
 }{

\addvspace{2mm}\mbox{}\hrule\mbox{}

}

\newenvironment{exame}[3]{\noindent\fbox{\begin{minipage}{\textwidth}\begin{center}
{\Huge #1 \\ \huge #2 \\ \large #3\\}
\end{center}\end{minipage}} \mbox{}\\}{}

\newcommand{\exametitle}[3]{\noindent\fbox{\begin{minipage}{\textwidth}\begin{center}
{\Huge #1 \\ \huge #2 \\ \large #3\\}
\end{center}\end{minipage}} \mbox{}\\}

\newif\iftth
\begin{document}
\exametitle{Equação quadrática}{Smirnov\mbox{}}{\today}

\iftth
\begin{html}
<div style="float: left; width: 50%;">\end{html}
\fi
\subsection*{Question}
\noindent Resolva a equação: $5\,x^2+10\,x=0$.
\iftth
\begin{html}</div>
<div style="float: right; width: 50%;">
\end{html}
\fi

\iftth
\begin{html}<a href="#" onclick="toggle_visibility('sugestion');" >\end{html}
\fi
\subsection*{Sugestion}
\iftth
\begin{html}</a><div style="display:none;" id="sugestion">\end{html}
\fi
\noindent As raízes de uma equação de grau dois calcula-se utilizando a fórmula:
$$
x_{1,2}=\frac{-b \pm \sqrt{D}}{2a},
$$
onde $D=b^2 -4ac$.
\iftth
\begin{html}</div>\end{html}
\fi

\iftth
\begin{html}<a href="#" onclick="toggle_visibility('resolution');" >\end{html}
\fi
\subsection*{Resolution}
\iftth
\begin{html}</a><div style="display:none;" id="resolution">\end{html}
\fi
\noindent As raízes de uma equação de grau dois calcula-se utilizando a fórmula:
$$
x_{1,2}=\frac{-b \pm \sqrt{D}}{2a},
$$
onde $D=b^2 -4ac$.

\vspace{5mm}

\noindent Discriminante desta equação é:
$$
D = 100.
$$
Portanto, as raízes são:
$$
x_{1}=\frac{-10 + \sqrt{100}}{2\times 5} = 0
\;\;{\rm e}\;\;
x_{2}=\frac{-10 - \sqrt{100}}{2\times 5} = -2.
$$
\iftth
\begin{html}</div>\end{html}
\fi

\iftth
\begin{html}<a href="#" onclick="toggle_visibility('result');" >\end{html}
\fi
\subsection*{Result}
\iftth
\begin{html}</a><div style="display:none;" id="result">\end{html}
\fi
$$
x_{1} = 0,
$$
$$
x_{2} = -2.
$$
\iftth
\begin{html}</div>\end{html}
\fi

\subsection*{Obs}




\iftth
\begin{html}<br><br><br><br></div>\end{html}
\fi


\end{document}
