Commit f77091ec820cc5da91934aab6c2649c2bf39f706

Authored by Francisco Coelho
1 parent b8e82602
Exists in master

Pequenas correções na tabela de conteúdos

Melhor documentação na classe teseue.cls
main.lof
1   -\select@language {english}
2 1 \select@language {portuges}
3   -\select@language {english}
4 2 \select@language {portuges}
5   -\select@language {english}
  3 +\select@language {portuges}
  4 +\select@language {portuges}
  5 +\select@language {portuges}
6 6 \addvspace {10\p@ }
7 7 \contentsline {figure}{\numberline {1.1}{\ignorespaces Exemplo de uma figura.}}{2}
8 8 \addvspace {10\p@ }
... ...
main.lot
1   -\select@language {english}
2 1 \select@language {portuges}
3   -\select@language {english}
4 2 \select@language {portuges}
5   -\select@language {english}
  3 +\select@language {portuges}
  4 +\select@language {portuges}
  5 +\select@language {portuges}
6 6 \addvspace {10\p@ }
7 7 \contentsline {table}{\numberline {1.1}{\ignorespaces Exemplo de uma tabela.}}{3}
8 8 \addvspace {10\p@ }
... ...
No preview for this file type
main.tex
... ... @@ -30,7 +30,7 @@
30 30 % - PT: Português (novo acordo ortográfico)
31 31 % - EN: Inglês
32 32 %
33   -\tueLINGUA{EN}
  33 +\tueLINGUA{PT}
34 34 %
35 35 % ----------------------------------------------------------------
36 36 %
... ...
teseue.cls
... ... @@ -25,21 +25,65 @@
25 25 % }
26 26  
27 27 % Document adjustment
  28 +%
  29 +% Classe base: book
  30 +%
28 31 \LoadClass[11pt,a4paper]{book}
  32 +%
  33 +% Paginas pares limpas no fim dos capitulos
  34 +%
29 35 \RequirePackage{emptypage}
  36 +%
  37 +% Mancha do texto
  38 +%
30 39 \RequirePackage[top=3cm, bottom=3cm, left=2cm, right=2cm]{geometry}
  40 +%
  41 +% Espaco entre itens, linhas, etc
  42 +%
31 43 \RequirePackage{setspace} % for spacing environment
  44 +%
  45 +% Alguma programacao LaTeX simplificada
  46 +%
32 47 \RequirePackage{etoolbox} % for advanced authoring
  48 +%
  49 +% Importacao de imagens
  50 +%
33 51 \RequirePackage{graphicx}
34   -\RequirePackage{acronym}
  52 +%
  53 +% Construcao avancada de graficos
  54 +%
35 55 \RequirePackage{tikz}
  56 +%
  57 +% Acronimos
  58 +%
  59 +\RequirePackage{acronym}
  60 +%
  61 +% Colocacao de bibliografia e outras listas na tabela de conteudos
  62 +%
  63 +\RequirePackage{tocbibind}
  64 +%
  65 +% Indice Remissivo
  66 +%
36 67 \RequirePackage{makeidx}
37   -\RequirePackage{array} % para alinhar verticalmente as linhas das tabelas (na lombada)
  68 +%
  69 +% Alinhamento vertical das linhas das tabelas (na lombada)
  70 +%
  71 +\RequirePackage{array} %
  72 +%
  73 +% Suporte para varias linguas
  74 +%
38 75 \RequirePackage{polyglossia} % Língua
39 76 %
40 77 % Tratamento das fontes
41 78 %
42 79 \RequirePackage{fontspec}
  80 +%
  81 +%
  82 +%
  83 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  84 +%
  85 +% Configuracao das fontes
  86 +%
