% ppgmap.sty -- 15 de marco de 2000 % % Modificacao do cpgcc.sty para o PPGMAp (RDC) % *** MESTRADO *** % % Style options para dissertacao de mestrado, % trabalho individual e relatorios de atividades do CPGCC-UFRGS % Modified from german.sty, rep12.sty, doublespace.sty, latex.tex by % Benhur Stein % Marcos Luz % Paulo Fernandes % % Uso: % \documentstyle[mestrado]{report} % \title{Modelo de Disserta\c c\~ ao de Mestrado} % \author{Jos\' e da}{Silva} % \advisor{Prof. Dr.}{Pedro}{Almondegar}{Orientador} % \coadvisor{Profa. Dra.}{Maria das Gra\c cas}{Souza}{Co-orientadora} % \date{Janeiro}{1999} % \areas{Matem\' atica Aplicada} % \keywords{Modelo, Disserta\c c\~ ao} % % linhas abaixo apenas para Trabalho Individiual \ti ou % % Relatorio de Atividades \relativ % %\ti{numero}{ordem, em romano} % %\relativ{mes}{ano} % \begin{document} % \maketitle % \agradecimento{Agradecimento} % Agrade\c co a todos os que tornaram .. % \begin{singlespace} % \tableofcontents % \listoffigures % \listoftables % \resumo{Lista de Abreviaturas} % \begin{tabular}{ll} % $\Psi$ & press\~ ao\\ % $||\,u\,||_{2}$ & norma-$l_{2}$ % \end{tabular} % \end{singlespace} % \resumo{Resumo} % Este trabalho descreve ... % \resumo{Abstract} % This work ... % \chapter{Introdu\c{c}\~{a}o} % \section{Primeira se\c c\~ ao} % \section{Segunda se\c c\~ ao} % \subsection{Primeira subse\c c\~ ao} % \subsubsection{Primeira subsubse\c c\~ ao} % \appendix % \chapter{Primeiro anexo} % \chapter{Segundo anexo} % \begin{thebibliography}{WWW99m} % \bibitem[ACA90]{aca} ACADAR, Jorge C. % {\bf Interesting things about E Model.} % Pergamon Press, 1990. % \end{thebibliography} % \end{document} % % O comando coadvisor e' opcional. % Os comandos areas, keywords, alem de agradecimento e % oferecimento sao exclusivos de dissertacoes. % O comando ti e' para trabalhos individuais somente. % O comando relativ serve para relatorios de atividades e seus % parametros sao mes e ano de inicio das atividades. % % Esta e uma versao inicial, certamente incompleta. % Qualquer coisa que nao funcione, a culpa e' nossa. % Sugestoes, reclamacoes, etc sao bem vindas. % \newcounter{pags} \message{Document Style Option `PPGMAp' Version 1.0 (15 March 2000)} \message{Dissertacao de Mestrado} % letras sao 12 pt %\input rep12.sty % \today em portugues \def\@month{\ifcase\month\or janeiro\or fevereiro\or mar\c{c}o\or abril\or maio\or junho\or julho\or agosto\or setembro\or outubro\or novembro\or dezembro\fi} \def\@year{\number\year} \def\today{\number\day\space de \@month \space de \number\year% } % Nome das 'captions' \def\refname{Refer\^encias}% \def\abstractname{Resumo}% \def\bibname{REFER\^ENCIAS}% \def\chaptername{Cap\'{\i}tulo}% \def\appendixname{AP\^ENDICE}% \def\contentsname{SUM\'ARIO}% \def\listfigurename{LISTA DE FIGURAS}% \def\listtablename{LISTA DE TABELAS}% \def\indexname{\'Indice}% \def\figurename{Figura}% \def\tablename{Tabela}% \def\partname{Parte}% \def\enclname{encl}% \def\ccname{C\'opia para}% \def\headtoname{Para}% \def\pagename{P\'agina} % Formato A4; pagina a 2cm do topo; texto a 4cm do topo % margens laterais de 3cm; margem inferior de 2,5cm \oddsidemargin 4.6mm \evensidemargin 4.6mm \topmargin -1.54cm \headheight 1cm \headsep 2cm \footskip 30pt \textheight = 222mm \textwidth 150mm % espaco para entradas no sumario \newlength{\tabcap} \newlength{\tabsec} \newlength{\tabsub} \newlength{\tabsubsub} \newlength{\tabfig} \newlength{\tabtab} \addtocontents{toc}{ \settowidth\tabcap{\bf 9\rm 99} \settowidth\tabsec{\bf 9.9\rm 99} \settowidth\tabsub{9.9.999}} \settowidth\tabsubsub{9.9.9.999} \addtocontents{lof}{\settowidth\tabfig{\figurename~9.999}} \addtocontents{lot}{\settowidth\tabtab{\tablename~9.999}} \def\@pnumwidth{1.9em} % espaco para o numero da pagina % subsubsecoes devem aparecer \setcounter{secnumdepth}{3}% numeradas no texto \setcounter{tocdepth}{3}% no sumario % impressao de capitulos no texto -- com numero (\chapter) \def\@makechapterhead#1{{\parindent 0pt \singlespace \raggedright \Large \bf \@hangfrom {\uppercase{\@anexo \thechapter~~~~}}\uppercase {#1}\par \nobreak \vskip \baselineskip} } % impressao de capitulos no texto -- sem numero (\chapter*) \def\@makeschapterhead#1{ { \parindent 0pt \centerline {\Large \uppercase{\bf #1}}\par \nobreak \vskip \baselineskip} } % definicao de secao, subsecao, subsubsecao % definicao de secao, subsecao, subsubsecao %\def\section{\@startsection{section}{1}{\z@}{3ex}{2ex} %%\z@ \def\section{\@startsection{section}{1}{\z@}{3ex}{2ex} %%\z@ {\large\raggedright\bf}} \def\subsection{\@startsection{subsection}{2}{\z@}{3ex}{2ex} {\large \raggedright\singlespace \bf}} \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{3ex}{2ex} {\it \raggedright\singlespace}} % definicao de capitulo \def\chapter{\clearpage \global\@topnum\z@ %\@startsection{chapter}{0}{\z@}{3ex}{2ex}{\Large\bf \singlespace\uppercase}} \secdef\@chapter\@schapter} \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne \refstepcounter{chapter} \addcontentsline{toc}{chapter}{\vskip 1.0em plus 1pt\protect\@dottedtocline{1}{0em}{\tabcap}{\uppercase{{\bf \numberline{\@anexo\thechapter}#1}}}}\else \addcontentsline{toc}{chapter}{#1}\fi \chaptermark{#1} \if@twocolumn \@topnewpage[\@makechapterhead{#2}] \else \@makechapterhead{#2} \@afterheading \fi} % definicao de chapter* \def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}] \else \@makeschapterhead{#1} \@afterheading\fi} \def\resumo#1{\clearpage \global\@topnum\z@ \@makeschapterhead{#1} \addcontentsline{toc}{chapter}{\protect\@dottedtocline{1}{0em}{0em}{\uppercase{{\bf #1}}}} \@afterheading} \def\agradecimento#1{\clearpage \global\@topnum\z@ \@makeschapterhead{#1} \@afterheading} \def\thebibliography#1{\chapter*{\uppercase{\bibname}\@mkboth {\uppercase{\bibname}}{\uppercase{\bibname}}}\list {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth \advance\leftmargin\labelsep \advance\leftmargin 2em \advance\labelsep 2em \usecounter{enumi}} \def\newblock{\hskip .11em plus .33em minus .07em} \sloppy\clubpenalty4000\widowpenalty4000 \sfcode`\.=1000\relax\addcontentsline{toc}{chapter}{\protect\@dottedtocline{1}{0em}{0em}{\uppercase{{\bf\bibname}}}}} \let\endthebibliography=\endlist \def\@lbibitem[#1]#2{\item[\@biblabel{#1}]\hspace*{-2em}\if@filesw { \def\protect##1{\string ##1\space}\immediate \write\@auxout{\string\bibcite{#2}{#1}}}\fi\ignorespaces} \def\@anexo{} % inicio de anexos -- seta as dimensoes do sumario para conter 'A-' \def\appendix{\par \setcounter{chapter}{0} \setcounter{section}{0} \def\@chapapp{\appendixname} \addtocontents{toc}{ \settowidth\tabcap{\uppercase{\bf\appendixname~A-9\rm 99}} \settowidth\tabsec{\bf A-9} %.9\rm 99} \settowidth\tabsub{A-9.9.999} \settowidth\tabsubsub{A-9.9.9.999}} \addtocontents{lof}{\settowidth\tabfig{\figurename~A-9.999}} \addtocontents{lot}{\settowidth\tabtab{\tablename~A-9.999}} \def\@anexo{\appendixname~} \def\thechapter{\Alph{chapter}}} %-\arabic{chapter}}}} \def\ps@headings{\let\@mkboth\markboth \def\@oddfoot{}\def\@evenfoot{}\def\@oddhead{\hfill \rm\normalsize\thepage\hfill}\def\chaptermark##1{\markright {\uppercase{\ifnum \c@secnumdepth >\m@ne \@chapapp\ \thechapter. \ \fi ##1}}}} % captions \long\def\@caption#1[#2]#3{\par\addcontentsline{\csname ext@#1\endcsname}{#1}{\protect\numberline{\csname #1name\endcsname~\csname the#1\endcsname}{\ignorespaces #2}}\begingroup \@parboxrestore \normalsize \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par \endgroup} % escreve captions \long\def\@makecaption#1#2{ \vskip 10pt \setbox\@tempboxa\hbox{#1: #2} \ifdim \wd\@tempboxa >\hsize \@hangfrom{#1: }#2\par \else \hbox to\hsize{\hfil\box\@tempboxa\hfil} \fi} % entradas de capitulo, secao, subsecao e subsubsecao no sumario \def\l@chapter#1#2{#1{{\bf #2}}} \def\l@section#1{\@dottedtocline{1}{0em}{\tabsec}{{\bf #1}}} \def\l@subsection{\@dottedtocline{1}{0em}{\tabsub}} \def\l@subsubsection{\@dottedtocline{1}{0em}{\tabsubsub}} % entradas na lista de figuras e lista de tabelas \def\l@figure#1{\@dottedtocline{1}{0em}{\tabfig}{#1}} \def\l@table#1{\@dottedtocline{1}{0em}{\tabtab}{#1}} % sumario, lista de figuras, lista de tabelas \def\tableofcontents{\chapter*{\contentsname}\@starttoc{toc}} \def\listoffigures{\chapter*{\listfigurename}\addcontentsline{toc}{chapter}{\protect\@dottedtocline{1}{0em}{0em}{\uppercase{{\bf\listfigurename}}}}\@starttoc{lof}} \def\listoftables{\chapter*{\listtablename}\addcontentsline{toc}{chapter}{\protect\@dottedtocline{1}{0em}{0em}{\uppercase{{\bf\listtablename}}}}\@starttoc{lot}} \def\fnum@figure{\figurename~\thefigure} \def\fnum@table{\tablename~\thetable} % definicoes para capa e quadradinho na fonte \gdef\@advisorf{} \gdef\@advisorl{} \gdef\@advisort{} \gdef\@advisorc{} \def\advisor#1#2#3#4{\gdef\@advisort{#1}\gdef\@advisorf{#2}\gdef\@advisorl{#3}\gdef\@advisorc{#4}} \def\coadvisor#1#2#3#4{\gdef\@coadvisort{#1}\gdef\@coadvisorf{#2}\gdef\@coadvisorl{#3}\gdef\@coadvisorc{#4}} \def\advisorf \gdef\@examinadora{} \gdef\@insta{} \gdef\@examinadorb{} \gdef\@instb{} \gdef\@examinadorc{} \gdef\@instc{} \def\examinadora#1#2{\gdef\@examinadora{#1}\gdef\@insta{#2}} \def\examinadorb#1#2{\gdef\@examinadorb{#1}\gdef\@instb{#2}} \def\examinadorc#1#2{\gdef\@examinadorc{#1}\gdef\@instc{#2}} \gdef\@lpesq{} \def\lpesq#1{\gdef\@lpesq{#1}} \def\apdata#1{\gdef\@apdatax{#1}} \gdef\@coordenador{} \def\coordenador#1{\gdef\@coordenador{#1}} \gdef\@authorf{} \gdef\@authorl{} \def\author#1#2{\gdef\@authorf{#1}\gdef\@authorl{#2}} \gdef\@areas{} \def\areas#1{\gdef\@areas{#1}} \gdef\@keywords{} \def\keywords#1{\gdef\@keywords{#1}} \def\ti#1#2{\gdef\@numeroti{#1}\gdef\@ordemti{#2}} % Trabalho Individual \def\relativ#1#2{\gdef\@relativ{}\gdef\@inmonth{#1}\gdef\@inyear{#2}} % Data Inicial para o Relatorio de Atividades \def\date#1#2{\gdef\@month{#1}\gdef\@year{#2}} % faz capa e quadradinho na fonte \def\maketitle{\begin{titlepage} \setstretch{1} \let\footnotesize\small \let\footnoterule\relax \setcounter{page}{1} \thispagestyle{empty} \vskip 60pt \begin{center} {\normalsize UNIVERSIDADE FEDERAL DO RIO GRANDE DO SUL\\%\vskip -1mm INSTITUTO DE MATEM\'ATICA\\\vskip -2mm PROGRAMA DE P\'OS-GRADUA\c C\~AO EM MATEM\'ATICA APLICADA} \vskip 3cm {\setlength{\unitlength}{1cm} \makebox(13,6.5){\parbox[c]{13cm}{\setlength{\parskip}{0.8cm}\center\vskip -1.0cm\Large{\bf\@title}\par \normalsize por\par\large \@authorf\ \@authorl\par}}} %\makebox(9,6.5){\parbox[c]{9cm}{\setlength{\parskip}{0.8cm}\center\vskip -1.2cm\Large{\bf\@title}\par \normalsize por\par \large \@authorf\ \@authorl\par}}} \@ifundefined{@coadvisorf}{\vskip 2.6cm}{\vskip 1.8cm} \@ifundefined{@numeroti}{ \@ifundefined{@relativ}{ \begin{singlespace} {\normalsize Disserta\c c\~ ao submetida como requisito parcial\\ para a obten\c c\~ao do grau de\\ Mestre em Matem\' atica Aplicada} \end{singlespace}}% {Relat\'orio de Atividades\\[1cm] Per\'\i odo: \@inmonth\ de \@inyear\ at\'e \@month\ de \@year .}}% {T.I. n$^{\mbox\scriptsize\b o}$ \@numeroti~~PPGMAp--UFRGS~~\@month\ \@year\par Trabalho Individual \@ordemti\par} \vskip 2cm % Orientador {\@advisort\ \@advisorf\ \@advisorl\\\vskip -3mm \@advisorc\par} % \@ifundefined{@coadvisorf}{}{\@coadvisort\ \@coadvisorf\ \@coadvisorl\\\vskip -3mm \@coadvisorc\par} \vfil {Porto Alegre, \@month\ de \@year . \par} \end{center} \end{titlepage} % % Catalogacao na Fonte % \@ifundefined{@numeroti}{ \@ifundefined{@relativ}{ \begin{titlepage} \setcounter{page}{2} \thispagestyle{headings} \vfill \begin{center} \begin{singlespace} {\bf CIP - CATALOGA\c C\~AO NA PUBLICA\c C\~AO}\vskip 1cm \framebox[12cm]{ \parbox{11cm}{\vskip 4mm \setlength{\parskip}{2ex} \@authorl, \@authorf\par \setlength{\parindent}{1.5em} \@title\ / \@authorf\ \@authorl.---Porto Alegre: PPGMAp da UFRGS, \@year.\par \pageref{ult-pag} p.: il.\par Disserta\c c\~ ao (mestrado) ---Universidade Federal do Rio Grande do Sul, Programa de P\'os-Gradua\c c\~ao em Matem\' atica Aplicada, Porto Alegre, \@year.\\ % % % Orientador: \@advisorl, \@advisorf\@ifundefined{@coadvisorf}{}{; % \@advisorc: \@advisorl, \@advisorf\@ifundefined{@coadvisorf}{}{; % \@coadvisorc: \@coadvisorl, \@coadvisorf}\par \setlength{\parindent}{0pt} Disserta\c c\~ ao: \@areas\\\@keywords\par\vskip 4mm }} \end{singlespace} \end{center} \vfill \end{titlepage}}{}}{} % Folha com identificao da banca \@ifundefined{@apdatax}{} { \begin{titlepage} \setcounter{page}{3} \thispagestyle{headings} \vfill \begin{center} {\setlength{\unitlength}{1cm} \makebox(15,5){\parbox[c]{15cm}{\setlength{\parskip}{0.5cm}\center\vskip -1.2cm\LARGE{\bf\@title}\par \vskip -0.5cm \normalsize por\par \vskip -0.5cm \large \@authorf\ \@authorl\par}}} %\makebox(12,6.5){\parbox[c]{12cm}{\setlength{\parskip}{0.8cm}\center\vskip -1.2cm\LARGE{\bf\@title}\par \normalsize por\par \large \@authorf\ \@authorl\par}}} \end{center} {\large Disserta\c c\~ ao submetida ao Programa de P\' os-Gradua\c c\~ ao em Matem\' atica Aplicada do Instituto de Matem\' atica da Universidade Federal do Rio Grande do Sul, como requisito parcial para a obten\c c\~ao do grau de} %\vskip 1cm \vfill \begin{center} {\Large\bf Mestre em Matem\' atica Aplicada} \end{center} %\vskip 1cm \vfill \begin{singlespace} Linha de Pesquisa: M\'{e}todos Anal\'{i}ticos e Num\'{e}ricos em Din\^{a}mica de \par \vspace{-0.3cm} \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Fluidos %Linha de Pesquisa: \@lpesq\par % Orientador \@advisorc : {\@advisort\ \@advisorf\ \@advisorl\par} % \@ifundefined{@coadvisorf}{}{\@coadvisorc: \@coadvisort\ \@coadvisorf\ \@coadvisorl\par} Banca examinadora:\par \hspace{1cm} {\setlength{\unitlength}{1cm} \makebox(9,1){\parbox[c]{9cm}{\center\@examinadora\\\@insta}}}\par \hspace{1cm} {\setlength{\unitlength}{1cm} \makebox(9,1){\parbox[c]{9cm}{\center\@examinadorb\\\@instb}}}\par \hspace{1cm} {\setlength{\unitlength}{1cm} \makebox(9,1){\parbox[c]{9cm}{\center\@examinadorc\\\@instc}}}\par \vskip 1cm \vfill \hfill{\setlength{\unitlength}{1cm} \makebox(9,2.5){\parbox[c]{9cm}{\setlength{\parskip}{0.8cm}\center\vskip -1.2cm Disserta\c c\~ ao apresentada e aprovada em\\ \@apdatax.\par \@coordenador\\ Coordenador}}} \end{singlespace} \end{titlepage} } %ifundefined(@apdata} % Fim das paginas iniciais \setcounter{footnote}{0} \let\thanks\relax \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\gdef\@supervisor{}\let\maketitle\relax} %varias definicoes para espaco duplo % Document style option "doublespace" % -- usage: \documentstyle[...,doublespace,...]{...} % % WARNING! % This option is provided for those who are COMPELLED by powers % beyond their control to double-space their documents. Known % powers of this kind include copy-editors and dissertation % rule-makers in some universities. Double spacing is one of the % best ways to ruin the appearance of a document and to render % it difficult to read (in this respect it is equalled only by % adding too many characters on a line). % % This style option produces a double-spaced document by redefining % the LaTeX parameter \baselinestretch to 2. % % It also fixes a number of problems with standard LaTeX, as follows: % % 1. A new environment "singlespace" is provided, within which single % spacing will apply. (Note that on entering this environment the % \normalsize command is issued automatically.) % 2. Double spacing is turned off within footnotes and floats (figures % and tables). % 3. Proper double spacing happens below tabular environments and in other % places where LaTeX uses a strut. % 4. Slightly more space is inserted before footnotes. % % Note: This version sets a baselinestretch of 2. If this is too much, % put \setstretch{1.7} (or some appropriate value) before the % \begin{document} command. To print the document with single spacing % again, without removing "singlespace" environments, just put a % \setstretch{1} at the top of the document. % % Author: Stephen Page -- sdpage@uk.ac.oxford.prg % Release date: 6 July 1986, documentation revised 24 September 1986 % % Known bugs: % . The \singlespace environment works sometimes (e.g. around titles) % but not always. Suggestions for a fix are welcomed! % . It might be nice if spacing before the footnote rule (\footins) % were provided in a tidier way. % . Increasing struts may possibly cause some other obscure part of % formatting to fall over. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %---Set up double spacing \def\baselinestretch{2} %---New command "\setstretch" (slightly more mnemonic... and easier to type) \def\setstretch#1{\renewcommand{\baselinestretch}{#1}} %---New environment "singlespace". % The baselinestretch only takes effect at a size change, so do one. \def\singlespace{\def\baselinestretch{1}\@normalsize} \def\endsinglespace{} %---Stretch the baseline BEFORE calculating the strut size. This improves % spacing below tabular environments etc., probably... % Comments are welcomed. \def\@setsize#1#2#3#4{\@nomath#1\let\@currsize#1\baselineskip #2\baselineskip\baselinestretch\baselineskip \setbox\strutbox\hbox{\vrule height.7\baselineskip depth.3\baselineskip width\z@} \normalbaselineskip\baselineskip#3#4} %---Increase the space between last line of text and footnote rule. % This is a very untidy way to do it! \skip\footins 20pt plus4pt minus4pt %---Reset baselinestretch within footnotes and floats. Originally stolen % from Stanford thesis style. \def\@xfloat#1[#2]{\ifhmode \@bsphack\@floatpenalty -\@Mii\else \@floatpenalty-\@Miii\fi\def\@captype{#1}\ifinner \@parmoderr\@floatpenalty\z@ \else\@next\@currbox\@freelist{\@tempcnta\csname ftype@#1\endcsname \multiply\@tempcnta\@xxxii\advance\@tempcnta\sixt@@n \@tfor \@tempa :=#2\do {\if\@tempa h\advance\@tempcnta \@ne\fi \if\@tempa t\advance\@tempcnta \tw@\fi \if\@tempa b\advance\@tempcnta 4\relax\fi \if\@tempa p\advance\@tempcnta 8\relax\fi }\global\count\@currbox\@tempcnta}\@fltovf\fi \global\setbox\@currbox\vbox\bgroup \def\baselinestretch{1}\@normalsize \boxmaxdepth\z@ \hsize\columnwidth \@parboxrestore} \long\def\@footnotetext#1{\insert\footins{\def\baselinestretch{1}\footnotesize \interlinepenalty\interfootnotelinepenalty \splittopskip\footnotesep \splitmaxdepth \dp\strutbox \floatingpenalty \@MM \hsize\columnwidth \@parboxrestore \edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext {\rule{\z@}{\footnotesep}\ignorespaces #1\strut}}} % seta espaco 1.5, separacao maior entre paragrafos, % indentacao de +-10 espacos, numero da pagina no topo \setstretch{1.5} \setlength{\parskip}{2ex} \setlength{\parindent}{5.5em} \pagestyle{headings} \clubpenalty10000\widowpenalty10000 \setlength{\leftmargini}{\parindent}%ver \@listi \setlength{\partopsep}{0pt} \let\fim@doc\enddocument \def\enddocument{\label{ult-pag}\fim@doc} % This is the end of 'cpgmap.sty'. \endinput