
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                                            %%
%%					      %% 
%% 					      %%
%% LaTeX Definitions of Bernardo Galvão-Sousa %%
%%					      %% 
%%          Version 3.0 - Apr 2006            %%
%%					      %%
%%					      %%
%%					      %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%







\NeedsTeXFormat{LaTeX2e}
\message{Estilo sty do Bernardo, versão 4.0 de Quinta-Feira, 4 de Setembro de 2014.}





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%     Import Packages	     %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\RequirePackage{amsmath}
\RequirePackage{amsfonts}
\RequirePackage{amssymb}
\RequirePackage{amsthm}
%\RequirePackage{showkeys}
\RequirePackage{hyperref}
\RequirePackage{mathtools}
\RequirePackage{pdfsync}





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%          Título            %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%	\RequirePackage{pstcol,pst-char}
%	\def\titulo #1{
%		\begin{pspicture}(8.7,2.5)
%		\fontfamily{ptm}\selectfont
%		\pscharpath[fillstyle=solid,linecolor=blue,fillcolor=lightblue,linewidth=2pt]{\fontsize{0.75in}{0.75in} \selectfont  #1}
%		\end{pspicture}
%	}

%	\RequirePackage{pstcol,pst-text,pst-char,ifthen}
%	%%	\DeclareFixedFont{\bigsf}{T1}{phv}{b}{n}{0.5cm}
%	%%	\DeclareFixedFont{\tinyrm}{T1}{cmr}{m}{n}{0.5mm}

%	\newlength{\tamanho}

%	\def\onda #1{
%		\settowidth{\tamanho}{#1}
%		\begin{pspicture}
%		\psset(0,-0.5)(1.5\tamanho,0.2)
%		\pstextpath[c]
%			{\pscurve[linestyle=none](0,-0.25)(.25\tamanho,0)(.6\tamanho,-0.5)(1.5\tamanho,0)}
%			{\color{black} \sc #1}
%		\end{pspicture}}




\newlength{\abstractwidth}
\setlength{\abstractwidth}{0.9\textwidth}
\def\Per {\text{Per}}
\def\abstr #1 #2{\begin{center}\begin{minipage}{\abstractwidth} {\small \begin{center}{\bf Abstract}\end{center} #1 \subparagraph{Keywords} #2} \end{minipage}\end{center}}
\def\keywords {\paragraph{Keywords} }

\def\msc {\paragraph{AMS subject classification} }

\def\ack {\paragraph{Acknowledgements} }

\newcommand{\data}[1]{\framebox{\rightline{\large \bf #1}}}
%\newcommand{\ssubsection}[2]{{\large \bf #1\hspace{0.5cm}#2}\addcontentsline{toc}{subsection}{#2}}

\newcounter{old}
\newcommand{\ssubsection}[2]{
\setcounter{old}{\value{subsection}}
\setcounter{subsection}{#1}
\addtocounter{subsection}{-1}
\subsection{#2}
\setcounter{subsection}{\value{old}}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%  Mathematical Definitions  %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\numberwithin{equation}{section}



\def\C {\mathbb{C}}
\def\R {\mathbb{R}}
\def\Q {\mathbb{Q}}
\def\Z {\mathbb{Z}}
\def\N {\mathbb{N}}
\def\eps {\varepsilon}
\def\bs {\backslash}


\def\loc {\text{loc}}
\def\grad {\nabla}
\def\divf {\text{div }}
\def\mint {\ds -\hspace{-11pt}\int}
\newcommand{\fpar}[2]{\frac{\partial #1}{\partial #2}}
\DeclareMathOperator*{\osc}{osc} 
\DeclareMathOperator*{\esssup}{ess\, sup} 
\DeclareMathOperator*{\essinf}{ess\, inf} 
\DeclareMathOperator{\rank}{rank}
\DeclareMathOperator*{\argmin}{arg\, min} 
\def\supp {\text{supp }}
\def\xto {\xrightarrow}

\def\b #1{\mathbf{#1}}
\def\ul #1{\underline{#1}}
\def\ol #1{\overline{#1}}
\def\dot #1{\overset{.}{#1}}
\def\til{\widetilde}
\def\cha{\widehat}

\def\cali #1{\mathcal{#1}}
\def\frak #1{\mathfrak{#1}}
\def\Leb #1{{\cal L}^{#1}}
\def\Haus #1{{\cal H}^{#1}}
\def\Bor {{\cal B}}
\def\diam {\text{diam }}
\def\Meas {\frak{M}}

\def\restr #1{\lfloor_{#1}}

\def\ssubset {\Subset}
%\def\subset {\subseteq}
\def\ssupset {\Supset}
%\def\supset {\supseteq}
\def\leq {\leqslant}
\def\geq {\geqslant}


%	\def\therefore{. \,^{\cdot} \, . \;}
%	\def\fimdem{\rightline{\vrule height10pt width4pt depth-6pt}}
\def\cqd #1{\rightline{\qed ${\;}_{\text{#1}}$}}
\def\danger{\ensuremath{\displaystyle \triangle \hspace{-5.7pt} \text{\rm\scriptsize !}\; }}


\def\ds {\displaystyle}
\def\ts {\textstyle}




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%    Theorem Environments    %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\renewcommand{\theequation}{\thesection.\arabic{equation}}

%\newtheorem{thm}{Theorem}[section]
%\newtheorem{prop}[thm]{Proposition}
\newtheorem*{thm}{Theorem}
\newtheorem*{prop}{Proposition}
\newtheorem*{lem}{Lemma}
\newtheorem*{cor}{Corollary}

\theoremstyle{definition}
\newtheorem*{defi}{Definition}
\newtheorem*{rem}{Remark}
\newtheorem*{note}{Note}
\newtheorem*{claim}{Claim}
\newtheorem*{ex}{Example}




%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%	Page Setup       %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%


\hfuzz = 2pt % Don't bother to report over-full boxes if over-edge is < 2pt

\textwidth = 17truecm
\textheight = 23truecm
\hoffset = -2.25truecm
\voffset = -2.5truecm

\parindent = 0mm

\renewcommand{\baselinestretch}{1.3}


%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%	Text Superscripts!
%%%%%%%%%%%%%%%%%%%%%%%%%%%


\newcommand{\superscript}[1]{\ensuremath{^{\textrm{#1}}}}
\newcommand{\subscript}[1]{\ensuremath{_{\textrm{#1}}}}
\def\th{{\superscript{th}}}
\def\st{{\superscript{st}}}
\def\nd{{\superscript{nd}}}
\def\rd{{\superscript{rd}}}