43 87 \setmainfont{SourceSansPro-Light.otf}[
44 88 UprightFont = SourceSansPro-Light.otf,
45 89 ItalicFont = SourceSansPro-LightIt.otf,
... ... @@ -55,27 +99,39 @@
55 99 %
56 100 %
57 101 %
  102 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  103 +%
  104 +% Cores comuns
  105 +%
58 106 %\RequirePackage[rgb]{xcolor}
59 107 \definecolor{uered}{RGB}{158 27 50}
60 108 \definecolor{uegray}{RGB}{88 89 91}
61 109 \definecolor{uegrey}{RGB}{88 89 91}
62 110 \definecolor{ueblack}{RGB}{0 0 0}
63   -
64   -% Paragraph ajustement
  111 +%
  112 +%
  113 +%
  114 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  115 +%
  116 +% Ajuste do espaco entre linhas, paragrafos, etc
  117 +%
65 118 \setlength{\parindent}{0mm}
66 119 \setlength{\parskip}{3mm}
67 120 \renewcommand{\baselinestretch}{1.0} % 1.5 for double-space
68   -
69 121 %
70   -%\RequirePackage{anyfontsize}
71   -
72   -%%%%%%%%%%%%%%%%%%
73   -% Style definition
74   -%%%%%%%%%%%%%%%%%%
  122 +%
  123 +%
  124 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  125 +%
  126 +% Termos fixos
  127 +%
75 128 \newcommand{\@Monografia}{Disserta\c{c}\~{a}o}
76 129 \newcommand{\@monografia}{disserta\c{c}\~{a}o}
77   -
78   -
  130 +%
  131 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  132 +% Opcao: doutoramento / mestrado
  133 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  134 +%
79 135 \DeclareOption{doutoramento}{
80 136 \newcommand{\@Grau}{Doutor}
81 137 \newcommand{\@grau}{doutor}
... ... @@ -85,6 +141,11 @@
85 141 \newcommand{\@grau}{mestre}
86 142 }
87 143 %
  144 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  145 +% Opcao escola: ct,ctR / csh, cshR / artes,artesR
  146 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  147 +%
  148 +%
88 149 % Os azulejos da capa determinam a area cientifica (e vice-versa)
89 150 %
90 151 \newcommand{\@AZULEJOS}{rascunhocet.jpg}
... ... @@ -107,10 +168,16 @@
107 168 \renewcommand{\@AZULEJOS}{rascunhoart.jpg}
108 169 }
109 170 %
  171 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  172 +% Restantes opcoes
  173 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  174 +%
110 175 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
111 176 \ProcessOptions
112 177 %
113   -% ----------------------------------------------------------------
  178 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  179 +% Fonte sem-serifas
  180 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
114 181 %
115 182 \renewcommand{\familydefault}{\sfdefault}
116 183 %
... ... @@ -120,37 +187,70 @@
120 187 % INTERFACE PUBLICO
121 188 %
122 189 % ================================================================
  190 +
123 191 %
124   -%% Língua
  192 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  193 +% Lingua
  194 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
125 195 %
126 196 \newcommand{\@LINGUA}{PT}
127   -% --- Lista de Acrónimos ---
  197 +%
  198 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  199 +% Termo fixo: lista de acronimos
  200 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  201 +%
