I'm having difficulties referencing an appendix, and changing the name of an appendix to the name I want.
Example: Appendix A -> Anexo A
I know that the command below works, but something isn't compatible with this:
Code: Select all
\renewcommand{\appendixname}{Anexo}
\bibliography
command that's buzzing this. But I wasn't able to find a workaround, because I need both the bibliography and the references, plus the appendices with a user-defined name. I send the minimal working copy below. Hope that someone manages to help me with this. Thanks!Code: Select all
\documentclass[portuguese, a4paper]{report}
\usepackage[avantgarde]{quotchap}
\usepackage[portuguese]{babel}
\usepackage[portuges]{minitoc}
\usepackage[T1]{fontenc}
\usepackage[applemac]{inputenc} % change to utf8 if not a MAC
\usepackage{indentfirst}
\usepackage[a4paper, pdftex, bookmarks, colorlinks, citecolor=darkblue, linkcolor=darkblue, urlcolor=darkblue, filecolor=darkblue]{hyperref}
\usepackage{nomencl}
\usepackage[toc, page, titletoc]{appendix}
\usepackage{listings}
\usepackage{fancyhdr}
\usepackage[dvips, pdftex]{graphicx}
\usepackage{geometry}
\usepackage[fixlanguage]{babelbib}
\usepackage{floatrow,caption}
\usepackage[normalem]{ulem}
\usepackage{empheq}
\renewcommand{\appendixtocname}{Anexos}
\renewcommand{\appendixpagename}{Anexos}
\renewcommand{\addappheadtotoc}{}
\selectbiblanguage{portuguese}
\definecolor{darkblue}{rgb}{0,0.1,0.5}
\fancyhf{}% first reset the headers and footers
\fancyhead[R]{\sffamily \bfseries \rightmark}
%% make the pages have the chapter name on the top left
%\fancyhead[L]{\sffamily\bfseries \leftmark}
\fancyfoot[R]{\rule{0cm}{4mm} \bfseries \thepage}
\renewcommand{\footrulewidth}{0.4pt}
\renewcommand{\footruleskip}{0mm}
\pdfpagewidth=\paperwidth
\pdfpageheight=\paperheight
\renewcommand\familydefault{\sfdefault}
\pagestyle{fancy}
%% now redefine the plain style pages (chapter pages, contents pages)
%% to have the same page number stuff on the bottom
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[R]{\rule{0cm}{4mm} \bfseries \thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0.4pt}
}
\def\MakeUppercase{}
\begin{document}
\renewcommand{\appendixname}{Anexo}
\pagenumbering{roman}
\tableofcontents
\clearpage
\pagenumbering{arabic}
\chapter{Introdução} \label{intro}
DOOMZ
\clearpage
\bibliographystyle{babalpha}
\bibliography{/Users/binte/U.M./Material/Latex/database}
\addcontentsline{toc}{chapter}{Bibliografia}
\begin{appendices}
\chapter{Esquema simétrico} \label{cod_sim}
TEST
\end{appendices}
\end{document}