From 43e8013efcfdb70cd65e67fe1efb27fc1307e106 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Tue, 5 Feb 2013 23:41:29 +0000
Subject: abntex2 (5feb13)

git-svn-id: svn://tug.org/texlive/trunk@29038 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/abntex2/abntex2.cls | 34 ++++++++++++++++++++++---
 1 file changed, 31 insertions(+), 3 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/abntex2/abntex2.cls')

diff --git a/Master/texmf-dist/tex/latex/abntex2/abntex2.cls b/Master/texmf-dist/tex/latex/abntex2/abntex2.cls
index 1a427c35221..a1ddf85748b 100644
--- a/Master/texmf-dist/tex/latex/abntex2/abntex2.cls
+++ b/Master/texmf-dist/tex/latex/abntex2/abntex2.cls
@@ -1,5 +1,5 @@
-%% abntex2.cls, v-1.3 laurocesar
-%% Copyright 2012-2013 by abnTeX2 group at http://code.google.com/p/abntex2/ 
+%% abntex2.cls, v-1.4 laurocesar
+%% Copyright 2012-2013 by abnTeX2 group at http://abntex2.googlecode.com/ 
 %%
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3
@@ -13,10 +13,14 @@
 %% 
 %% The Current Maintainer of this work is the abnTeX2 team, led
 %% by Lauro César Araujo. Further information are available on 
-%% http://code.google.com/p/abntex2/
+%% http://abntex2.googlecode.com/
 %%
 %% This work consists of the file abntex2.cls.
 %%
+%% 2013.2.3 22h10	laurocesar
+%%  Adiciona \partpage, \partanexos e \partapendices
+%%  Modifica comandos de anexos para incluir automaticamente \cftinserthook{toc}{AAA}
+%%
 %% 2013.1.16 18h46	laurocesar
 %%  Altera o \ABNTEXchapterfont para usar \sffamily
 %%
@@ -571,27 +575,51 @@
 }{
  \end{appendix}
  \setboolean{abntex@apendiceousecao}{false}
+ \bookmarksetup{startatroot}
 }
 % ---
 
 % ---
 % Anexos - comando
 \newcommand{\anexos}{%
+ \cftinserthook{toc}{AAA}
+ 
  \PRIVATEapendiceconfig{\anexoname}{\anexosname}
  \appendix
  \renewcommand\theHchapter{anexochapback.\arabic{chapter}}
 }
 % Anexos - ambiente
 \newenvironment{anexosenv}{%
+ \cftinserthook{toc}{AAA}
+ 
  \PRIVATEapendiceconfig{\anexoname}{\anexosname}
  \begin{appendix}
  \renewcommand\theHchapter{anexochapback.\arabic{chapter}}
 }{
  \end{appendix}
  \setboolean{abntex@apendiceousecao}{false}
+ \bookmarksetup{startatroot}
+}
+% ---
+
+% ---
+% Imprime uma página de divisão no estilo parte
+\newcommand{\partpage}{%
+  \cleardoublepage
+  \phantomsection
+  \addcontentsline{toc}{part}{\appendixpagename}
+  \appendixpage*
 }
+
+% atalhos para \partpage ou \appendixpage* 
+\makeatletter
+\newcommand{\partapendices}{\@ifstar{\appendixpage*}{\partpage}}
+
+\newcommand{\partanexos}{\@ifstar{\appendixpage*}{\partpage}}
+\makeatother
 % ---
 
+
 % ------------------------------------------------------------------------
 % ------------------------------------------------------------------------
 % Comandos e ambientes de editoração CITACAO, ALINEA, INCISO, ASSINATURA
-- 
cgit v1.2.3

