GeneralBibliography causes Problem with Appendices

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
20-LESI
Posts: 9
Joined: Thu Feb 23, 2012 3:02 am

Bibliography causes Problem with Appendices

Post by 20-LESI »

I there!

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} 
And with the tactic of the minimal working copy, I found the error. It's the \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}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

20-LESI
Posts: 9
Joined: Thu Feb 23, 2012 3:02 am

Bibliography causes Problem with Appendices

Post by 20-LESI »

Very hard times solving this...Had to use the \appendix command and place the code below inside the appendices environment.

Code: Select all

\renewcommand{\appendixname}{Anexo}


Here's a close minimal working sample of how I solved. Hope it helps someone

Code: Select all

\documentclass[portuguese, a4paper]{report}

\usepackage[avantgarde]{quotchap}
\usepackage[portuguese]{babel}
\usepackage[T1]{fontenc}
\usepackage[applemac]{inputenc}  % noutra máquina deve-se colocar utf8 em vez de applemac
\usepackage[a4paper, pdftex, bookmarks, colorlinks, citecolor=darkblue, linkcolor=darkblue, urlcolor=darkblue, filecolor=darkblue]{hyperref}
\usepackage[toc, page, titletoc]{appendix}
\usepackage{fancyhdr}
\usepackage[dvips, pdftex]{graphicx}
\usepackage[fixlanguage]{babelbib}
\usepackage[normalem]{ulem}



\renewcommand{\appendixtocname}{Anexos}
\renewcommand{\appendixpagename}{Anexos}


\renewcommand{\addappheadtotoc}{} 

\selectbiblanguage{portuguese}
\definecolor{darkblue}{rgb}{0,0.1,0.5}



\begin{document}


\tableofcontents

\clearpage

\bibliographystyle{babalpha}
\bibliography{/Users/binte/U.M./Material/Latex/database}

\begin{appendices}
\appendix
\renewcommand{\appendixname}{Anexo}

\chapter{Esquema simétrico} \label{cod_sim}
TEST

\end{appendices}

\end{document}
Post Reply