128 202 \newcommand{\@LST@ACRON@EN}{Acronyms}
129 203 \newcommand{\@LST@ACRON@PT}{Lista de Acr\'{o}nimos}
130 204 \newcommand{\@LST@ACRON}{ND}
131   -% --- Lista de Figuras ---
  205 +%
  206 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  207 +% Termo fixo: lista de figuras
  208 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  209 +%
132 210 \newcommand{\@LST@FIG@EN}{List of Figures}
133 211 \newcommand{\@LST@FIG@PT}{Lista de Figuras}
134 212 \newcommand{\@LST@FIG}{ND}
135   -% --- Tabela de Conteúdos ---
  213 +%
  214 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  215 +% Termo fixo: Conteudos
  216 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  217 +%
136 218 \newcommand{\@LST@CONT@EN}{Contents}
137 219 \newcommand{\@LST@CONT@PT}{Conteúdo}
138 220 \newcommand{\@LST@CONT}{ND}
139   -% --- Lista de Tabelas ---
  221 +%
  222 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  223 +% Termo fixo: lista de tabelas
  224 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  225 +%
140 226 \newcommand{\@LST@TAB@EN}{List of Tables}
141 227 \newcommand{\@LST@TAB@PT}{Lista de Tabelas}
142 228 \newcommand{\@LST@TAB}{ND}
143   -% --- Termos intermutaveis ---
  229 +%
  230 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  231 +% Termo fixo: sumario
  232 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  233 +%
144 234 \newcommand{\@TXT@SUMARIO@PT}{Sum\'{a}rio}
145 235 \newcommand{\@TXT@SUMARIO@EN}{Abstact}
146 236 \newcommand{\@TXT@SUMARIO@A}{ND}
147 237 \newcommand{\@TXT@SUMARIO@B}{ND}
148 238 %
  239 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  240 +% Termo fixo: palavras chave
  241 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  242 +%
149 243 \newcommand{\@TXT@PALCHAVE@PT}{Palavras chave}
150 244 \newcommand{\@TXT@PALCHAVE@EN}{Keywords}
151 245 \newcommand{\@TXT@PALCHAVE@A}{ND}
152 246 \newcommand{\@TXT@PALCHAVE@B}{ND}
153 247 %
  248 +%
  249 +%
  250 +% tueLINGUA
  251 +%
  252 +%
  253 +%
154 254 \DeclareRobustCommand{\tueLINGUA}[1]{%
155 255 \renewcommand{\@LINGUA}{#1}
156 256 \typeout{***}
... ... @@ -193,7 +293,11 @@
193 293 \typeout{*** ------ KEYWORDS(\@TXT@PALCHAVE@B)}
194 294 }
195 295 %
196   -%% Titulo
  296 +%
  297 +%
  298 +% tueTITULO
  299 +%
  300 +%
197 301 %
198 302 \newcommand{\@TITULO}{T\'{i}tulo da tese}
199 303 \newcommand{\@TITLE}{Thesis title}
... ... @@ -202,7 +306,11 @@
202 306 \renewcommand{\@TITLE}{#2}
203 307 }
204 308 %
205   -%% Subtitulo
  309 +%
  310 +%
  311 +% tueSUBTITULO
  312 +%
  313 +%
206 314 %
207 315 \providebool{@comSubtitulo}
208 316 \newcommand{\@SUBTITULO}{Subt\'{i}tulo da tese}
... ... @@ -213,21 +321,33 @@
213 321 \booltrue{@comSubtitulo}
214 322 }
215 323 %
216   -%% Candidato
  324 +%
  325 +%
  326 +% tueCANDIDATO
  327 +%
  328 +%
217 329 %
218 330 \newcommand{\@CANDIDATO}{Nome do candidato}
219 331 \DeclareRobustCommand{\tueCANDIDATO}[1]{%
220 332 \renewcommand{\@CANDIDATO}{#1}
221 333 }
222 334 %
223   -%% Curso
  335 +%
  336 +%
  337 +% tueCURSO
  338 +%
  339 +%
224 340 %
225 341 \newcommand{\@CURSO}{Curso}
226 342 \DeclareRobustCommand{\tueCURSO}[1]{%
227 343 \renewcommand{\@CURSO}{#1}
228 344 }
229 345 %
230   -%% Especialidade
  346 +%
  347 +%
  348 +% tueESPECIALIDADE
  349 +%
  350 +%
231 351 %
232 352 \providebool{@comEspecialidade}
233 353 \boolfalse{@comEspecialidade}
... ... @@ -237,7 +357,11 @@
237 357 \booltrue{@comEspecialidade}
238 358 }
239 359 %
240   -%% Orientador ou Orientadora
  360 +%
  361 +%
  362 +% tueMFORIENTADOR
  363 +%
  364 +%
241 365 %
242 366 \newcommand{\@MFORIENTADOR}{Orientador}
243 367 \newcommand{\@NOMEORIENTADOR}{Nome do/a orientador/a}
... ... @@ -246,7 +370,11 @@
246 370 \renewcommand{\@NOMEORIENTADOR}{#2}
247 371 }
248 372 %
249   -%% CoOrientador ou CoOrientadora
  373 +%
  374 +%
  375 +% tueSEGUNDOORIENTADOR
  376 +%
  377 +%
250 378 %
251 379 \providebool{@comSegOrientador}
252 380 \boolfalse{@comSegOrientador}
... ... @@ -258,7 +386,11 @@
258 386 \renewcommand{\@NOMESEGORIENTADOR}{#2}
259 387 }
260 388 %
261   -%% Terceiro Orientador ou Orientadora
  389 +%
  390 +%
  391 +% tueTERCEIROORIENTADOR
  392 +%
  393 +%
262 394 %
263 395 \providebool{@comTerOrientador}
264 396 \boolfalse{@comTerOrientador}
... ... @@ -270,28 +402,44 @@
270 402 \renewcommand{\@NOMETERORIENTADOR}{#2}
271 403 }
272 404 %
273   -%% Departamento
  405 +%
  406 +%
  407 +% tueDEPARTAMENTO
  408 +%
  409 +%
274 410 %
275 411 \newcommand{\@DEPARTAMENTO}{Departamento}
276 412 \DeclareRobustCommand{\tueDEPARTAMENTO}[1]{%
277 413 \renewcommand{\@DEPARTAMENTO}{#1}
278 414 }
279 415 %
280   -%% Escola
  416 +%
  417 +%
  418 +% tueESCOLA
  419 +%
  420 +%
281 421 %
282 422 \newcommand{\@ESCOLA}{Escola}
283 423 \DeclareRobustCommand{\tueESCOLA}[1]{%
284 424 \renewcommand{\@ESCOLA}{#1}
285 425 }
286 426 %
287   -%% Data
  427 +%
  428 +%
  429 +% tueDATA
  430 +%
  431 +%
288 432 %
289 433 \newcommand{\@DATA}{Data}
290 434 \DeclareRobustCommand{\tueDATA}[1]{%
291 435 \renewcommand{\@DATA}{#1}
292 436 }
293 437 %
294   -%% Palavras chave
  438 +%
  439 +%
  440 +% tuePALAVRASCHAVE
  441 +%
  442 +%
295 443 %
296 444 \newcommand{\@PALAVRASCHAVE}{palavra chave 1, palavra chave 2, palavra chave 3, palavra chave 4, palavra chave 5}
297 445 \newcommand{\@KEYWORDS}{keyword 1, keyword 2, keyword 3, keyword 4, keyword 5}
... ... @@ -300,21 +448,33 @@
300 448 \renewcommand{\@KEYWORDS}{#2}
301 449 }
302 450 %
303   -%% Dedicatoria
  451 +%
  452 +%
  453 +% tueDEDICATORIA
  454 +%
  455 +%
304 456 %
305 457 \newcommand{\@DEDICATORIA}{Dedicat\'{o}ria}
306 458 \DeclareRobustCommand{\tueDEDICATORIA}[1]{%
307 459 \renewcommand{\@DEDICATORIA}{#1}
308 460 }
309 461 %
310   -%% Preambulo
  462 +%
  463 +%
  464 +% tuePREAMBULOLATEX
  465 +%
  466 +%
311 467 %
312 468 \newcommand{\@PREAMBULOLATEX}{\makeindex}
313 469 \DeclareRobustCommand{\tuePREAMBULOLATEX}[1]{%
314 470 \renewcommand{\@PREAMBULOLATEX}{#1}
315 471 }
316 472 %
317   -%% Prefacio
  473 +%
  474 +%
  475 +% tuePREAMBULO
  476 +%
  477 +%
318 478 %
319 479 \newcommand{\@PREAMBULO}{
320 480 \include{prefacio}
... ... @@ -327,21 +487,33 @@
327 487 \renewcommand{\@PREAMBULO}{#1}
328 488 }
329 489 %
330   -%% Conteudo
  490 +%
  491 +%
  492 +% tueCONTEUDO
  493 +%
  494 +%
331 495 %
332 496 \newcommand{\@CONTEUDO}{}
333 497 \DeclareRobustCommand{\tueCONTEUDO}[1]{%
334 498 \renewcommand{\@CONTEUDO}{#1}
335 499 }
336 500 %
337   -%% Apendices
  501 +%
  502 +%
  503 +% tueAPENDICES
  504 +%
  505 +%
338 506 %
339 507 \newcommand{\@APENDICES}{}
340 508 \DeclareRobustCommand{\tueAPENDICES}[1]{%
341 509 \renewcommand{\@APENDICES}{#1}
342 510 }
343 511 %
344   -%% Bibliografia
  512 +%
  513 +%
  514 +% tueBIBLOGRAFIA
  515 +%
  516 +%
345 517 %
346 518 \newcommand{\@BIBLIOGRAFIA}{
347 519 % Incluir todas as entradas na bibliografia
... ... @@ -355,7 +527,11 @@
355 527 \renewcommand{\@BIBLIOGRAFIA}{#1}
356 528 }
357 529 %
358   -%% Indice remissivo
  530 +%
  531 +%
  532 +% tueINDICEREMISSIVO
  533 +%
  534 +%
359 535 %
360 536 \newcommand{\@INDICEREMISSIVO}{
361 537 \cleardoublepage
... ... @@ -365,7 +541,11 @@
365 541 \renewcommand{\@INDICEREMISSIVO}{#1}
366 542 }
367 543 %
368   -%% DISSERTACAO
  544 +%
  545 +%
  546 +% tueDOCUMENTO
  547 +%
  548 +%
369 549 %
370 550 \DeclareRobustCommand{\tueDOCUMENTO}{
371 551 %
... ... @@ -389,7 +569,11 @@
389 569 \end{document}
390 570 }
391 571 %
392   -%% CAPA E SUBCAPA
  572 +%
  573 +%
  574 +% tueCAPAS
  575 +%
  576 +%
393 577 %
394 578 \DeclareRobustCommand{\tueCAPAS}{
395 579 %\usepackage[portuguese]{babel}
... ... @@ -404,13 +588,10 @@
404 588 }
405 589 %
406 590 %
407   -% ================================================================
408 591 %
409   -% Identificacao do documento
  592 +% tueSUMARIO
410 593 %
411   -% ================================================================
412 594 %
413   -%% Sumario/Resumo
414 595 %
415 596 \newenvironment{tueSUMARIO}{
416 597 \typeout{***}
... ... @@ -426,7 +607,11 @@
426 607 \textbf{\@TXT@PALCHAVE@A:}~\@PALAVRASCHAVE
427 608 }
428 609 %
429   -%% Abstract
  610 +%
  611 +%
  612 +% tueABSTRACT
  613 +%
  614 +%
430 615 %
431 616 \newenvironment{tueABSTRACT}{
432 617 \chapter*{\@TXT@SUMARIO@B}
... ... @@ -449,35 +634,36 @@
449 634 \textbf{\@TXT@PALCHAVE@B:}~\@KEYWORDS
450 635 }
451 636 %
452   -%% Acronimos
  637 +%
  638 +%
  639 +% tueACRONIMOS
  640 +%
  641 +%
453 642 %
454 643 \newenvironment{tueACRONIMOS}{
455 644 \chapter*{\@LST@ACRON}\addcontentsline{toc}{chapter}{\@LST@ACRON}
456 645 }{
457 646 }
458 647 %
459   -% ================================================================
460 648 %
461   -% Tabela de conteudos
462 649 %
463   -% ================================================================
  650 +% tueTABELAS
  651 +%
  652 +%
464 653 %
465 654 \newcommand{\@TABELAS}{
466   - \begin{spacing}{.5}
  655 + \begin{spacing}{0.5}
467 656 %
468 657 \@blankoddpage
469 658 \cleardoublepage
470   - \addcontentsline{toc}{chapter}{\@LST@CONT}
471 659 \tableofcontents
472 660 %
473 661 \@blankoddpage
474 662 \cleardoublepage
475   - \addcontentsline{toc}{chapter}{\@LST@FIG}
476 663 \listoffigures
477 664 %
478 665 \@blankoddpage
479 666 \cleardoublepage
480   - \addcontentsline{toc}{chapter}{\@LST@TAB}
481 667 \listoftables
482 668 %
483 669 \@blankoddpage
... ...