TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my (out of the box) configuration of LyX, the line


is inserted in the generated .tex file by default. This makes it impossible for me to set different options (e.g., utf8) or to load other packages that are incompatible.

Is there a way to prevent LyX from loading inputenc with [latin9]?

share|improve this question
Figured it out. Added CW answer. – raxacoricofallapatorius Feb 20 '12 at 5:49
up vote 7 down vote accepted

In Document > Settings..., under Language > Encoding, choose "Other" and select "Language Default (no inputenc)". This will ensure that no


line is added to the source:

Screenshot of inputenc document settings in LyX

share|improve this answer
So now, how do I change from latin9 (since I don't want this) to utf-8? (I do want that) – user12711 Apr 25 '15 at 20:18
@user12711: That's a separate question. – raxacoricofallapatorius Apr 25 '15 at 20:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.