Fix LaTeX error utf8.def not found in inputenc.sty

less than 1 minute read

When moving files between:

  • case-insensitive filesystems: HFS+, exFAT, FAT
  • case-sensitive filesystems: Ext4, NTFS, APFS

LaTeX documents may fail to build if case of filename differs from LaTeX code. It’s best to always use lowercase for filenames when sharing with case-insensitive systems.

LaTeX packages: always lowercase

This example is for the UTF8 package. This stanza works for case-insensitive:

\usepackage[UTF8]{inputenc}  % don't use capitals!

but on case-sensitive systems, yields error:

UTF8.def not found from inputenc.sty

Fix this error by always using lowercase LaTeX package names.





Leave a Comment