diff --git a/Makefile b/Makefile index 19bab3daace84be5e84d9e7988a9977ddd9e9085..1264dd032dfc26c91342b420baad11c7beae5097 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,7 @@ clean: -rm -f texput.log -rm -f $(MAIN).log $(MAIN).lot $(MAIN).lof -rm -f $(MAIN).toc $(MAIN).bbl $(MAIN).blg + -rm -f $(MAIN).acr $(MAIN).smb purge: clean @rm -f $(OUTPUT) diff --git a/changelog b/changelog index 38d3567a5f00f524acda199cdba4518635682e8d..4f0e422e19cc65f50fb9c875fcf51a704b2fc5e3 100644 --- a/changelog +++ b/changelog @@ -1,5 +1,14 @@ Changelog: +31/05/18 +- ajuste nos fontes usados nos tÃtulos e sumário (bib@ufpr) +- ajuste no alinhamento das entradas do sumário (bib@ufpr) +- ajuste nas entradas das listas (figuras, tabelas, sÃmbolos, etc) +- centralizar titulos de capÃtulos não-numerados +- reescrita dos ambientes resumo, abstract, agradecimentos +- "Referências bibliográficas" -> "Referências" +- pacote tocloft substituido por titlesec/titletoc + 28/03/18 - listas de figuras/tabelas/... colocadas antes do sumário diff --git a/main.tex b/main.tex index 92a0cf51b59230c7a17d80725c61022efaebab0a..893726125ff9bbecbec00b6b4b70e90eb7298118 100644 --- a/main.tex +++ b/main.tex @@ -21,8 +21,8 @@ % - ... (demais opções aceitas pela classe "book") % Opções default: defesa, oneside -\documentclass[defesa,oneside]{ppginf} % versão para a defesa -%\documentclass[final,oneside]{ppginf} % versão final, só em PDF +%\documentclass[defesa,oneside]{ppginf} % versão para a defesa +\documentclass[final,oneside]{ppginf} % versão final, só em PDF %\documentclass[final,twoside]{ppginf} % versão final, em PDF + impresso % configurações de diversos pacotes, inclusive o fonte principal do texto diff --git a/main_maziero.pdf b/main_maziero.pdf index 42ec4f3c6cebf7c3ae48de928e1d70e851259623..667a919f603523f563fdd85fca37376b25a93131 100644 Binary files a/main_maziero.pdf and b/main_maziero.pdf differ diff --git a/packages.tex b/packages.tex index 4f24f4644dfa875243118ef1f9fd8b986185aefd..fcaf6314226eb67df629286accf22793f4349904 100644 --- a/packages.tex +++ b/packages.tex @@ -6,6 +6,10 @@ \usepackage[english,brazilian]{babel} \selectlanguage{brazilian} +% EXIGÊNCIA DA BIB@UFPR +% muda o tÃtulo das referências para "Referências" +\addto{\captionsbrazilian}{\renewcommand{\bibname}{Refer\^encias}} + % ------------------------------------------------------------------------------ % Definição de fontes diff --git a/ppginf.cls b/ppginf.cls index 9742f7d5812ac4ffea689c02db104a9a411f6e7b..64e92db71ba502f92295c4b29005120438d6c7cb 100644 --- a/ppginf.cls +++ b/ppginf.cls @@ -37,12 +37,12 @@ %------------------------------------------------------------------------------ % definição da classe e versão -\ProvidesClass{ppginf}[2018/05/22 Manuscript class for PPGInf/UFPR] -\def\@classversion{0.9.9} +\ProvidesClass{ppginf}[2018/05/31 Manuscript class for PPGInf/UFPR] +\def\@classversion{0.9.10} %------------------------------------------------------------------------------ -% opções desta classe +% OPÇÕES DESTA CLASSE % define flag de versão final do documento \newif\iffinalmode @@ -78,7 +78,7 @@ %------------------------------------------------------------------------------ -%% Ajustes no layout geral do texto +%% AJUSTES DIVERSOS NO LAYOUT DO DOCUMENTO % dimensões da página e margens \RequirePackage{geometry} @@ -86,15 +86,80 @@ \geometry{right=2cm,left=2cm,top=3cm,bottom=2cm} \geometry{bindingoffset=1cm} -% para mudar o tÃtulo dos capÃtulos para "1. Introdução", etc -% ATENCAO: https://tex.stackexchange.com/questions/299969/titlesec-loss-of- -% section-numbering-with-the-new-update-2016-03-15 +% EXIGÊNCIA DA BIB@UFPR +% ajustar formato dos tÃtulos nas seções +% ATENCAO: https://tex.stackexchange.com/questions/299969/titlesec-loss-of-section-numbering-with-the-new-update-2016-03-15 \RequirePackage{titlesec} -\titleformat{\chapter}[hang]{\huge\bfseries}{\thechapter}{1ex}{} - -% por exigência da bib@ufpr, muda tÃtulo de apêndice para "Apêndice A: blá blá -% blá" no texto e no sumário (fonte: https://stackoverflow.com/questions/717316/ -% how-to-make-appendix-appear-in-toc-in-latex, adaptado) +\newcommand{\numberspacing}{1.5ex} % espaço entre número e tÃtulo +\titleformat{\chapter}[hang] % capÃtulos + {\normalfont\huge\bfseries} + {\thechapter} {\numberspacing} {} +\titleformat{\section}[hang] % seções + {\normalfont\Large} + {\thesection} {\numberspacing} {} +\titleformat{\subsection}[hang] % subseções + {\normalfont\large} + {\thesubsection} {\numberspacing} {} +\titleformat{\subsubsection}[hang] % subsubseções + {\normalfont\normalsize\itshape} + {\thesubsubsection} {\numberspacing} {} + +% EXIGÊNCIA DA BIB@UFPR +% centraliza tÃtulo dos capÃtulos não-numerados +\RequirePackage{titletoc} +\titleformat{name=\chapter,numberless}[hang] + {\normalfont\huge\bfseries} + {} {0ex} {\centering} +\titlespacing{name=\chapter,numberless}{0pt}{0pt}{40pt} + +% EXIGÊNCIA DA BIB@UFPR +% ajustar formato das entradas no sumário +\RequirePackage{titletoc} +\newcommand{\leftindent}{15mm} % endentação das entradas +\newcommand{\dotspacing}{0.75pc} % espaçamento dos pontinhos +\iffinalmode + \newcommand{\linespacing}{0.75ex} % espaço vertical entre linhas +\else + \newcommand{\linespacing}{0.0ex} % espaço vertical entre linhas +\fi +\titlecontents{chapter} [\leftindent] + {\normalfont\normalsize\bfseries} + {\contentslabel{\leftindent}} {} + {\titlerule*[\dotspacing]{.}\contentspage} + [\vspace{\linespacing}] +\titlecontents{section} [\leftindent] + {\normalfont\normalsize} + {\contentslabel{\leftindent}} {} + {\titlerule*[\dotspacing]{.}\contentspage} + [\vspace{\linespacing}] +\titlecontents{subsection} [\leftindent] + {\normalfont\normalsize} + {\contentslabel{\leftindent}} {} + {\titlerule*[\dotspacing]{.}\contentspage} + [\vspace{\linespacing}] +\titlecontents{subsubsection} [\leftindent] + {\normalfont\normalsize\itshape} + {\contentslabel{\leftindent}} {} + {\titlerule*[\dotspacing]{.}\contentspage} + [\vspace{\linespacing}] + +% EXIGÊNCIA DA BIB@UFPR +% ajustar formato das entradas nas listas de figuras e tabelas +\RequirePackage{titletoc} +\titlecontents{figure} [\leftindent] + {\normalfont\normalsize} + {\contentslabel{\leftindent}} {} + {\titlerule*[\dotspacing]{.}\contentspage} + [\vspace{\linespacing}] +\titlecontents{table} [\leftindent] + {\normalfont\normalsize} + {\contentslabel{\leftindent}} {} + {\titlerule*[\dotspacing]{.}\contentspage} + [\vspace{\linespacing}] + +% EXIGÊNCIA DA BIB@UFPR +% mudar tÃtulo de apêndice para "Apêndice A: blá blá blá" no texto e no sumário +% https://stackoverflow.com/questions/717316/how-to-make-appendix-appear-in-toc-in-latex, adaptado \newcommand\appendix@chapter[1]{% \refstepcounter{chapter}% \orig@chapter*{Ap\^endice \@Alph\c@chapter: #1}% @@ -102,24 +167,12 @@ \let\orig@chapter\chapter \g@addto@macro\appendix{\let\chapter\appendix@chapter} -% por exigência da bib@ufpr, remove indentações no sumário -\RequirePackage{tocloft} -\cftsetindents{part} {0mm} {15mm} -\cftsetindents{chapter} {0mm} {15mm} -\cftsetindents{section} {0mm} {15mm} -\cftsetindents{subsection} {0mm} {15mm} -\cftsetindents{subsubsection}{0mm} {15mm} - -% por exigência da bib@ufpr, remove indentação nas listas de figuras/tabelas/... -\setlength{\cftfigindent}{0pt} -\setlength{\cfttabindent}{0pt} - % indentar o primeiro parágrafo (português) em 15mm \RequirePackage{indentfirst} \setlength{\parindent}{15mm} % indentar listas de itens alinhadas aos parágrafos -\usepackage{enumitem} +\RequirePackage{enumitem} \setlist[1]{leftmargin=\parindent} \setlist[2]{leftmargin=0.5\parindent} @@ -144,7 +197,7 @@ {\endlist} % aumentar o espaço entre a legenda e a tabela -\usepackage{caption} +\RequirePackage{caption} \captionsetup[table]{skip=10pt} % espaçamento entre linhas @@ -164,6 +217,7 @@ \displaywidowpenalty 10000 \raggedbottom +% EXIGÊNCIA DA BIB@UFPR % sumário: adiciona entrada para bibliografia e remove entradas % de sumário, lista de figuras e lista de tabelas. \RequirePackage[nottoc,notlot,notlof]{tocbibind} @@ -186,9 +240,10 @@ \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} -% por exigência da bib@ufpr (e contra todas as normas tipográficas), a numeração -% da introdução deve considerar as páginas preliminares (i.e. não começa em 1). -% Caso as regras de sua universidade sejam "normais", comente as linhas abaixo. +% EXIGÊNCIA DA BIB@UFPR +% a numeração da introdução deve considerar as páginas preliminares, +% i.e. não começa em 1). Caso as regras de sua universidade sejam "normais", +% comente as linhas abaixo. \renewcommand\pagenumbering[1]{% %\global\c@page\@ne % this resets the counter \gdef\thepage{\csname @#1\endcsname\c@page}% @@ -301,18 +356,12 @@ % ambiente resumo \newenvironment{resumo} { - \clearpage -% \phantomsection -% \addcontentsline{toc}{chapter}{Resumo} - \begin{center} - {\huge\textbf{Resumo}} - \end{center} - \vspace{0.5ex} + \chapter*{Resumo} }{ % somente mostrar palavras-chave se estiverem definidas \ifx\@pcs\@empty \else - \vspace{4ex} + \vspace{3ex} \noindent\textbf{Palavras-chave:} {\@pcs}. \fi \vfill @@ -322,18 +371,12 @@ % ambiente abstract \newenvironment{abstract} { - \clearpage -% \phantomsection -% \addcontentsline{toc}{chapter}{Abstract} - \begin{center} - {\huge\textbf{Abstract}} - \end{center} - \vspace{0.5ex} + \chapter*{Abstract} }{ % somente mostrar keywords se estiverem definidas \ifx\@kws\@empty \else - \vspace{4ex} + \vspace{3ex} \noindent\textbf{Keywords:} {\@kws}. \fi \vfill @@ -345,7 +388,7 @@ % ambiente da ficha catalográfica \newenvironment{ficha} - {\addtocounter{page}{-1}} % não conta no número de páginas (Bib UFPR) + {\addtocounter{page}{-1}} % não conta no número de páginas (BIB@UFPR) {\cleardoublepage} % ambiente da folha de aprovação @@ -356,10 +399,7 @@ % ambiente de agradecimentos \newenvironment{agradece} { - \begin{center} - {\huge\textbf{Agradecimentos}} - \end{center} - \vspace{0.5ex} + \chapter*{Agradecimentos} }{ \vfill \cleardoublepage @@ -388,9 +428,9 @@ \newenvironment{listaacron} { \chapter*{Lista de Acr\^onimos} -% \phantomsection -% \addcontentsline{toc}{chapter}{Lista de Acr\^onimos} + \begin{spacing}{1.25} % a lista deve ter espaçamento 1,25 }{ + \end{spacing} \vfill \cleardoublepage } @@ -399,9 +439,9 @@ \newenvironment{listasimb} { \chapter*{Lista de S\'{\i}mbolos} -% \phantomsection -% \addcontentsline{toc}{chapter}{Lista de S\'{\i}mbolos} + \begin{spacing}{1.25} % a lista deve ter espaçamento 1,25 }{ + \end{spacing} \vfill \cleardoublepage } @@ -424,8 +464,6 @@ % PRIMEIRA CAPA (SÓ NA VERSÃO APROVADA) \iffinalmode -% \phantomsection -% \thispagestyle{empty} % imagem de fundo da capa, se estiver definida em main.tex \ifx\@coverimg\@empty @@ -449,7 +487,8 @@ \end{doublespace} \end{center} \cleardoublepage - + + % EXIGÊNCIA DA BIB@UFPR % reiniciar numeração de páginas, para não contar a capa; % segundo a bib@UFPR a capa não deve contar como página \setcounter{page}{1} @@ -457,9 +496,6 @@ % FOLHA DE ROSTO \clearpage -% \phantomsection -% \addcontentsline{toc}{chapter}{Rosto} -% \thispagestyle{empty} % autor \begin{center}