Blame view
abnt.cls
63.9 KB
1fbcbd399 first commit |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 |
%$Id: abnt.cls,v 1.27.2.1 2004/11/02 15:04:29 gweber Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % ABNT.CLS % % % Licence: LPPL (LaTeX Project Public License) % You can change this file in the terms of LPPL % (http://www.latex-project.org/lppl.html) % % Licenca: LPPL (LaTeX Project Public License) % Esta licenca diz basicamente que se voce editar o codigo desta % classe, mesmo localmente (no seu micro), voce DEVE RENOMEAR o arquivo % da classe!! Como sempre, nao eh dada nenhuma garantia. % Para o texto completo da licenca, favor seguir o endereco % http://www.latex-project.org/lppl.html % % Classe para confeccao de monografias, dissertacoes ou teses % de acordo com as normas da Associacao Brasileira de Normas % Tecnicas (ABNT). Esta classe, junto com o estilo bibTeX, foram % desenvolvidos no grupo de trabalho abnTeX (ABsurd Norms for TeX :-) % (http://abntex.codigolivre.org.br) % % Class to make theses or monographies following norms defined by % Brazilian Association for Tecnical Norms. This class is developed % by abnTeX group (http://abntex.codigolivre.org.br), together with two % bibTeX styles. % % Author (class): Miguel Vinicius Santini Frasson % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Implementation of this class: % % preamble % class identification % including required packages % option declarations % pnumabnt (default), pnumplain, pnumromarab % sumariocompleto (default), sumarioincompleto % abnttocpagnum (default), tocpagnumnormal % abntfigtabnum (default), normalfigtabnum % noheader, header, plainheader (default), ruledheader, % capchap, capsec % anapmaiusc (default), anapnormal % apapindentindic (default), anapindentcustom % anapname (default), anapnoname % espacosimples, espacoumemeio (default), espacoduplo % sempaccomuns (default), paccomuns % -> no longer supported (kept for compatibility) % autobm (default), noautobm % times, notimes (default) % indentfirst (default), noindentfirst % mechanism for saving other options names % perform tests to set fontsize, openright and paper properly % (in order to get 12pt, a4 and openright as default, but user can change) % option procession % work around for prevent report to add figure and table counter in the % reset list of chapter counter (option disables it) % class 'report' loaded % undo work figure and table around if necessary. % % implementation % setting default spacings % (NOT) loading commom packages % inputenc[latin1], amsmath, amssymb, % amsbsy, dsfont, eucal[mathscr] % loading 'setspace' package, but providing 'workaround' if user don't % use it. % setting margins with simple commands % creating page styles 'plainheader', 'header' and 'ruledheader' % Page numbering section % setting switches and defining \ABNTBeginOfTextualPart according to % the page numbering scheme in option % line spacing commands and environments % Chapter and section: titles, page numbering, etc % This is a very delicated part. Let's give a flavour of what % happened. See comments in implementation for details. % redefining \chapter % - tests for determine begin of textual part and make changes at this % event. % - \pretextualchapter: a stared chapter in the pre-textual part % - ProximoForaDoSumario -> switches off \ABNTaddcontentsline. % - Marks: care is they are inserted by default or not. % - redefinig \@schapter: now \chapter* is almost equal to \chapter, % appart from the title display. It also includes an entry in TOC. % - \@part and \@spart redefined: font purposes. % - defined \ABNTstartsection: stared section with centralized titles % and inclusion in TOC. % - new \@dottedtoline for compleance with NBR 6027-1989 % - \@makechapterhead and \@makeschapterheadredefined to fit % norms. Paying attention to capchap and fonts. % - redefined all \section like commands (apply last redefinitions % and font purposes) % - \anexo and \apendice -> apply old \appendix changes and % replaces \@chapter by \@anapchapter. % redefining important commands (those that set page marks, getting rid % of explicit \MakeUppercase) % \tableofcontents % \listoffigures % \listoftables % thebibliography % theindex (now balanced columns) or use \IndiceNaoBalanceado % custumizable caption separator -> temporarely commented (not required) % environment citado = citacao, for long quotations % pre-textual elements % Capa (cover) and Folha de rosto (face page): defining commands % \instituicao % \autor % \orientador % \coorientador % \titulo % \comentario % \local % \data % and % \capa, displaying what is required according to norms. % \folhaderosto, that prints the face page, according to norms. % Resumo and Abstract. % Environment folhadeaprovacao and \assinatura(*){} % prototype for list of symbols -> no future, I think. % Loading fonts if required. % Auto bold math % Indentation of first paragraph % commented announcements. % % That is it ;-D % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % List of Changes % --------------- % $Log: abnt.cls,v $ % Revision 1.27.2.1 2004/11/02 15:04:29 gweber % resolvido problema com bookmarks e hyperrefs. % % Revision 1.27 2004/04/01 14:07:46 mvsfrasson % % % Retirado um bug no \@chapter que causa o cabecalho ter o numero do capitulo errado % % Revision 1.26 2003/10/13 09:40:01 gweber % Passa a usar cvs-id.def para gerar informações sobre data e versão. % % Revision 1.25 2003/09/16 16:49:29 gweber % Troca de \bibname por \refname o que equivale a trocar "Referêncas Bibliográficas" por % "Referências". Isto atende ao que entendemos esteja implícito na NBR14724-2002. % % Revision 1.24 2003/08/22 14:45:18 gweber % Resolvido bug 178 que fazia o texto de \part aparecer duas vezes. % % Revision 1.23 2003/06/30 14:10:47 gweber % Links criados com hyperref para apêndices e anexos não misturam mais com os links para capítulos comuns, % resolvendo o bug #140. % % Revision 1.22 2003/05/30 10:39:19 gweber % Alterações introduzidas em 0.7-beta. % % Revision 1.21.2.1 2003/05/30 10:16:07 gweber % Correction of bug 137 which causes the class to fail when loading % the package hyperref and using \tableofcontents. % This also resolves partially bugs 82 and 51. % % % Added in version 1.1 patch 1 % % - fixed bug of undefined \ABNT<section name>mark, which shows twice the % section name (only for subsection, subsubsection, and paragraph) % % Added in version 1.1 % % - Fixed bug of missing paragraphy after \chapter % - \ProximoForaDoSumario has optional parameter to et page marks % - Fixed bug of abscense of package setspace. % - Added options `abntfigtabnum' and `normalfigtabnum' to deal with % figure and table counters. % - Added abnt style for toc. Options `abnttoc' and % `normaltoc' were added. % - Fixed bug of defining pagestyles only if non-noheader. % % Added in version 1 (finally) % % - Fixed mispelling on command \espaco. % - Fixed "capsec" (not working before). % - Added full support for Annex and Appendix, with several class options % and commands for customization. % - Not using package "textcase" anymore, since there is a undesirable % extra space included with \MakeUppercase. % - Fixed default options. Now "openright" is really default. % - Now using feature of "setspace" to avoid extra spacing on display % math. No bugs if the version of setspace is not up to date. % - Added \ProximoForaDoSumario, to avoid one to not include all \chapter* % if one wants to set diferently the title and contents of such chapters. % - Fixed bug on \part toc entries (buggy extra space) % - Now font size for \capter(*) is given by \ABNTchaptersize, preventing a % boring redefinition of \ABNTtocchapterfont. % - Option paccomuns no longer default. % % Added in version 1 beta 3 % % - Fixed bug in page marks for \section*{}. % - "setspace" no longer require especific (new) version. % - Added "no displayskip stretch" support offered by 'setspace' for better % aesthetic. % - Added compatibility with "hyperref" package (no more incompatible % optional parameter on \chapter* -- hyperref redefines some commands) % - Useless commands removed: \cabecalhoesq and \cabecalhodir. % % Added in version 1 beta 2 % % - Correct figure and table counter. % - Some support to "folha de apresentacao", including environment % \begin{folhadeapresentacao} e \assinatura{} (signature). % - Fixed bug in pnumplain and headers. % - Fixed bug in page marks for \@schapter. % % Added in version 1 beta % % Total reformulation of the class! The main added feature are: % - Good machanism for "Folha de Rosto" (face page) added. % - Page numbering squemes according to the norms. % - Right page headings. % - Correct section titles. % - Several options added. % - Features removed, like margin care % ...too many changes to list. Just like a "new" class. % % Added in version 0.4.3 % % - Stupid but severe bug on \listoffigures and \listoftables % left from previous version finally removed % - Bug fixes in theindex and thebibliography % - Redefinition of \cleardoublepage (empty page => page style empty) % - This `list of changes' added % % Added in version 0.4.2 % % - Added \StarChaptersInTOC, \StarChaptersNotInTOC to differenciate % from "standard" (old) stared chapters like \tableofcontents, % \listoffigures, \listoftables, thebibliography and theindex. % - Huge bugs in commands or environments \tableofcontents, \listoffigures, % \listoftables, thebibliography and theindex fixed. % - Command \SpAcEs changed to \spABNT (more reliable than before) % % Added in version 0.4.1 % % - Extract forgotten debug command % - Fix conflict (\Sp command) in final messagem, creating \SpAcEs (and % hoping nobody made it before) % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % PREAMBLE % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%% IDENTIFICATION %%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e}% \input{cvs-id.def} \CVSExtract$Id: abnt.cls,v 1.27.2.1 2004/11/02 15:04:29 gweber Exp $ \CVSClass{abnt}{\space Classe abnt (NBR6024, NBR6027, NBR6028, NBR14724)} %substitui \ProvidesPackage (replaces \ProvidesPackage) % \NeedsTeXFormat{LaTeX2e}% % \ProvidesClass{abnt}% % [2002/05/20 version 1 da Classe LaTeX2e ABNT] %%%%%% Required packages for the implementation of this class %%%%%% % ifthen - conditions in LaTeX \RequirePackage{ifthen} % calc - standard package for length and number easy calculations \RequirePackage{calc} % multicol - better multicolunms \RequirePackage{multicol} %%%%%%%%%%%%% OPTION DECLARATION %%%%%%%%%%%% %% Page numbering squeme \providecommand{\ABNTpnum}{} \DeclareOption{pnumabnt} {\renewcommand{\ABNTpnum}{ABNT}} \DeclareOption{pnumplain} {\renewcommand{\ABNTpnum}{plain}} \DeclareOption{pnumromarab} {\renewcommand{\ABNTpnum}{RomSumArab}} \ExecuteOptions{pnumabnt} %% Automatically include in TOC bibliography, index and stared chapters ewboolean{ABNTincludeintoc} \DeclareOption{sumariocompleto} {\setboolean{ABNTincludeintoc}{true}} \DeclareOption{sumarioincompleto} {\setboolean{ABNTincludeintoc}{false}} \ExecuteOptions{sumariocompleto} %% Style of page numbers in TOC ewboolean{ABNTpagenumstyle} \DeclareOption{abnttoc} {\setboolean{ABNTpagenumstyle}{true}} \DeclareOption{normaltoc} {\setboolean{ABNTpagenumstyle}{false}} \ExecuteOptions{abnttoc} %% Figures and tables independent of sections? ewboolean{ABNTfigtabnumbers} \DeclareOption{abntfigtabnum}{\setboolean{ABNTfigtabnumbers}{true}} \DeclareOption{normalfigtabnum}{\setboolean{ABNTfigtabnumbers}{false}} \ExecuteOptions{abntfigtabnum} %% Option: page headers ewboolean{ABNTheader} \providecommand{\ABNTheadertype}{\relax} \DeclareOption{noheader} {\setboolean{ABNTheader}{false}} \DeclareOption{header} {\setboolean{ABNTheader}{true} \renewcommand{\ABNTheadertype}{normal}} \DeclareOption{plainheader} {\setboolean{ABNTheader}{true} \renewcommand{\ABNTheadertype}{plain}} \DeclareOption{ruledheader} {\setboolean{ABNTheader}{true} \renewcommand{\ABNTheadertype}{ruled}} \ExecuteOptions{plainheader} %% Option `capchap', `capsec': %% titles of chapters or sections in capital letters ewboolean{ABNTcapchap} \setboolean{ABNTcapchap}{false} ewboolean{ABNTcapsec} \setboolean{ABNTcapsec}{false} \DeclareOption{capchap}{\setboolean{ABNTcapchap}{true} \setboolean{ABNTCapAnnexAppendix}{true}} \DeclareOption{capsec}{\setboolean{ABNTcapsec}{true}} %% Option `anapmaiusc' and `anapnormal' %% should \annexname and \appendixname be on capital letters? ewboolean{ABNTCapAnnexAppendix} \setboolean{ABNTCapAnnexAppendix}{true} % manual execution of option for % cooperation between `capchap' % and `anexapendnormal' \DeclareOption{anapmaiusc}{\setboolean{ABNTCapAnnexAppendix}{true}} \DeclareOption{anapnormal}{\setboolean{ABNTCapAnnexAppendix}{false}} %% Option `anapindentindic' in order to \anexo or \apendice make ABNT %% strict indentation on its titles. ewboolean{ABNTAnApIndicativoIndent} \DeclareOption{anapindicindent}{\setboolean{ABNTAnApIndicativoIndent}{true}} \DeclareOption{anapcustomindent}{\setboolean{ABNTAnApIndicativoIndent}{false}} \ExecuteOptions{anapindicindent} %% Option `anapindentindic' in order to \anexo or \apendice make ABNT %% strict indentation on its titles. ewboolean{ABNTAnApName} \DeclareOption{anapname}{\setboolean{ABNTAnApName}{true}} \DeclareOption{anapnoname}{\setboolean{ABNTAnApName}{false}} \ExecuteOptions{anapname} %% Line Spacing options: change current setting. ewcommand*{\ABNTespacodefault}{} % \DeclareOption{espacoumemeio} {\renewcommand*{\ABNTespacodefault}% {\taxaespacoumemeio}} % default \DeclareOption{espacosimples} {\renewcommand*{\ABNTespacodefault}% {\taxaespacosimples}} \DeclareOption{espacoduplo} {\renewcommand*{\ABNTespacodefault}% {\taxaespacoduplo}} \ExecuteOptions{espacoumemeio} %% Margin care --> Removed since version 1 beta %% Options `spacednotes': removed since version 0.3 % Assuming notes single spaced always (no alternative if using setspace ;-D %% Option: loading common packages NO LONGER SUPPORTED!!! ewboolean{ABNTcommonpack} \DeclareOption{paccomuns} {\setboolean{ABNTcommonpack}{true}} \DeclareOption{sempaccomuns} {\setboolean{ABNTcommonpack}{false}} \ExecuteOptions{sempaccomuns} %% Auto bold math: bold math version ir text font is in bold face ewboolean{ABNTautobm} \DeclareOption{autobm} {\setboolean{ABNTautobm}{true}} \DeclareOption{noautobm} {\setboolean{ABNTautobm}{false}} \ExecuteOptions{autobm} %% font option: times as default or not ewboolean{ABNTtimesfont} \DeclareOption{times} {\setboolean{ABNTtimesfont}{true}} \DeclareOption{notimes} {\setboolean{ABNTtimesfont}{false}} \ExecuteOptions{notimes} %% Option to indent the first paragraph of each section or chapter ewboolean{ABNTindentfirst} \DeclareOption{indentfirst} {\setboolean{ABNTindentfirst}{true}} \DeclareOption{noindentfirst} {\setboolean{ABNTindentfirst}{false}} \ExecuteOptions{indentfirst} \def\ABNTcurrentoptions{} ewcommand{\AddCurrentOptionToList}{% \ifx\ABNTcurrentoptions\@empty% \edef\ABNTcurrentoptions{\CurrentOption}% \else% \edef\ABNTcurrentoptions{\ABNTcurrentoptions,\CurrentOption}% \fi% } %% All options not defined are passed to `report' \DeclareOption*{% \AddCurrentOptionToList % if some font or paper option is passed, a flag is set. \ifthenelse{\equal{\CurrentOption}{10pt}\or\equal{\CurrentOption}{11pt}}% {\setboolean{ABNTfontsize}{true}}{}% \ifthenelse{\equal{\CurrentOption}{a5paper}\or% \equal{\CurrentOption}{b5paper}\or% \equal{\CurrentOption}{letterpaper}}% {\setboolean{ABNTpaper}{true}}{}% \ifthenelse{\equal{\CurrentOption}{openany}}% {\setboolean{ABNTopen}{true}}{}% \PassOptionsToClass{\CurrentOption}{report}} % testing if user use other options for font size or paper % than 12pt, a4paper and openright ewboolean{ABNTfontsize} \setboolean{ABNTfontsize}{false} ewboolean{ABNTpaper} \setboolean{ABNTpaper}{false} ewboolean{ABNTopen} \setboolean{ABNTopen}{false} % Process options (without star -> in the order of definition!). \ProcessOptions % After process options, flags are properly set. % Passing options to class, that will be loaded in \LoadClass \ifthenelse{\boolean{ABNTfontsize}}% {}{\PassOptionsToClass{12pt}{report}} \ifthenelse{\boolean{ABNTpaper}}% {}{\PassOptionsToClass{a4paper}{report}} \ifthenelse{\boolean{ABNTopen}}% {}{\PassOptionsToClass{openright}{report}} %%%%%%%%% Lying to report :-) -> working %% %% Report says: ewcounter{figure}[chapter], ewcounter{table}[chapter] %% But this is not ABNT (figure counter should not reset to 1 if chapter %% increments). There is no straight forward way to "\renewcounter" %% then. So I have to make an work around. %% %% Idea: redefine ewcounter s.t. id newcounter is figure or table, then do %% what I want (do not include [chapter] in the command). Otherwise, do %% normal ewcounter. %% %% Advantage of this: some package may suppose that the counters of figure %% and table are actually figure and table, and not ABNTfigure, ABNTtable, %% as in previous versions \ifthenelse{\boolean{ABNTfigtabnumbers}} { % saving old ewcounter \let\ABNToldnewcounter ewcounter\relax \def\ABNTeatbrackets[#1]{\relax} \renewcommand{ ewcounter}[1]% {\ifthenelse{\equal{#1}{figure}\or\equal{#1}{table}}% {\ABNToldnewcounter{#1}\@ifnextchar[{\ABNTeatbrackets}{}}% {\ABNToldnewcounter{#1}}% } } {} %%%%%%%%%%%% LOADIND REPORT CLASS %%%%%%%%%%%% % Load base class using current setting for basic options. \LoadClass{report} \ifthenelse{\boolean{ABNTfigtabnumbers}} { %% undoing redefinition of ewcounter and fixing \the(counters) \let ewcounter\ABNToldnewcounter\relax \renewcommand{\thefigure}{\arabic{figure}} \renewcommand{\thetable}{\arabic{table}} } {} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% %% %% IMPLEMENTATION %% %% %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Stretch factor for default line spacing schemes ewcommand*{\taxaespacosimples}{1.} ewcommand*{\taxaespacoumemeio}{1.35} ewcommand*{\taxaespacoduplo}{1.7} %%%%%%%% Load interesting packages : OBSOLET!!! %%%%%%%%%%%%%%%% \ifthenelse{\boolean{ABNTcommonpack}}% {% \typeout{ABNT: Opcao 'pacotescomuns' ativa!} % fontenc[T1] --> removed for possible pdf compatibility % inputenc[latin1]: more common input encoding \typeout{ABNT -> incluindo inputenc[latin1]}% \RequirePackage[latin1]{inputenc}% % amsmath: AMS math environments for LaTeX \typeout{ABNT -> incluindo amsmath}% \RequirePackage{amsmath}% % amssymb: AMS symbols \typeout{ABNT -> incluindo amssymb}% \RequirePackage{amssymb}% % amsbsy: bold version of symbols in amssymb \typeout{ABNT -> incluindo amsbsy}% \RequirePackage{amsbsy}% % dsfont: double stroke fonts (as IR, IN, etc) \IfFileExists{dsfont.sty}{% \typeout{ABNT -> incluindo dsfont}% \RequirePackage{dsfont}}{}% % eucal[mathscr]: new calligraphic letters \typeout{ABNT -> incluindo eucal[mathscr]}% \RequirePackage[mathscr]{eucal}% % makeidx -> removed. Useless if the user don't care about. }% {}% %%%%%% Package for proper line spacing commands and environments \IfFileExists{setspace.sty}% {\RequirePackage{setspace}}% then % else {% % first a warning at the end of the document and than % fake the \setstretch command, not provided by setspace. \AtEndDocument{\ClassWarningNoLine{abnt}% % warning text % Package 'setspace' needed and was not found. % Please install it or check for errors in loading it. % It can be found at CTAN (www.ctan.org), for example. % For more information, refer to the class manual. {-----------------------------------------------\MessageBreak% O pacote 'setspace' eh necessario e nao foi\MessageBreak% encontrado. Favor instala-lo propriamente ou\MessageBreak% checar por erros em sua leitura. Ele pode ser\MessageBreak% encontrado na CTAN (www.ctan.org), por exemplo.\MessageBreak% Para mais informacoes, leia o manual da classe.\MessageBreak% -----------------------------------------------}% }% \ifthenelse{\isundefined{\@currsize}} {\providecommand{\setstretch}[1]{\def\baselinestretch{#1} ormalsize}} {\providecommand{\setstretch}[1]{\def\baselinestretch{#1}\@currsize}} } % This command is defined by 'setspace' package, to ajust extra spacing % before and after display math. It depends on if your setspace.sty is of % 21 march 1998 or ouder. \providecommand{\setdisplayskipstretch}[1]{\relax} % equivalent to the option 'nodisplayskipstretch' of setspace. \setdisplayskipstretch{1.0} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Setting margins %% (old Margin care mechanism removed since version 1 beta.) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifthenelse{\boolean{ABNTheader}}% {% %%%% VERTICAL LENGHTS %%%% % The distance beetwen the top of the header and the top of the text is % of 1cm, this is, 1cm=\headheight+\headsep % ...but, we have to consider the depth of the header, addin 2mm. \setlength{\headsep}{1.2cm-\headheight} % The distance beetwen the paper border and the number must be 2cm % 2cm=\topmargin+\voffset+1in \setlength{\topmargin}{2cm-1in-\voffset} % The inferior border must be 2cm % \paperheight=\topmargin+\voffset+1in+\headheight+\headsep+\textheight+2cm \setlength{\textheight}% {\paperheight-\topmargin-\voffset-1in-\headheight-\headsep-2cm} }% {% no header is not ABNT!!! % Let's fake it: 2cm each vertical margin and de same horizontal margin. \setlength{\topmargin}{2cm-\headheight-\headsep-\voffset-1in} \setlength{\textheight}% {\paperheight-2cm-\footskip-2cm} }% %%%% HORIZONTAL LENGHTS %%%% % The left margin is 3cm, and the right margin equals to 2cm. \setlength{\oddsidemargin}{3cm-\hoffset-1in} % for compatibility with twoside print, the length of the margins must % be exchanged. \setlength{\evensidemargin}{2cm-\hoffset-1in} % \paperwidth=\textwidth+\oddsidemargin+\hoffset+1in+2cm \setlength{\textwidth}{\paperwidth-\oddsidemargin-\hoffset-1in-2cm} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Page styles available: % plainheader, header, ruledheader %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % fontstyle for header elements ewcommand{\rightmarkformat}{\small\itshape} ewcommand{\leftmarkformat}{\itshape} ewcommand{\thepageformat}{\small} % ewcommand{\ABNTmarkboth}[2]{% \ifthenelse{\boolean{ABNTNextOutOfTOC}} {\markboth{\ABNTnextmark}{\ABNTnextmark}} {\markboth{#1}{#2}}% } ewcommand{\ABNTmarkright}[1]{% \ifthenelse{\boolean{ABNTNextOutOfTOC}} {\markright{\ABNTnextmark}} {\markright{#1}}% } %%%%%%% Defining pagestyle "header" % ewcommand{\ps@header}{% \renewcommand{\@oddfoot}{}% \renewcommand{\@evenfoot}{}% \renewcommand{\@oddhead}% {{\rightmarkformat\rightmark}\hfill{\thepageformat\thepage}}% \renewcommand{\@evenhead}% {{\thepageformat\thepage}\hfill{\leftmarkformat\leftmark}}% % Para \chapter* mostrar o cabecalho \let\@mkboth\ABNTmarkboth% % Definindo a maneira como o comando o \chapter marca o cabecalho \renewcommand{\chaptermark}[1]{% \markboth% {\ifnum \c@secnumdepth >\m@ne% \thechapter{} % \fi% ##1}% {\ifnum \c@secnumdepth >\m@ne% \thechapter{} % \fi% ##1}% }% \renewcommand{\sectionmark}[1]{% \markright{% \ifnum \c@secnumdepth >\z@% \thesection\ \ % \fi% ##1}% }% }% %% Defining pagestyle plainheader % ewcommand{\ps@plainheader}{% \renewcommand{\@oddfoot}{}% \renewcommand{\@evenfoot}{}% \renewcommand{\@oddhead}{\hfill{\thepageformat\thepage}}% \renewcommand{\@evenhead}{{\thepageformat\thepage}\hfill}% % Para \chapter* mostrar o cabecalho \let\@mkboth\ABNTmarkboth% % Definindo a maneira como o comando o \chapter marca o cabecalho \renewcommand{\chaptermark}[1]{% \markboth% {\ifnum \c@secnumdepth >\m@ne% \thechapter\ \ % \fi% ##1}% {\ifnum \c@secnumdepth >\m@ne% \thechapter\ \ % \fi% ##1}% }% \renewcommand{\sectionmark}[1]{% \markright{% \ifnum \c@secnumdepth >\z@% \thesection\ \ % \fi% ##1}% }% }% %% Defining pagestyle ruledheader % ewcommand{\ps@ruledheader}{% \renewcommand{\@oddfoot}{}% \renewcommand{\@evenfoot}{}% \renewcommand{\@oddhead}% {\underline{\makebox[\textwidth]{\raisebox{-.5ex}{}% {\rightmarkformat\rightmark}\hfill{\thepageformat\thepage}}}}% \renewcommand{\@evenhead}% {\underline{\makebox[\textwidth]{\raisebox{-.5ex}{}% {\thepageformat\thepage}\hfill{\leftmarkformat\leftmark}}}}% % Para \chapter* mostrar o cabecalho \let\@mkboth\ABNTmarkboth% % Definindo a maneira como o comando o \chapter marca o cabecalho \renewcommand{\chaptermark}[1]{% \markboth% {\ifnum \c@secnumdepth >\m@ne% \thechapter\ \ % \fi% ##1}% {\ifnum \c@secnumdepth >\m@ne% \thechapter\ \ % \fi% ##1}% }% \renewcommand{\sectionmark}[1]{% \markright{% \ifnum \c@secnumdepth >\z@% \thesection\ \ % \fi% ##1}% }% }% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Page numbering %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ewboolean{ABNTinpretext} \setboolean{ABNTinpretext}{true} ewboolean{ABNTaftertoc} \setboolean{ABNTaftertoc}{false} % The command \ABNTBeginOfTextualPart is executed by \tableofcontents at % its end. It's intented to page style and page number settings. \providecommand{\ABNTBeginOfTextualPart}{} ewcommand{\chaptertitlepagestyle}{plain} \ifthenelse{\equal{\ABNTpnum}{plain}} {% \setboolean{ABNTinpretext}{false} \setboolean{ABNTaftertoc}{true} \ifthenelse{\boolean{ABNTheader}} {% \ifthenelse{\equal{\ABNTheadertype}{plain}}% {\pagestyle{plainheader}} {% \ifthenelse{\equal{\ABNTheadertype}{normal}}% {\pagestyle{header}}% {\pagestyle{ruledheader}}% }% \renewcommand{\chaptertitlepagestyle}{plainheader}% }% {% \pagestyle{plain}% \renewcommand{\chaptertitlepagestyle}{plain} }% }% {% \ifthenelse{\equal{\ABNTpnum}{ABNT}}% {% ABNT strict % - pagestyle is empty until \tableofcontents, when it becames with % numeration (depending on `header' or `plain' header style) % - page counter starts AT `folha de rosto'. % % Makeing titlepage environment increase page counter \let\ABNToldendtitlepage\endtitlepage\relax \renewcommand{\endtitlepage}{\ABNToldendtitlepage\addtocounter{page}{1}} \pagestyle{empty} \renewcommand{\thepage}{} \renewcommand{\chaptertitlepagestyle}{empty} \renewcommand{\ABNTBeginOfTextualPart}% {% \renewcommand{\thepage}{\arabic{page}} \ifthenelse{\boolean{ABNTheader}} {% \ifthenelse{\equal{\ABNTheadertype}{plain}}% {\pagestyle{plainheader}} {% \ifthenelse{\equal{\ABNTheadertype}{normal}}% {\pagestyle{header}}% {\pagestyle{ruledheader}}% }% \renewcommand{\chaptertitlepagestyle}{plainheader}% }% {% \pagestyle{plain}% \renewcommand{\chaptertitlepagestyle}{plain} }% }% }% {% RomArab % - page style with numeration % - BEFORE \tableofcontents % \thepage in roman % page counter starts AFTER `folha de rosto' % - AFTER \tableofcontents % \thepage in arabic % page counter starts again % \ifthenelse{\boolean{ABNTheader}} {% \ifthenelse{\equal{\ABNTheadertype}{plain}}% {\pagestyle{plainheader}} {% \ifthenelse{\equal{\ABNTheadertype}{normal}}% {\pagestyle{header}}% {\pagestyle{ruledheader}}% }% \renewcommand{\chaptertitlepagestyle}{plainheader}% }% {% \pagestyle{plain}% \renewcommand{\chaptertitlepagestyle}{plain} }% \renewcommand{\thepage}{\roman{page}} \renewcommand{\ABNTBeginOfTextualPart}% {% \renewcommand{\thepage}{\arabic{page}} \setcounter{page}{1} }% }% }% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Line spacing stuff %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Since version 0.3 the `setspace' package is used. % Space scheme in notes (footnotes and margin notes) removed since % version 0.3 since setspace do not support it; footnotes are always % single spaced! % \espaco{} - ativa o espacamento para um numero dado (taxa de % esticamento), mas aceita os parametros simples, umemeio, e duplo. ewcommand{\espaco}[1]% {\ifthenelse{\equal{#1}{simples}}% se espacamentos simples {\setstretch{\taxaespacosimples}} % entao { %senao (espaco simples) \ifthenelse{\equal{#1}{umemeio}}% se espaco 1 1/2 {\setstretch{\taxaespacoumemeio}} % entao {%senao (espaco 1 1/2) \ifthenelse{\equal{#1}{duplo}}% se espaco duplo {\setstretch{\taxaespacoduplo}}% entao {\setstretch{#1}} % senao espaco dado } %fim se espaco 1 1/2 } %fim se espaco simples }%fim newcommand ewenvironment{espacosimples} {\begin{spacing}{\taxaespacosimples}}{\end{spacing}} ewenvironment{espacoumemeio} {\begin{spacing}{\taxaespacoumemeio}}{\end{spacing}} ewenvironment{espacoduplo}% {\begin{spacing}{\taxaespacoduplo}}{\end{spacing}} ewboolean{ABNThypertoc} \AtBeginDocument{% % default spacing (set by class options) \espaco{\ABNTespacodefault}% \@ifpackageloaded{hyperref}{\setboolean{ABNThypertoc}{true}}{\setboolean{ABNThypertoc}{false}}% } % Font track mechanism (like in utthesis.cls) % - removed from implementation since version 0.3. % - use instead package `relsize'. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Chapter title page style %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Redefining \chapter and \part. The changes are % - \chapteritlepagestyle instead of explict plain page style % - \ABNTchaptermark instead of \chaptermark (must be before % \addcontentsline !!!) % - several commands were replaced by abntversions due to nuances of the % norms :-( it can create several uncompatibilities with packages that % change explictily these important commands, although I have tried very % hard to make as less damage on compatibility as possible. As a result % of this, package hyperref is totally broken with abnt.cls. %%%%%%%%%%%%%%%%%%%%%% Special definitions %%%%%%%%%%%%%%%%%%%% % What is going on here? % % This class supports auto include in toc for both \chapter* and % \section* (and similars). As we know, the command \chapter admits an % optional argument, which goes to the toc and the marks, if it's present % (otherwise the main parameter of \chapter is used in toc and marks also.) % % To allow exactly the same mechanism for \chapter and \chapter*, \section % and \section*, \subsection and \subsection*, etc, I had to define % similar commands to some important core commands in LaTeX, like \secdef % (we make a new one to avoid conflicts with other packages) and % \@startsection (I make a new one too). % % Now, \ABNTstartsection, appart from make the stared version of a % section-like command to include the title in toc (if a boolean is set to % true), the title is centered for stared form. % % Now, \chapter* and \part* are almost equal to \chapter and \part % % The origin of this material are the files % $texmfDIR/tex/latex/base/latex.ltx (codigo fonte do LaTeX) % $texmfDIR/tex/latex/base/report.cls (classe standard) % From the definition of \secdef -> stared version now admits optional % param (after bug with hyperref, it was no longer used.) \def\ABNTsecdef#1#2{\@ifstar{\@dblarg{#2}}{\@dblarg{#1}}} % Changed explicit \thispagestyle{empty} ewcommand{\chaptertype}{}% \renewcommand\chapter% {% \if@openright\cleardoublepage\else\clearpage\fi% \thispagestyle{\chaptertitlepagestyle} \ifthenelse{\boolean{ABNTinpretext}}% {% \ifthenelse{\boolean{ABNTaftertoc}}% {% change to textual part \setboolean{ABNTinpretext}{false}% \ABNTBeginOfTextualPart% }% {}% }% {}% \global\@topnum\z@% \@afterindentfalse% % \ABNTsecdef\@chapter\@schapter% \secdef\@chapter\@schapter% }% % To make pre-textual chapters (that fits page numbering squeme...) % this is equal to \chapter*{}, but ignores in witch part is it. It does % not change any tags. ewcommand\pretextualchapter% {% \if@openright\cleardoublepage\else\clearpage\fi% \thispagestyle{\chaptertitlepagestyle} \global\@topnum\z@% \@afterindentfalse% \@schapter% }% % Created useful \resetsubcounters from the code of \stepcounter. ewcommand{\resetsubcounters}[1]{% \begingroup \let\@elt\@stpelt \csname cl@#1\endcsname \endgroup} %% \ProximoForaDoSumario -> taking out some chapter or section from toc. ewboolean{ABNTNextOutOfTOC} \setboolean{ABNTNextOutOfTOC}{false} %% \ProximoForaDoSumario[mark text] % Now \ProximoForaDoSumario (re)sets the marks too. If one still want the % marks, he/she must use it as the optional parameter of this command. ewcommand{\ABNTnextmark}{} ewcommand{\ProximoForaDoSumario}[1][] { \setboolean{ABNTNextOutOfTOC}{true} \renewcommand{\ABNTnextmark}{#1} } ewcommand{\ABNTaddcontentsline}[3]% {\ifthenelse{\boolean{ABNTNextOutOfTOC}} {\setboolean{ABNTNextOutOfTOC}{false}} {\addcontentsline{#1}{#2}{#3}}% } ewcommand{\ABNTchaptermark}[1] {% \ifthenelse{\boolean{ABNTNextOutOfTOC}} {\markboth{\ABNTnextmark}{\ABNTnextmark}} {\chaptermark{#1}}% } ewcommand{\ABNTsectionmark}[1] {% \ifthenelse{\boolean{ABNTNextOutOfTOC}} {\markright{\ABNTnextmark}} {\sectionmark{#1}}% } % \@chapter : \def\@chapter[#1]#2% {\ifthenelse{\boolean{ABNThypertoc}}{\renewcommand{\theHchapter}{\chaptertype\thechapter}}{} \ifnum \c@secnumdepth >\m@ne \refstepcounter{chapter}% \ABNTchaptermark{#1}% This command MUST came before addcontentsline \typeout{\@chapapp\space\thechapter.}% \ifthenelse{\boolean{ABNTaftertoc}} {\ABNTaddcontentsline{toc}{chapter}% {\protect umberline{\thechapter}#1}} {} \else \ABNTchaptermark{#1}% This command MUST came before addcontentsline \ifthenelse{\boolean{ABNTaftertoc}}% {\ABNTaddcontentsline{toc}{chapter}{#1}}% {}% \fi \if@twocolumn \@topnewpage[\@makechapterhead{#2}]% \else \@makechapterhead{#2}% \@afterheading \fi\par} %% From the \@chapter code. Now \@schapter does almost the same as %% \@chapter. Added \resetsubcounters. \def\@schapter#1{% \ifthenelse{\boolean{ABNThypertoc}}{\renewcommand{\theHchapter}{\chaptertype\thechapter}}{} \if@twocolumn \@topnewpage[\@makeschapterhead{#1}] \else \@makeschapterhead{#1} \@afterheading \fi \@mkboth{#1}{#1} % <-- inserted (must be before addcontentsline) \ifthenelse{\boolean{ABNTincludeintoc}}% {% \ifthenelse{\boolean{ABNTaftertoc}} {\ABNTaddcontentsline{toc}{chapter}{#1}} {} }% {} \resetsubcounters{chapter}\par }% % Fonts in \@part and \@part* changed. Some \resetsubcounters added. \def\@part[#1]#2{% \ifnum \c@secnumdepth >-2\relax \refstepcounter{part}% \ABNTaddcontentsline{toc}{part}{\protect umberline{\thepart}#1}% \else \resetsubcounters{part} \ABNTaddcontentsline{toc}{part}{#1}% \fi \markboth{}{}% {\centering \interlinepenalty \@M ormalfont \ifnum \c@secnumdepth >-2\relax %\ABNTchapterfont\huge\ifthenelse{\boolean{ABNTcapchap}}% % {\MakeUppercase{\partname~\thepart}}% % {\partname~\thepart} \ABNTchapterfont\LARGE\ifthenelse{\boolean{ABNTcapchap}}% {\MakeUppercase{\partname~\thepart}}% {\partname~\thepart} \par \vskip 20\p@ \fi %\ABNTchapterfont\Huge\ifthenelse{\boolean{ABNTcapchap}}% % {\MakeUppercase{#2}}% % {#2}\par}% \ABNTchapterfont\LARGE\ifthenelse{\boolean{ABNTcapchap}}% {\MakeUppercase{#2}}% {#2}\par}% \@endpart} \def\@spart#1{% \ABNTaddcontentsline{toc}{part}{#1}% \markboth{}{}% {\centering \interlinepenalty \@M ormalfont \ABNTchapterfont\Huge\ifthenelse{\boolean{ABNTcapchap}}% {\MakeUppercase{#1}}% {#1}\par}% \@endpart} % From \@startsection. The only difference is that it calls \@ssect % changing the meaning id the first parameter. Now, instead of indentation, % it gives section level for TOC purposes. \def\ABNTstartsection#1#2#3#4#5#6{% \if@noskipsec \leavevmode \fi \par \@tempskipa #4\relax \@afterindenttrue \ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \@afterindentfalse \fi \if@nobreak \everypar{}% \else \addpenalty\@secpenalty\addvspace\@tempskipa \fi \@ifstar {\ABNTssect{#1}{#4}{#5}{#6}}% #3 replaced by #1 here {\@dblarg{\ABNTsect{#1}{#2}{#3}{#4}{#5}{#6}}}} % I change the meaning of the first paramenter here. Instead of an indent % skip, it is now the name of the section, for `toc' purposes. \def\ABNTssect#1#2#3#4#5{% \@tempskipa #3\relax \ifdim \@tempskipa>\z@ \begingroup #4{% \interlinepenalty \@M \centering \ifthenelse{\boolean{ABNTcapsec}} {\MakeUppercase{#5}}{#5}\@@par}% \endgroup \@ifundefined{ABNT#1mark}{}{\csname ABNT#1mark\endcsname{#5}} \ifthenelse{\boolean{ABNTincludeintoc}} {\ABNTaddcontentsline{toc}{#1}{#5}} {} \else \def\@svsechd{#4{#5}% \@ifundefined{ABNT#1mark}{}{\csname ABNT#1mark\endcsname{#5}} \ifthenelse{\boolean{ABNTincludeintoc}}% {\ABNTaddcontentsline{toc}{#1}{#5}}{} }% \fi \@xsect{#3}} \def\ABNTsect#1#2#3#4#5#6[#7]#8{% \ifnum #2>\c@secnumdepth \let\@svsec\@empty \else \refstepcounter{#1}% \protected@edef\@svsec{\@seccntformat{#1}\relax}% \fi \@tempskipa #5\relax \ifdim \@tempskipa>\z@ \begingroup #6{% \@hangfrom{\hskip #3\relax\@svsec}% \interlinepenalty \@M \ifthenelse{\boolean{ABNTcapsec}} {\MakeUppercase{#8}}{#8}\@@par}% \endgroup \@ifundefined{ABNT#1mark}{}{\csname ABNT#1mark\endcsname{#7}} \ABNTaddcontentsline{toc}{#1}{% \ifnum #2>\c@secnumdepth \else \protect umberline{\csname the#1\endcsname}% \fi #7}% \else \def\@svsechd{% #6{\hskip #3\relax \@svsec \ifthenelse{\boolean{ABNTcapsec}} {\MakeUppercase{#8}}{#8}}% \@ifundefined{ABNT#1mark}{}{\csname ABNT#1mark\endcsname{#7}} \ABNTaddcontentsline{toc}{#1}{% \ifnum #2>\c@secnumdepth \else \protect umberline{\csname the#1\endcsname}% \fi #7}}% \fi \@xsect{#5}} %%%%%%%%%%%%%%%%%% end of Special definitions %%%%%%%%%%%%%%%% % adding style for page numbers required by NBR 6027 \let\old@dottedtocline\@dottedtocline \renewcommand{\@dottedtocline}[5]{% \ifthenelse{\boolean{ABNTpagenumstyle}} {% {\renewcommand{\@pnumwidth}{2.5em}% \renewcommand{\@tocrmarg}{3.5em} \old@dottedtocline{#1}{#2}{#3}{#4}% {\ifthenelse{\equal{#5}{}}{}{p.\thinspace#5}}}% }% {\old@dottedtocline{#1}{#2}{#3}{#4}{#5}}% } %% Font which chapter titles will be printed \ifthenelse{\boolean{ABNTcapchap}} { ewcommand{\ABNTchapterfont}{\bfseries\slshape}} %{ ewcommand{\ABNTchapterfont}{\bfseries\itshape}} ewcommand{\ABNTchapterfont}{\bfseries} ewcommand{\ABNTtocchapterfont}{\ABNTchapterfont\upshape} %% Font which section titles will be printed ewcommand{\ABNTsectionfont}{\bfseries} %% In order to \MakeUppercase do not apply to math mode in chapter or %% section titles, package textcase used % % Sorry, a bug on textcase adds extra space before text. User can fix it by % him/herself. % %\ifthenelse{\boolean{ABNTcapchap}\or\boolean{ABNTcapsec}} % {\IfFileExists{textcase.sty} % {\RequirePackage[overload]{textcase}} % {} % } % {} ewcommand{\ABNTchaptersize}{\huge} % Defining how is typeset the \chapter \def\@makechapterhead#1{% {% % oindent\rule{\textwidth}{1.7pt}\\\par ormalfont\ABNTchaptersize\ABNTchapterfont% \espaco{simples}% \vspace*{30pt}% oindent% \parbox[b]{\textwidth}{% \parbox[t]{4ex}{\thechapter}% \parbox[t]{\textwidth-4ex-1ex}% {\interlinepenalty\@M\raggedright% \ifthenelse{\boolean{ABNTcapchap}}% {\MakeUppercase{#1}}% {#1} }% \vspace*{0cm} }\\[2pt]% \vspace{50pt}% }% } % Defining how is typeset the \chapter* \def\@makeschapterhead#1{% \vspace*{0pt}\par {\centering ormalfont\ABNTchaptersize\ABNTchapterfont% \ifthenelse{\boolean{ABNTcapchap}}% {\MakeUppercase{#1}}% {#1} \par}% \vspace{45pt}% \par% } % redefining to apply tocnumpageabnt \renewcommand\l@chapter[2]{% \ifnum \c@tocdepth >\m@ne \addpenalty{-\@highpenalty}% \vskip 1.0em \@plus\p@ \setlength\@tempdima{1.5em}% \begingroup \ifthenelse{\boolean{ABNTpagenumstyle}} {\renewcommand{\@pnumwidth}{3.5em}} {} \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth \leavevmode ormalsize\ABNTtocchapterfont \advance\leftskip\@tempdima \hskip -\leftskip #1 obreak\hfil obreak% \ifthenelse{\boolean{ABNTpagenumstyle}} {% \hb@xt@\@pnumwidth{\hss \ifthenelse{ ot\equal{#2}{}}{{ ormalfont p.\thinspace#2}}{}}\par } {% \hb@xt@\@pnumwidth{\hss #2}\par } \penalty\@highpenalty \endgroup \fi} % redefine to apply style \renewcommand\part{% \if@openright\cleardoublepage\else\clearpage\fi% \thispagestyle{\chaptertitlepagestyle}% \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi% ull\vfil\secdef\@part\@spart}% \renewcommand\l@part[2]{% \ifnum \c@tocdepth >-2\relax \addpenalty{-\@highpenalty}% \addvspace{2.25em \@plus\p@}% \begingroup \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth oindent{\leavevmode \ABNTtocchapterfont\large oindent% #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par obreak \global\@nobreaktrue \everypar{\global\@nobreakfalse\everypar{}}% \endgroup \fi} \renewcommand\section{\ABNTstartsection{section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\espaco{simples} ormalfont% \ABNTsectionfont\Large}} \renewcommand\subsection{\ABNTstartsection{subsection}{2}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\espaco{simples} ormalfont% \ABNTsectionfont\large}} \renewcommand\subsubsection{\ABNTstartsection{subsubsection}{3}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\espaco{simples} ormalfont% \ABNTsectionfont ormalsize}} \renewcommand\paragraph{\ABNTstartsection{paragraph}{4}{\z@}% {3.25ex \@plus1ex \@minus.2ex}% {-1em}% {\espaco{simples} ormalfont% \ABNTsectionfont ormalsize}} \renewcommand\subparagraph{\ABNTstartsection{subparagraph}{5}{\parindent}% {3.25ex \@plus1ex \@minus .2ex}% {-1em}% {\espaco{simples} ormalfont% \ABNTsectionfont ormalsize}} %\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}} %\renewcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}} %\renewcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}} %\renewcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}} %\renewcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}} %%%%%%%%%% Implementation for Annex and Appendix % \providecommand{\annexname}{Anexo} \providecommand{\appendixname}{Ap\^endice} % for completeness ;-) ewcommand{\anapchaptername}{\relax} ewcommand*{\ABNTtravessao}{-$\!$-} \def\@anapchapter[#1]#2% { \refstepcounter{chapter}% \ifthenelse{\boolean{ABNTAnApName}} { \begingroup \ifthenelse{\equal{#1}{}} {\def\thechapter{\anapchaptername{} \Alph{chapter}}} {\def\thechapter{\anapchaptername{} \Alph{chapter}{} \ABNTtravessao{} #1}} \ABNTchaptermark{} \endgroup \if@twocolumn \@topnewpage[\@makeanapchapterhead{#2}]% \else \@makeanapchapterhead{#2}% \@afterheading \fi } { \ABNTchaptermark{#1} \if@twocolumn \@topnewpage[\@makechapterhead{#2}]% \else \@makechapterhead{#2}% \@afterheading \fi } \ifnum \c@secnumdepth >\m@ne \typeout{\@chapapp\space\thechapter.}% \ifthenelse{\boolean{ABNTAnApName}}{ \ifthenelse{\equal{#1}{}} {\ABNTaddcontentsline{toc}{chapter}% {\anapchaptername{} \thechapter}} {\ABNTaddcontentsline{toc}{chapter}% {\anapchaptername{} \thechapter{} \ABNTtravessao{} #1}} } { \ABNTaddcontentsline{toc}{chapter}% {\protect umberline{\thechapter}#1} } \else \ABNTaddcontentsline{toc}{chapter}{#1} \fi \par } ewlength{\ABNTanapindent} \setlength{\ABNTanapindent}{0cm} ewcommand{\ABNTanapsize}{\LARGE} ewcommand{\ABNTaposindicativoanap}{\relax} \def\@makeanapchapterhead#1{% {% % oindent\rule{\textwidth}{1.7pt}\\\par ormalfont\ABNTchapterfont\ABNTanapsize \espaco{simples} \ifthenelse{\boolean{ABNTAnApIndicativoIndent}} {\ifthenelse{\boolean{ABNTCapAnnexAppendix}} {\settowidth{\ABNTanapindent}{\MakeUppercase{\anapchaptername} \thechapter{} \ABNTtravessao{} }} {\settowidth{\ABNTanapindent}{\anapchaptername} \thechapter{} \ABNTtravessao{} } } {} \vspace*{30pt} % \raggedright\espaco{1.2}\par \begin{list}{}{% \setlength{\listparindent}{0cm}% \setlength{\itemindent}{-\ABNTanapindent}% \setlength{\rightmargin}{0cm}% \setlength{\leftmargin}{\ABNTanapindent}% \setlength{\parsep}{0pt}}% \item % \ifthenelse{\equal{#1}{}} {\ifthenelse{\boolean{ABNTCapAnnexAppendix}} {\MakeUppercase{\anapchaptername}} {\anapchaptername} \thechapter \ABNTaposindicativoanap} {\ifthenelse{\boolean{ABNTCapAnnexAppendix}} {\MakeUppercase{\anapchaptername}} {\anapchaptername} \thechapter{} \ABNTtravessao{} \ABNTaposindicativoanap \ifthenelse{\boolean{ABNTcapchap}}% {\MakeUppercase{#1}}% {#1}} \end{list} \par\vspace{50pt}% }% } \renewcommand{\appendix}{ \setcounter{chapter}{0} \resetsubcounters{chapter} \gdef\thechapter{\Alph{chapter}} \ifthenelse{\boolean{ABNThypertoc}}{\renewcommand{\chaptertype}{appen.}}{} \gdef\@chapapp{Apendice} \renewcommand{\anapchaptername}{\appendixname} \global\let\@chapter\@anapchapter} \let\apendice\appendix ewcommand{\annex}{ \setcounter{chapter}{0} \resetsubcounters{chapter} \gdef\thechapter{\Alph{chapter}} \ifthenelse{\boolean{ABNThypertoc}}{\renewcommand{\chaptertype}{annex.}}{} \gdef\@chapapp{Anexo} \renewcommand{\anapchaptername}{\annexname} \global\let\@chapter\@anapchapter} \let\anexo\annex %%%%%%%%%% end of code for Annex and Appendix %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Redefing important commands (those that set marks) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Redefining \tableofcontents, \listoffigures, \listoftables, % thebibliography, theindex extracing explicit \MakeUpercase in page marks ewboolean{ABNTrestorecol} % new boolean to avoid conflicts % ==== \tableofcontents ==== % do exactly what old \tableofcontents used to do, but had to be redefined % since \chapter* (used in \tableofcontents' old definition) was redefined. \renewcommand{\tableofcontents}{% \ifthenelse{\boolean{@twocolumn}}% {\setboolean{ABNTrestorecol}{true}\onecolumn}% {\setboolean{ABNTrestorecol}{false}}% \if@openright\cleardoublepage\else\clearpage\fi \thispagestyle{\chaptertitlepagestyle} \global\@topnum\z@ \@afterindentfalse \@makeschapterhead{\contentsname}% \@afterheading \@mkboth{\contentsname}{\contentsname} \@starttoc{toc}% \ifthenelse{\boolean{ABNTrestorecol}}{\twocolumn}{}% \if@openright\cleardoublepage\else\clearpage\fi% \setboolean{ABNTaftertoc}{true} }% \let\sumario\tableofcontents\relax % ==== \listoffigures ==== % In the same spirit of table of contents, it does the same as the old one, % but now a test was included due "complete contents" feature. \renewcommand{\listoffigures}{% \ifthenelse{\boolean{@twocolumn}}% {\setboolean{ABNTrestorecol}{true}\onecolumn}% {\setboolean{ABNTrestorecol}{false}}% \ifthenelse{\boolean{ABNThypertoc}}{\renewcommand{\chaptertype}{listoffigures.}}{} \pretextualchapter{Lista de figuras} \ifthenelse{\boolean{ABNThypertoc}}{\renewcommand{\chaptertype}{}}{} \@starttoc{lof}% \ifthenelse{\boolean{ABNTrestorecol}}{\twocolumn}{}% }% \let\listadefiguras\listoffigures\relax % ==== \listoftables ==== % Same comments in \listoffigures \renewcommand\listoftables{% \ifthenelse{\boolean{@twocolumn}}% {\setboolean{ABNTrestorecol}{true}\onecolumn}% {\setboolean{ABNTrestorecol}{false}}% \ifthenelse{\boolean{ABNThypertoc}}{\renewcommand{\chaptertype}{listoftables.}}{} \pretextualchapter{Lista de tabelas} \ifthenelse{\boolean{ABNThypertoc}}{\renewcommand{\chaptertype}{}}{} \@starttoc{lot}% \ifthenelse{\boolean{ABNTrestorecol}}{\twocolumn}{}% }% \let\listadetabelas\listoftables\relax % ==== thebibliography ==== % Almost equal to old thebibliography, but without capital page marks % and automatically in toc if active ``sumario completo'' \renewenvironment{thebibliography}[1]% {% replacing \chapter*{\refname\@mkboth...} \if@openright\cleardoublepage\else\clearpage\fi% \thispagestyle{\chaptertitlepagestyle}% \global\@topnum\z@% \@afterindentfalse% \@mkboth{\refname}{\refname}% end \chapter*{\refname...} \ifthenelse{\boolean{ABNTincludeintoc}}% {\ABNTaddcontentsline{toc}{chapter}{\refname}}% {}% \if@twocolumn% \@topnewpage[\@makeschapterhead{\refname}]% \else% \@makeschapterhead{\refname}% \@afterheading% \fi% \list{\@biblabel{\@arabic\c@enumiv}}% {\settowidth\labelwidth{\@biblabel{#1}}% \leftmargin\labelwidth% \advance\leftmargin\labelsep% \@openbib@code% \usecounter{enumiv}% \let\p@enumiv\@empty% \renewcommand\theenumiv{\@arabic\c@enumiv}}% \sloppy% \espaco{simples} \clubpenalty4000% \@clubpenalty \clubpenalty% \widowpenalty4000% \sfcode`\.\@m% }% end of \begin{thebibliography} {\def\@noitemerr {\@latex@warning{Empty `thebibliography' environment}}% \endlist% }% end of \end{thebibliography} ewboolean{ABNTbalancedindex} \setboolean{ABNTbalancedindex}{true} ewcommand*\IndiceNaoBalanceado{\setboolean{ABNTbalancedindex}{false}} % ==== theindex ==== % Similar to old theindex, but without capital page marks, automatically % in toc and now with balanced colunms \renewenvironment{theindex}% {% \ifthenelse{\boolean{@twocolumn}}% {\setboolean{ABNTrestorecol}{true}\onecolumn}% {\setboolean{ABNTrestorecol}{false}}% \if@openright\cleardoublepage\else\clearpage\fi% \thispagestyle{\chaptertitlepagestyle}% \global\@topnum\z@% \@afterindentfalse% \@mkboth{\indexname}{\indexname}% \ifthenelse{\boolean{ABNTincludeintoc}}% {\ABNTaddcontentsline{toc}{chapter}{\indexname}}% {}% \@makeschapterhead{\indexname}% \@afterheading% \begingroup% \setlength{\columnsep}{35pt}% \setlength{\columnseprule}{0pt} \ifthenelse{\boolean{ABNTbalancedindex}} {\begin{multicols}{2}} {\begin{multicols*}{2}}% \espaco{simples}% \setlength{\parindent}{0cm}% \setlength{\parskip}{.3pt}% \let\item\@idxitem% }% {% \ifthenelse{\boolean{ABNTbalancedindex}} {\end{multicols}} {\end{multicols*}}% \endgroup% \ifthenelse{\boolean{ABNTrestorecol}}{\twocolumn}{}% }% %%%%%%%%%%%%%% Flexibility on captions %%%%%%%%%%%%%%%%% % % Temporarely removed. Not really required. % % ewcommand{\ABNTcaptionsep}{: } % %\long\def\@makecaption#1#2{% % \vskip\abovecaptionskip % \sbox\@tempboxa{#1\ABNTcaptionsep #2}% % \ifdim \wd\@tempboxa >\hsize % #1\ABNTcaptionsep #2\par % \else % \global \@minipagefalse % \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% % \fi % \vskip\belowcaptionskip} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Environment `citado'=`citacao', similar to quoation, but with 4cm of %% extra left margin, in a smaller font and simple line spacing. ewenvironment{citado}% {\begin{espacosimples}% \small \begin{list}{}{% \setlength{\listparindent}{0cm}% \setlength{\itemindent}{\listparindent}% \setlength{\rightmargin}{0cm}% \setlength{\leftmargin}{4cm}% \setlength{\parsep}{0pt}}% \item\relax}% {\end{list}\end{espacosimples}} ewenvironment{citacao}% {\begin{citado}}% {\end{citado}}% %% Contents shows up to subsubsection. \setcounter{tocdepth}{4} %% Section number will appear up to \subsubsection \setcounter{secnumdepth}{3} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Pre-textual elements %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % CAPA - contem autor, titulo (com subtitulo incluido), local e data. % % FOLHA DE ROSTO - contem, no anverso : autor, titulo (com subtitulo % incluido, se houver), nome do curso e area de concentracao, orientador e % co-orientador (se for o caso), local e ano da apresentacao. \providecommand{\ABNTinstituicaodata}{} ewcommand{\instituicao}[1]{\renewcommand{\ABNTinstituicaodata}{#1}} ewcommand{\instituicaoformat}{\scshape} \providecommand{\ABNTautordata}{} ewcommand{\autor}[1]{\renewcommand{\ABNTautordata}{#1}} ewcommand{\autorformat}{\large\ABNTsectionfont} \providecommand{\ABNTorientadordata}{} \providecommand{\ABNTorientadorname}{} ewcommand{\orientador}[2][Orientador:\vspace{1mm}\\]% {\renewcommand{\ABNTorientadorname}{#1}% \renewcommand{\ABNTorientadordata}{#2}} ewcommand{\orientadornameformat}{} ewcommand{\orientadorformat}{\large} \providecommand{\ABNTcoorientadordata}{} \providecommand{\ABNTcoorientadorname}{} ewcommand{\coorientador}[2][Co-orientador:\vspace{1mm}\\]% {\renewcommand{\ABNTcoorientadorname}{#1}% \renewcommand{\ABNTcoorientadordata}{#2}} ewcommand{\coorientadornameformat}{} ewcommand{\coorientadorformat}{\large} \providecommand{\ABNTtitulodata}{} ewcommand{\titulo}[1]{\renewcommand{\ABNTtitulodata}{#1}} ewcommand{\tituloformat}{\LARGE\ABNTchapterfont} \providecommand{\ABNTcomentariodata}{} ewcommand{\comentario}[1]{\renewcommand{\ABNTcomentariodata}{#1}} ewcommand{\comentarioformat}{} \providecommand{\ABNTlocaldata}{} ewcommand{\local}[1]{\renewcommand{\ABNTlocaldata}{#1}} ewcommand{\localformat}{} \providecommand{\ABNTdatadata}{} ewcommand{\data}[1]{\renewcommand{\ABNTdatadata}{#1}} ewcommand{\dataformat}{} ewcommand{\ABNTifnotempty}[2]{\ifthenelse{ ot\equal{#1}{}}{#2}{}} ewcommand{\capa}% {% % replacing \begin{titlepage} \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse ewpage \fi \thispagestyle{empty}% \setcounter{page}\z@ \vspace*{1cm} \espaco{1.1} \ABNTifnotempty{\ABNTautordata}% {% \begin{center} \autorformat\ABNTautordata \end{center} } \vfill\vfill \ABNTifnotempty{\ABNTtitulodata}% {% \begin{center} {\tituloformat\ABNTtitulodata\par} \end{center} }% \vspace*{1cm} \vfill\vfill\vfill \begin{center} \begin{espacosimples} \setlength{\parskip}{.3cm} \ABNTifnotempty{\ABNTlocaldata} {{\localformat\ABNTlocaldata}\par} \ABNTifnotempty{\ABNTdatadata} {{\dataformat\ABNTdatadata}} \end{espacosimples} \end{center} \vspace*{1cm} % replacing \end{titlepage} by its meaning \if@restonecol\twocolumn \else ewpage \fi \espaco{\ABNTespacodefault}%Corrige bug 114 }% end of \capa ewcommand{\folhaderosto}% {% \begin{titlepage} \espaco{1.1} \ABNTifnotempty{\ABNTautordata}% {% \begin{center} \autorformat\ABNTautordata \end{center} } \vfill\vfill%\vfill \ABNTifnotempty{\ABNTtitulodata}% {% \begin{center} {\tituloformat\ABNTtitulodata\par} \end{center} }% \vspace{2cm} \ABNTifnotempty{\ABNTcomentariodata}% {% \vspace{.8cm} \hspace{.45\textwidth} \begin{minipage}{.5\textwidth} \begin{espacosimples} {\comentarioformat\ABNTcomentariodata}\par \end{espacosimples} \end{minipage} } \vspace{.8cm} \begin{center} \ABNTifnotempty{\ABNTorientadordata}% {% {\orientadornameformat\ABNTorientadorname} {\orientadorformat\ABNTorientadordata}\protect\\ \vspace{0.7cm} } \ABNTifnotempty{\ABNTcoorientadordata} {% {\coorientadornameformat\ABNTcoorientadorname} {\coorientadorformat\ABNTcoorientadordata} } \end{center} \vfill \begin{center} \begin{espacosimples} \setlength{\parskip}{.3cm} \ABNTifnotempty{\ABNTinstituicaodata}% {% \setlength{\parskip}{0cm} {\instituicaoformat\ABNTinstituicaodata\par} \setlength{\parskip}{.3cm}\par } \end{espacosimples} \end{center} \vfill\vfill \begin{center} \ABNTifnotempty{\ABNTlocaldata} {{\localformat\ABNTlocaldata}\par} \ABNTifnotempty{\ABNTdatadata} {{\dataformat\ABNTdatadata}} \end{center} \end{titlepage} }% end of \folhaderosto %%%%%%%%%%% abstract %%%%%%%%%%% % Ambiente para Abstract. Por default, coloca fonte de tamanho 10pt % e com espaco simples entre linhas. % Obs.: this code will be reimplemented for better LaTeX concept support ewcommand{\ABNTabstractname}{Abstract} \renewenvironment{abstract}% {% \if@openright\cleardoublepage\else\clearpage\fi% \ifthenelse{\boolean{ABNThypertoc}}{\renewcommand{\chaptertype}{abstract.}}{} \pretextualchapter{\ABNTabstractname}% \ifthenelse{\boolean{ABNThypertoc}}{\renewcommand{\chaptertype}{}}{} \begin{espacosimples}% }% {\end{espacosimples} ewpage}%abstract %%%%%%%%%%% resumo %%%%%%%%%%% % Ambiente para Resumo. O mesmo efeito do abstract, mas em portugues. % ewcommand{\resumoname}{Resumo} ewenvironment{resumo}% {% \if@openright\cleardoublepage\else\clearpage\fi% \ifthenelse{\boolean{ABNThypertoc}}{\renewcommand{\chaptertype}{resumo.}}{} \pretextualchapter{\resumoname}% \ifthenelse{\boolean{ABNThypertoc}}{\renewcommand{\chaptertype}{}}{} \begin{espacosimples}% }% {\end{espacosimples} ewpage}%abstract %%%%%%% Folha de aprovacao %%%%%%% % Command \assinatura for signature % width of the line and text under the line ewlength{\ABNTsignwidth} \setlength{\ABNTsignwidth}{8cm} % thickness of the line ewlength{\ABNTsignthickness} \setlength{\ABNTsignthickness}{0pt} % ammount of space left between previous text and th signature line ewlength{\ABNTsignskip} \setlength{\ABNTsignskip}{2.5cm} % \assinatura{name} -> types a line with name under the line, centralized % % \assinatura*{name} -> Creates the box with the line and name under % it, but the box has no position assigned. However the line and the % name are centralized with respect to each other. ewcommand{\assinatura}{\@ifstar{\ABNTsign}{\ABNTcsign}} ewcommand{\ABNTsign}[1]{% \parbox[t]{\ABNTsignwidth}{\espaco{simples}\vspace*{\ABNTsignskip}\centering% \rule{\ABNTsignwidth}{\ABNTsignthickness}\\% opagebreak #1\par}% } ewcommand{\ABNTcsign}[1]% {\begingroup\par\centering\ABNTsign{#1}\par\endgroup} % environment "folhadeaprovacao" % just clearpage correctly to twoside and openright compatibility % ewenvironment{folhadeaprovacao}% {\if@openright\cleardoublepage\else\clearpage\fi\begingroup}% {\endgroup\if@openright\cleardoublepage\else\clearpage\fi} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% I will no longer include List of Symbols in the wishlist for this class. %%%%%% Opcao de fonte Times como romano default \ifthenelse{\boolean{ABNTtimesfont}}% if `times'option enabled... {\IfFileExists{mathptmx.sty}% try `mathptmx' first {\RequirePackage{mathptmx}}% {\IfFileExists{mathptm.sty}% if not installed, try `mathptm' {\RequirePackage{mathptm}}% {\IfFileExists{times.sty} % {\RequirePackage{times}}% {\renewcommand{\rmdefault}{ptm}}% }% }% \IfFileExists{helvet.sty}% including also Helvetica as sans serif. {\RequirePackage{helvet}}% {\IfFileExists{helvetic.sty}% {\RequirePackage{helvetic}}% {\renewcommand{\rmdefault}{phv}}% }% }% {} %%%%% auto bold math (try follow bold face in text) % plan: redefine commands that change font to bold to ALSO change math % version; I don't change all commands that change font weight because I % suppose this uses are local \AtBeginDocument{ \ifthenelse{\boolean{ABNTautobm}\and ot\isundefined{\mv@bold}}% {% % \bfseries \let\ABNToldbfseries\bfseries\relax% \renewcommand{\bfseries}{\mathversion{bold}\ABNToldbfseries}% % % \textbf{} \let\ABNToldtextbf\textbf\relax% \renewcommand{\textbf}[1]{\ABNToldtextbf{\mathversion{bold}#1}}% % % \bf \let\ABNToldbf\bf\relax% \renewcommand{\bf}{\mathversion{bold}\ABNToldbf}% % }% {}% } %%%%%% Indent code % indenting first paragraph of each section \ifthenelse{\boolean{ABNTindentfirst}}% {\RequirePackage{indentfirst}}% {} % paragraph indentation size and skip \setlength{\parindent}{.7cm} \setlength{\parskip}{.25cm} % logo ewcommand{\abnTeX}{{\scshape a\kern-.13exb\kern-.13exn}\kern-.13ex\TeX} %%% final message - announcement %%%% \AtEndDocument{% ewcommand{\spABNT}{\space\space\space\space\space\space\space\space}% \typeout{+-------------------------------------------------------------------+} \typeout{% | Comentario, sugestao ou critica sobre o abnTeX? Entre em contato: |}% \typeout{% |\spABNT\spABNT\space\space http://abntex.codigolivre.org.br\space\spABNT\spABNT|}% %\typeout{% %| Sua opiniao eh de grande ajuda para nos.\spABNT Ass: grupo abnTeX |}% \typeout{+-------------------------------------------------------------------+} }% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % End of ABNT.CLS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \endinput |