GeneralPackage inputenc error

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
xana
Posts: 14
Joined: Mon May 31, 2010 5:31 am

Package inputenc error

Post by xana »

Hi.

I'm having a problem during compilation using latex:

! Package inputenc Error: Keyboard character used is undefined
(inputenc) in inputencoding `latin1',

See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...

l.8

?

I'm using:

Code: Select all

\usepackage[portuguese]{babel}
\usepackage[latin1]{inputenc}
How can I solve this error?

Best regards

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Package inputenc error

Post by gmedina »

Can you please post some complete and minimal code allowing us to reproduce the error? In this case it would also be good to mention which editor do you use and the encoding used with the editor.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
xana
Posts: 14
Joined: Mon May 31, 2010 5:31 am

Package inputenc error

Post by xana »

Hi. I'm sorry, but I thought that it was irrelevant for the error in case.

I used the editor WinEdt. The rest I don't now, because my supervisor gave me a template for my master thesis.

Code: Select all

\documentclass[12pt, twoside, a4paper, openright]{report}
\usepackage[centertags]{amsmath}
\usepackage{amsfonts}
\usepackage[portuguese]{babel}
\usepackage[latin1]{inputenc}           
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{newlfont}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{natbib}
\usepackage[dvips]{color}
\usepackage[rigidchapters]{titlesec}
\usepackage{mdwtab}
\usepackage{subfigure}
\usepackage{longtable}
\usepackage{UTADThesis}                 
\usepackage{url}                        
\usepackage{makeidx}                    
\usepackage{wrapfig}                    
\usepackage{float}                      
\usepackage{eurosym}                    
\usepackage{array}                      
\usepackage{verbatim}
\usepackage{multirow}
\usepackage[pdfauthor={Alexandra Carvalhais Leal}, %
pdftitle={Modelo de documento para o MEEC da UTAD},%
pagebackref=true,%
pdftex]{hyperref}
\usepackage{breakurl}
\hfuzz2pt
\newlength{\defbaselineskip}
\setlength{\defbaselineskip}{\baselineskip}
\makeatletter
\renewcommand{\fnum@figure}[1]{\small\textbf{\figurename~\thefigure} -- \sffamily}%
\renewcommand{\fnum@table}[1]{\small\textbf{\tablename~\thetable} -- \sffamily} %
\makeatother
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\hbox{} \vspace*{\fill} \vspace{\fill} \thispagestyle{empty}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi} \makeatother
\newcommand{\setlinespacing}[1]%
           {\setlength{\baselineskip}{#1 \defbaselineskip}}
\newcommand{\doublespacing}{\setlength{\baselineskip}%
                           {2.0 \defbaselineskip}}
\newcommand{\singlespacing}{\setlength{\baselineskip}{\defbaselineskip}}

\numberwithin{equation}{chapter}
\renewcommand{\theequation}{\thechapter.\arabic{equation}}
\setlength{\tclineskip}{1.05\baselineskip}
\hyphenation{de-com-pos-tos}
\setlength{\parindent}{0pt}
\makeindex
\floatstyle{ruled}                      
\newfloat{code}{thp}{lop}               
\floatname{code}{Listagem}
\let € = \euro
\begin{document}
\hyphenpenalty=10
\msc 
\pagestyle{plain}
\phantomsection
\hyphenpenalty=100
\tolerance=100
\cleardoublepage
\bibliographystyle{apa}
\nocite{*} 
\phantomsection
\bibliography{MyBibDataBase}
\end{document}
I noticed that if I comment the following part of code, the error disapperas:

Code: Select all

\cleardoublepage
\bibliographystyle{apa}
\nocite{*} 
\phantomsection
\bibliography{MyBibDataBase}
Best regards
Post Reply