Text FormattingInput Encoding for Bibliography

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
mirou
Posts: 18
Joined: Thu Apr 29, 2010 4:36 am

Input Encoding for Bibliography

Post by mirou »

Hello everyone,

I am seeking help regarding my Thesis.bib file which has been behaving strangely ever since I started adding BibTeX items copied from academic journals.

I use TeXShop as an Editor and my preamble has the following:

Code: Select all

\documentclass[a4paper,12pt,twoside]{StyleThese}
\usepackage[fixlanguage]{babelbib}
\selectbiblanguage{french}
\usepackage{natbib}
\include{formatAndDefs}

\begin{document}
\tableofcontents
\bibliographystyle{plainnat-fr}
\bibliography{These}
\end{document}
\mainmatter
My "formatAndDefs.tex" file was adapted from a French thesis template and is attached. And most importantly the following code defines my input encoding.

Code: Select all

\usepackage[french]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
The compilation to PDFLaTeX seems to run sometimes and produces fatal errors at other times mentioning that:

Code: Select all

! 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.347 
      
You need to provide a definition with \DeclareInputText 
or \DeclareInputMath before using this key.
I have checked that "Thesis.bib" has not been altered to any other font (other than latin1). I have also tried copying bibliography items to TextEdit saving into latin1 and then recopying back again into Thesis.bib. But that didn't work either.

I am working on a Mac and my TeXShop distribution is 2.47, hoping that someone can help me stabilize this file as I am by no means able to worry about reconstructing my bibliography from scratch (almost 150 items) and I have to submit all my work in a month time.
Attachments
formatAndDefs.tex
(9.14 KiB) Downloaded 273 times

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: Input Encoding for Bibliography

Post by cgnieder »

Well, the message is pretty clear: you have a character in the wrong encoding in line 347. You should check that line (also for hidden chars) and maybe retype it in the correct encoding.

Regards
site moderator & package author
Post Reply