I've been writing a document in portuguese and I've ran across a nasty problem. I've been trying for the past few hours to get hyperref and bookmark to play nice with my labels inside the appendices ambient to no avail. I keep getting weird, incomplete error messages (undefined control sequence) that I just can't seem to solve. I feel like it has something to do with the altered appendix page name, but I'm not so sure about that one.
Below, you'll find a non-working example that outputs the exact same error messages I'm getting on my main .tex file. I'd appreciate any help you can give me! I just can't seem to solve this one on my own.
\documentclass{article}
\usepackage[portuguese]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[unicode]{hyperref}
\usepackage{bookmark}
\usepackage{fancyvrb}
\usepackage{parskip}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{float}
\usepackage[toc,page]{appendix}
\usepackage[margin=1.3in]{geometry}
\addto{\captionsportuguese}{\renewcommand{\appendixpagename}{Apêndice}}
\epstopdfsetup{outdir=./}
\begin{document}
\section{Test}
\subsection{SubTest}
Ref'ing an appendix \ref{figure_flowchart1}; \ref{figure_flowchart2}.
\begin{appendices}
\section{Diagrama 1 - Atualização de Paridade, 1 Bloco de Dados}\label{figure_flowchart1}
\begin{figure}[H]
\centering
\includegraphics[scale=0.5]{Flowchart1.eps}
\end{figure}
\section{Diagrama 2 - Atualização de Paridade, >1 Bloco de Dados}\label{figure_flowchart2}
\begin{figure}[H]
\centering
\includegraphics[scale=0.5]{Flowchart2.eps}
\end{figure}
\end{appendices}
\end{document}
Also, yanking out the appendix package and using the \appendix command does the job. I just tested it, don't know why I hadn't thought of that before.
– Lopson Jul 06 '14 at 20:09