This is the error code that I get when changing from pdfLaTeX to XeLaTeX

Package inputenc Warning: inputenc package ignored with utf8 based engines

This is my preamble (it was from a template, originally designed to run with pdfLaTeX, but I decided to switch to XeLaTeX because of bibliography or some other function that was easier to implement with the other compiler):


\usepackage[usenames, dvipsnames]{color}
\usepackage[none]{hyphenat} \sloppy

¿Any clue?

  • 4
    Welcome to TeX.SX! Neither inputenc not fontenc should be used with XeTeX or LuaTeX. – Phelype Oleinik Sep 27 '19 at 19:33
  • With \usepackage{fontspec} I solved the problem but I don't know if it's adequate – dmz Sep 27 '19 at 19:35
  • 1
    You are getting a warning, not an error. And it only tells you that the package did the right thing with xelatex: it does nothing. – Ulrike Fischer Sep 27 '19 at 19:45
  • @PhelypeOleinik depends on the age of the texsystem. If OT1 is still the default encoding you would need fontspec to switch. – Ulrike Fischer Sep 27 '19 at 20:24
  • @UlrikeFischer Ooh, I didn't know that. I'll delete my comment :-) – Phelype Oleinik Sep 27 '19 at 20:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.