Skip to content
Snippets Groups Projects
Commit b9b46eaa authored by Carlos Maziero's avatar Carlos Maziero
Browse files

versão 0.9.10

parent 884b81dc
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ clean: ...@@ -21,6 +21,7 @@ clean:
-rm -f texput.log -rm -f texput.log
-rm -f $(MAIN).log $(MAIN).lot $(MAIN).lof -rm -f $(MAIN).log $(MAIN).lot $(MAIN).lof
-rm -f $(MAIN).toc $(MAIN).bbl $(MAIN).blg -rm -f $(MAIN).toc $(MAIN).bbl $(MAIN).blg
-rm -f $(MAIN).acr $(MAIN).smb
purge: clean purge: clean
@rm -f $(OUTPUT) @rm -f $(OUTPUT)
......
Changelog: 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 28/03/18
- listas de figuras/tabelas/... colocadas antes do sumário - listas de figuras/tabelas/... colocadas antes do sumário
......
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
% - ... (demais opções aceitas pela classe "book") % - ... (demais opções aceitas pela classe "book")
% Opções default: defesa, oneside % Opções default: defesa, oneside
\documentclass[defesa,oneside]{ppginf} % versão para a defesa %\documentclass[defesa,oneside]{ppginf} % versão para a defesa
%\documentclass[final,oneside]{ppginf} % versão final, só em PDF \documentclass[final,oneside]{ppginf} % versão final, só em PDF
%\documentclass[final,twoside]{ppginf} % versão final, em PDF + impresso %\documentclass[final,twoside]{ppginf} % versão final, em PDF + impresso
% configurações de diversos pacotes, inclusive o fonte principal do texto % configurações de diversos pacotes, inclusive o fonte principal do texto
......
No preview for this file type
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
\usepackage[english,brazilian]{babel} \usepackage[english,brazilian]{babel}
\selectlanguage{brazilian} \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 % Definição de fontes
......
...@@ -37,12 +37,12 @@ ...@@ -37,12 +37,12 @@
%------------------------------------------------------------------------------ %------------------------------------------------------------------------------
% definição da classe e versão % definição da classe e versão
\ProvidesClass{ppginf}[2018/05/22 Manuscript class for PPGInf/UFPR] \ProvidesClass{ppginf}[2018/05/31 Manuscript class for PPGInf/UFPR]
\def\@classversion{0.9.9} \def\@classversion{0.9.10}
%------------------------------------------------------------------------------ %------------------------------------------------------------------------------
% opções desta classe % OPÇÕES DESTA CLASSE
% define flag de versão final do documento % define flag de versão final do documento
\newif\iffinalmode \newif\iffinalmode
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
%------------------------------------------------------------------------------ %------------------------------------------------------------------------------
%% Ajustes no layout geral do texto %% AJUSTES DIVERSOS NO LAYOUT DO DOCUMENTO
% dimensões da página e margens % dimensões da página e margens
\RequirePackage{geometry} \RequirePackage{geometry}
...@@ -86,15 +86,80 @@ ...@@ -86,15 +86,80 @@
\geometry{right=2cm,left=2cm,top=3cm,bottom=2cm} \geometry{right=2cm,left=2cm,top=3cm,bottom=2cm}
\geometry{bindingoffset=1cm} \geometry{bindingoffset=1cm}
% para mudar o título dos capítulos para "1. Introdução", etc % EXIGÊNCIA DA BIB@UFPR
% ATENCAO: https://tex.stackexchange.com/questions/299969/titlesec-loss-of- % ajustar formato dos títulos nas seções
% section-numbering-with-the-new-update-2016-03-15 % ATENCAO: https://tex.stackexchange.com/questions/299969/titlesec-loss-of-section-numbering-with-the-new-update-2016-03-15
\RequirePackage{titlesec} \RequirePackage{titlesec}
\titleformat{\chapter}[hang]{\huge\bfseries}{\thechapter}{1ex}{} \newcommand{\numberspacing}{1.5ex} % espaço entre número e título
\titleformat{\chapter}[hang] % capítulos
% por exigência da bib@ufpr, muda título de apêndice para "Apêndice A: blá blá {\normalfont\huge\bfseries}
% blá" no texto e no sumário (fonte: https://stackoverflow.com/questions/717316/ {\thechapter} {\numberspacing} {}
% how-to-make-appendix-appear-in-toc-in-latex, adaptado) \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]{% \newcommand\appendix@chapter[1]{%
\refstepcounter{chapter}% \refstepcounter{chapter}%
\orig@chapter*{Ap\^endice \@Alph\c@chapter: #1}% \orig@chapter*{Ap\^endice \@Alph\c@chapter: #1}%
...@@ -102,24 +167,12 @@ ...@@ -102,24 +167,12 @@
\let\orig@chapter\chapter \let\orig@chapter\chapter
\g@addto@macro\appendix{\let\chapter\appendix@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 % indentar o primeiro parágrafo (português) em 15mm
\RequirePackage{indentfirst} \RequirePackage{indentfirst}
\setlength{\parindent}{15mm} \setlength{\parindent}{15mm}
% indentar listas de itens alinhadas aos parágrafos % indentar listas de itens alinhadas aos parágrafos
\usepackage{enumitem} \RequirePackage{enumitem}
\setlist[1]{leftmargin=\parindent} \setlist[1]{leftmargin=\parindent}
\setlist[2]{leftmargin=0.5\parindent} \setlist[2]{leftmargin=0.5\parindent}
...@@ -144,7 +197,7 @@ ...@@ -144,7 +197,7 @@
{\endlist} {\endlist}
% aumentar o espaço entre a legenda e a tabela % aumentar o espaço entre a legenda e a tabela
\usepackage{caption} \RequirePackage{caption}
\captionsetup[table]{skip=10pt} \captionsetup[table]{skip=10pt}
% espaçamento entre linhas % espaçamento entre linhas
...@@ -164,6 +217,7 @@ ...@@ -164,6 +217,7 @@
\displaywidowpenalty 10000 \displaywidowpenalty 10000
\raggedbottom \raggedbottom
% EXIGÊNCIA DA BIB@UFPR
% sumário: adiciona entrada para bibliografia e remove entradas % sumário: adiciona entrada para bibliografia e remove entradas
% de sumário, lista de figuras e lista de tabelas. % de sumário, lista de figuras e lista de tabelas.
\RequirePackage[nottoc,notlot,notlof]{tocbibind} \RequirePackage[nottoc,notlot,notlof]{tocbibind}
...@@ -186,9 +240,10 @@ ...@@ -186,9 +240,10 @@
\renewcommand{\headrulewidth}{0pt} \renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt}
% por exigência da bib@ufpr (e contra todas as normas tipográficas), a numeração % EXIGÊNCIA DA BIB@UFPR
% da introdução deve considerar as páginas preliminares (i.e. não começa em 1). % a numeração da introdução deve considerar as páginas preliminares,
% Caso as regras de sua universidade sejam "normais", comente as linhas abaixo. % i.e. não começa em 1). Caso as regras de sua universidade sejam "normais",
% comente as linhas abaixo.
\renewcommand\pagenumbering[1]{% \renewcommand\pagenumbering[1]{%
%\global\c@page\@ne % this resets the counter %\global\c@page\@ne % this resets the counter
\gdef\thepage{\csname @#1\endcsname\c@page}% \gdef\thepage{\csname @#1\endcsname\c@page}%
...@@ -301,18 +356,12 @@ ...@@ -301,18 +356,12 @@
% ambiente resumo % ambiente resumo
\newenvironment{resumo} \newenvironment{resumo}
{ {
\clearpage \chapter*{Resumo}
% \phantomsection
% \addcontentsline{toc}{chapter}{Resumo}
\begin{center}
{\huge\textbf{Resumo}}
\end{center}
\vspace{0.5ex}
}{ }{
% somente mostrar palavras-chave se estiverem definidas % somente mostrar palavras-chave se estiverem definidas
\ifx\@pcs\@empty \ifx\@pcs\@empty
\else \else
\vspace{4ex} \vspace{3ex}
\noindent\textbf{Palavras-chave:} {\@pcs}. \noindent\textbf{Palavras-chave:} {\@pcs}.
\fi \fi
\vfill \vfill
...@@ -322,18 +371,12 @@ ...@@ -322,18 +371,12 @@
% ambiente abstract % ambiente abstract
\newenvironment{abstract} \newenvironment{abstract}
{ {
\clearpage \chapter*{Abstract}
% \phantomsection
% \addcontentsline{toc}{chapter}{Abstract}
\begin{center}
{\huge\textbf{Abstract}}
\end{center}
\vspace{0.5ex}
}{ }{
% somente mostrar keywords se estiverem definidas % somente mostrar keywords se estiverem definidas
\ifx\@kws\@empty \ifx\@kws\@empty
\else \else
\vspace{4ex} \vspace{3ex}
\noindent\textbf{Keywords:} {\@kws}. \noindent\textbf{Keywords:} {\@kws}.
\fi \fi
\vfill \vfill
...@@ -345,7 +388,7 @@ ...@@ -345,7 +388,7 @@
% ambiente da ficha catalográfica % ambiente da ficha catalográfica
\newenvironment{ficha} \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} {\cleardoublepage}
% ambiente da folha de aprovação % ambiente da folha de aprovação
...@@ -356,10 +399,7 @@ ...@@ -356,10 +399,7 @@
% ambiente de agradecimentos % ambiente de agradecimentos
\newenvironment{agradece} \newenvironment{agradece}
{ {
\begin{center} \chapter*{Agradecimentos}
{\huge\textbf{Agradecimentos}}
\end{center}
\vspace{0.5ex}
}{ }{
\vfill \vfill
\cleardoublepage \cleardoublepage
...@@ -388,9 +428,9 @@ ...@@ -388,9 +428,9 @@
\newenvironment{listaacron} \newenvironment{listaacron}
{ {
\chapter*{Lista de Acr\^onimos} \chapter*{Lista de Acr\^onimos}
% \phantomsection \begin{spacing}{1.25} % a lista deve ter espaçamento 1,25
% \addcontentsline{toc}{chapter}{Lista de Acr\^onimos}
}{ }{
\end{spacing}
\vfill \vfill
\cleardoublepage \cleardoublepage
} }
...@@ -399,9 +439,9 @@ ...@@ -399,9 +439,9 @@
\newenvironment{listasimb} \newenvironment{listasimb}
{ {
\chapter*{Lista de S\'{\i}mbolos} \chapter*{Lista de S\'{\i}mbolos}
% \phantomsection \begin{spacing}{1.25} % a lista deve ter espaçamento 1,25
% \addcontentsline{toc}{chapter}{Lista de S\'{\i}mbolos}
}{ }{
\end{spacing}
\vfill \vfill
\cleardoublepage \cleardoublepage
} }
...@@ -424,8 +464,6 @@ ...@@ -424,8 +464,6 @@
% PRIMEIRA CAPA (SÓ NA VERSÃO APROVADA) % PRIMEIRA CAPA (SÓ NA VERSÃO APROVADA)
\iffinalmode \iffinalmode
% \phantomsection
% \thispagestyle{empty}
% imagem de fundo da capa, se estiver definida em main.tex % imagem de fundo da capa, se estiver definida em main.tex
\ifx\@coverimg\@empty \ifx\@coverimg\@empty
...@@ -450,6 +488,7 @@ ...@@ -450,6 +488,7 @@
\end{center} \end{center}
\cleardoublepage \cleardoublepage
% EXIGÊNCIA DA BIB@UFPR
% reiniciar numeração de páginas, para não contar a capa; % 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 % segundo a bib@UFPR a capa não deve contar como página
\setcounter{page}{1} \setcounter{page}{1}
...@@ -457,9 +496,6 @@ ...@@ -457,9 +496,6 @@
% FOLHA DE ROSTO % FOLHA DE ROSTO
\clearpage \clearpage
% \phantomsection
% \addcontentsline{toc}{chapter}{Rosto}
% \thispagestyle{empty}
% autor % autor
\begin{center} \begin{center}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment