I am trying to compile my work under MikTex 2.9 windows 7 and/or Kyle 2.1.2
The appendices are throwing an unsupported control sequence error when I try to compile with the langage set to Portuguese.
This is my preamble where the packages are loaded.
\usepackage[brazil,american]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{indentfirst}
\usepackage{natbib}
\usepackage{url}
\usepackage{xcolor,graphicx,url}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{epstopdf,placeins}
\usepackage{glossaries}
\usepackage{caption}
\usepackage[toc,page]{appendix}
If I set the language to English, document compiles ok.
The error message points to the .out file:
\BOOKMARK [0][-]{section*.40}{Refer\352ncias}{}% 35
\BOOKMARK [0][-]{Ap�ndice.1.A} <-------------- this line is throwing the error
Tried to compile it on Kyle (linux) and on Windows (MikTex), and both have the same error. Only difference is the character ê is printed on the .out file in Linux, and windows has that stupid question mark encoding error thing.
If I switch languages before calling the appendices chapters, everything runs fine.
Also, if I override the \def\appendixname{Ap\^endice}% from the PT babel file without the accent, it compiles just fine.
How can I compile the appendices in Portuguese (keeping the correct spelling of the word) without that error?
\^{e}forê? – n.r. Mar 26 '14 at 20:15\def\appendixname{Ap\^endice}%and its being parsed into the.outfile (where it is replced by the accented character), and afterwards it is being parsed again, generating that error. – Mindwin Remember Monica Mar 26 '14 at 20:46\begin{document}and\end{document}to the code you gave us.I don't know what you mean with "the right language environment". The preamble you have published sets
– pst Mar 26 '14 at 22:03americanas the main language.\usepackage[utf8]{inputenc}andurltwice. Try to redefine it using\^{e}. – Sigur Mar 26 '14 at 22:31