Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.41 KB | None | 0 0
  1. % ---
  2. % Pacotes básicos
  3. % ---
  4. \usepackage{lmodern} % Usa a fonte Latin Modern
  5. \usepackage[T1]{fontenc} % Selecao de codigos de fonte.
  6. \usepackage[utf8]{inputenc} % Codificacao do documento (conversão automática dos acentos)
  7. \usepackage{lastpage} % Usado pela Ficha catalográfica
  8. \usepackage{indentfirst} % Indenta o primeiro parágrafo de cada seção.
  9. \usepackage{color} % Controle das cores
  10. \usepackage{graphicx} % Inclusão de gráficos
  11. \usepackage{microtype} % para melhorias de justificação
  12. \usepackage{ifthen} % para montar condicionais
  13. \usepackage[brazil]{babel} % para utilizar termos em portugues
  14. % ---
  15. % \usepackage{tocloft}
  16. \newcommand{\tocfont}{\normalsize} % define tamanho de fonte para sumario como normal
  17. % ---
  18. % Pacotes adicionais, usados apenas no âmbito do Modelo Canônico do abnteX2
  19. % ---
  20. \usepackage{lipsum} % para geração de dummy text
  21. % ---
  22. \usepackage{multirow}
  23. \usepackage{etoolbox}
  24.  
  25.  
  26. \usepackage{amssymb}
  27. \usepackage{amsfonts}
  28. \usepackage{setspace}
  29.  
  30. \usepackage{listings}
  31. \usepackage{parskip}
  32. \usepackage{array,longtable}
  33. %\usepackage{breakurl}
  34. %\usepackage[none]{hyphenat} não usar
  35. \usepackage{trivfloat}
  36.  
  37. \usepackage{hyperref}
  38. \AtBeginEnvironment{figure}{\vspace{3mm}}
  39.  
  40.  
  41. \usepackage[style=long]{glossaries}
  42.  
  43.  
  44. % \usepackage{abntex2glossaries}
  45. % ---
  46. % Pacotes de citações
  47. % ---
  48. \usepackage[hyphenbreaks]{breakurl}
  49. \usepackage[brazilian,hyperpageref]{backref} % Paginas com as citações na bibl
  50. \usepackage[alf,abnt-repeated-author-omit=yes,
  51. %abnt-emphasize=em, %\emph opção padrão.
  52. % abnt-emphasize=bf %\textbf
  53. ]{abntex2cite} % Citações padrão ABNT
  54.  
  55. % ---
  56. % CONFIGURAÇÕES DE PACOTES
  57. % ---
  58.  
  59. % ---
  60. % Configurações do pacote backref
  61. % Usado sem a opção hyperpageref de backref
  62. \renewcommand{\backrefpagesname}{Citado na(s) página(s):~}
  63. % Texto padrão antes do número das páginas
  64. \renewcommand{\backref}{}
  65. % Define os textos da citação
  66. \renewcommand*{\backrefalt}[4]{
  67. \ifcase #1 %
  68. Nenhuma citação no texto.%
  69. \or
  70. Citado na página #2.%
  71. \else
  72. Citado #1 vezes nas páginas #2.%
  73. \fi}%
  74. % ---
  75.  
  76.  
  77. % ---
  78. % Configurações de aparência do PDF final
  79.  
  80. % alterando o aspecto da cor azul
  81. \definecolor{blue}{RGB}{41,5,195}
  82.  
  83. % informações do PDF
  84. \makeatletter
  85. \hypersetup{
  86. %pagebackref=true,
  87. pdftitle={\@title},
  88. pdfauthor={\@author},
  89. pdfsubject={\imprimirpreambulo},
  90. pdfcreator={LaTeX with abnTeX2},
  91. pdfkeywords={abnt}{latex}{abntex}{abntex2}{trabalho acadêmico},
  92. colorlinks=false, % false: boxed links; true: colored links
  93. linkcolor=blue, % color of internal links
  94. citecolor=blue, % color of links to bibliography
  95. filecolor=magenta, % color of file links
  96. urlcolor=blue,
  97. bookmarksdepth=4
  98. }
  99. \makeatother
  100. % ---
  101.  
  102.  
  103. % ---
  104. % compila o indice
  105. % ---
  106. \makeindex
  107. % ---
  108.  
  109. \usepackage{titletoc}
  110.  
  111. \titlecontents{figure}
  112. [2.5cm]{}
  113. {\hspace{-2.5cm}\makebox[3cm][l]{FIGURA\space\thecontentslabel\space $-$}\space}
  114. {}{\titlerule*[8pt]{$\cdot$}\contentspage}
  115.  
  116. \usepackage{cancel} % permite representar o cancelamento de termos em texto ou equacoes
  117. \usepackage{xcolor} % cores extendidas
  118. \usepackage{smartdiagram} % gera diagramas a partir de listas
  119.  
  120. \usepackage{float} % Para a figura ficar na posição correta
  121. \usepackage{textcomp} % supporte para fontes da Text Companion
  122. \usepackage{longtable} % uso de longtable
  123. \usepackage{amsmath} % simbolos matematicos
  124.  
  125. \usepackage{caption} % configura legenda
  126. %\renewcommand\caption[1]{%
  127. \captionsetup{
  128. % justification = raggedright,
  129. % singlelinecheck = false,
  130. font=small
  131. } % tamanho da fonte 10pt
  132. % \caption{#1}}
  133. %\captionsetup{width=0.8\textwidth}
  134.  
  135. \usepackage{lscape}
  136. \usepackage{multicol}
  137. \usepackage{multirow}
  138.  
  139. \usepackage{boxhandler}
  140.  
  141. \usepackage{trivfloat}
  142. %\trivfloat{quadro}
  143. %\floatstyle{plaintop}
  144. %\restylefloat{quadro}
  145.  
  146. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  147. %Criação do indice de quadros
  148. \usepackage{newfloat}
  149.  
  150.  
  151.  
  152. \PrepareListOf{quadro}{%
  153. \renewcommand{\cftfigpresnum}{Quadro~}}
  154.  
  155. \DeclareFloatingEnvironment[
  156. fileext=loq,
  157. listname={\textbf{LISTA DE QUADROS}},
  158. name=Quadro,
  159. %placement=p,
  160. within= none, % numeracao continua
  161. %within=section, % numeracao reinicia em cada seccao
  162. %chapterlistsgaps=off
  163. ]{quadro}
  164.  
  165. % Novo list of (listings) para QUADROS
  166.  
  167. %\renewcommand{\quadroname}{QUADRO}
  168. %\newcommand{\listofquadrosname}{LISTA DE QUADROS}
  169.  
  170. %\newfloat[chapter]{quadro}{loq}{\quadroname}
  171. %\newlistof{listofquadros}{loq}{\listofquadrosname}
  172. \newlistentry{quadro}{loq}{0}
  173.  
  174. % configurações para atender às regras da ABNT
  175. %\counterwithout{quadro}{chapter}
  176.  
  177. % Customize ‘List of Diagrams’
  178. \PrepareListOf{quadro}{%
  179. \renewcommand{\cftquadropresnum}{\normalsize{QUADRO}~}
  180. \setlength{\cftquadronumwidth}{3.2cm}
  181. %\renewcommand{\cftquadroname}{\quadroname\space}
  182. \renewcommand*{\cftquadroaftersnum}{\hfill--\hfill}
  183. }
  184.  
  185. \makeatletter
  186. %% we define a helper macro for adjusting lists of new floats to
  187. %% accept a * behind them for not being shown in the TOC, like
  188. %% the other list printing commands in memoir
  189. \newcommand{\AdjustForMemoir}[1]{%
  190. \csletcs{kept@listof#1}{listof#1}%
  191. \csdef{listof#1}{%
  192. \@ifstar
  193. {\csappto{newfloat@listof#1@hook}{\append@star}%
  194. \csuse{kept@listof#1}}%
  195. {\csuse{kept@listof#1}}%
  196. }
  197. }
  198. \def\append@star#1{#1*}
  199. \makeatother
  200.  
  201. \AdjustForMemoir{quadro} % prepare `\listofdirfigures` so it accepts a *
  202.  
  203. \makeatletter
  204. \let\oldcontentsline\contentsline
  205. \def\contentsline#1#2{%
  206. \expandafter\ifx\csname l@#1\endcsname\l@section
  207. \expandafter\@firstoftwo
  208. \else
  209. \expandafter\@secondoftwo
  210. \fi
  211. {%
  212. \oldcontentsline{#1}{\MakeTextUppercase{#2}}%
  213. }{%
  214. \normalsize %ajusta tamanho da fonte na lista
  215. \oldcontentsline{#1}{#2}%
  216. }%
  217. }
  218. \makeatother
  219.  
  220. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  221. % citacao de acordo com a norma da UFPR 2015-agosto
  222. \renewenvironment{quotation}
  223. {\vspace{.5\baselineskip}
  224. \list{}{\listparindent 0em%
  225. \SingleSpacing
  226. \itemindent
  227. \listparindent
  228. \rightmargin= 0mm
  229. \leftmargin= 45mm
  230. \parsep=0mm }%\z@ \@plus\p@}%
  231. \item\relax}
  232. {
  233. \vspace{.5\baselineskip}
  234. \endlist
  235. }
  236.  
  237. \newenvironment{citacaodireta}
  238. {\begin{quotation}\footnotesize}
  239. {\end{quotation}}
  240.  
  241. \newcommand{\sugest}[1]{\textcolor{red!40}{#1}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement