Advertisement
obernardovieira

Solve Appendix error in Portuguese Language

Mar 16th, 2017
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.99 KB | None | 0 0
  1. % special thanks to Sálvio Marcelo Soares
  2. % http://tex.stackexchange.com/a/185033
  3.  
  4. \makeatletter
  5. \renewcommand
  6.    {\appendixtocname}{Ap\^{e}ndices}
  7. \renewcommand
  8.   {\appendixpagename}{Ap\^{e}ndices}
  9. \renewcommand
  10.   {\appendixname}{Ap\^{e}ndice} \let\oriAlph\Alph
  11. \let\orialph\alph
  12. \renewcommand{\@resets@pp}
  13.   {\par\@ppsavesec  
  14.     \stepcounter{@pps}%
  15.      \setcounter{section}{0}%
  16.      \if@chapter@pp
  17.        \setcounter{chapter}{0}%
  18.        \renewcommand\@chapapp{\appendixname}%
  19.        \renewcommand\thechapter{\@Alph\c@chapter}%
  20.      \else
  21.        \setcounter{subsection}{0}%
  22.        \renewcommand\thesection{\@Alph\c@section}%
  23.      \fi
  24.      \if@pphyper
  25.        \if@chapter@pp
  26.          \renewcommand
  27.            {\theHchapter}
  28.           {\theH@pps.\oriAlph{chapter}}%
  29.        \else
  30.          \renewcommand
  31.            {\theHsection}
  32.           {\theH@pps.\oriAlph{section}}%
  33.        \fi
  34.        \def\Hy@chapapp
  35.           {appendix}%
  36.      \fi
  37.    \restoreapp
  38.   }
  39. \makeatother
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement