I´m pretty new to LaTeX. When generating the pdf, I receive the error:
File ended while scanning use of \kvsetkeys
I´m using the standard code developed by an brazilian university to write my phd dissertation.
Could anyone help me?
Here is the code:
\documentclass[
12pt,
openright,
oneside,
a4paper,
english,
french,
spanish,
brazil
]{abntex2}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{ucs}
\usepackage[utf8]{inputenc}
\usepackage{lastpage}
\usepackage{indentfirst} .
\usepackage{color}
\usepackage{graphicx}
\usepackage{microtype}
\usepackage{amsmath}
\usepackage{chngcntr}
\usepackage[table]{xcolor}
\usepackage{pgf-pie}
\usepackage{multirow}
\usepackage[normalem]{ulem}
\useunder{\uline}{\ul}{}
\usepackage[brazilian,hyperpageref]{backref}
\usepackage[alf,abnt-etal-list=0,abnt-etal-cite=2,abnt-etal-text=it,abnt-repeated-author-omit=yes]{abntex2cite}
\renewcommand{\backrefpagesname}{Citado na(s) página(s):~}
\renewcommand{\backref}{}
\renewcommand*{\backrefalt}[4]{
\ifcase #1 %
Nenhuma citação no texto.%
\or
Citado na página #2.%
\else
Citado #1 vezes nas páginas #2.%
\fi}%
\counterwithout{equation}{chapter}
\makeatletter
\hypersetup{
%pagebackref=true,
pdftitle={\@title},
pdfauthor={\@author},
pdfsubject={\imprimirpreambulo},
pdfcreator={LaTeX with abnTeX2},
pdfkeywords={abnt}{latex}{abntex}{abntex2}{trabalho acadêmico},
colorlinks=true,
linkcolor=black,
citecolor=black,
filecolor=magenta,
urlcolor=black,
%bookmarksdepth=4}
\makeatother
\setlength{\parindent}{1.3cm}
\setlength{\parskip}{0.2cm} % tente também \onelineskip
\makeindex
\begin{document}
\selectlanguage{brazil}
\frenchspacing
\imprimircapa
\imprimirfolhaderosto
\setlength{\absparsep}{18pt}
\begin{resumo}
\vspace{\onelineskip}
\end{resumo}
\begin{resumo}[Abstract]
\vspace{\onelineskip}
\noindent
\end{resumo}
\pdfbookmark[0]{\listfigurename}{lof}
\listoffigures*
\cleardoublepage
\pdfbookmark[0]{\listtablename}{lot}
\listoftables*
\cleardoublepage
\begin{siglas}
\end{siglas}
\pdfbookmark[0]{\contentsname}{toc}
\tableofcontents*
\cleardoublepage
\textual
\chapter{Introdução}
\section{Apresentação}
\phantompart
\postextual
\bibliography{Bibliografia}
\begin{apendicesenv}
\end{apendicesenv}
\begin{anexosenv}
\end{anexosenv}
\phantompart
\printindex
\end{document}
Best Answer
Your main error here is the commented closing bracket in command
\hypersetup
. Change it to (see the marking<=======
:After commenting a few other options and adding some missing commands your code compiles. See the following MWE (and please check the lines marked with
<====
):Please check the commented lines to evaluate the error there and change then your original code ...