[texworks] message from TeXworks user(MiKTeX)

Bruno Voisin bvoisin at me.com
Thu May 13 17:01:59 CEST 2010

Le 13 mai 2010 à 15:53, Byache Paul a écrit :

> Je débute dans l'utilisation de MikTex...
> J'utilise un modèle de document, dans lequel il y a :
> \usepackage[latin1]{inputenc}
> Cependant, les caractères accentués ne s'affichaient pas correctement dans le pdf et maintenant, le document ne se génère plus du tout en pdf (il y a un message signalant une erreur :
> ! Package inputenc Error: Keyboard character used is undefined
> (inputenc) in inputencoding `latin1'.

This being primarily an English-speaking forum, you'd get more chances being answered by posting in English if possible.

To the non-French speaking: the original poster is surprised that, loading the inputenc package with option latin1, he gets first missing characters in the PDF output and afterwards no PDF generation at all with the above error message.

TeXworks is set to use UTF-8 encoding by default in its editor. You need to either:

- Select ISO-8859-1 in Preferences > Editor > Encoding, and keep using the latin1 option in inputenc.

- Keep the UTF-8 encoding selected, and switch to the utf8 option in inputenc.

Another possibility is to switch to the XeLaTeX processing tool in the toolbar, in which case you need to keep the UTF-8 encoding in the editor and remove the call to the inputenc package, since XeLaTeX deals with Unicode input natively making the inputenc package unnecessary.

Bruno Voisin

More information about the texworks mailing list