TransWikia.com

Package inputenc Error: Unicode character

TeX - LaTeX Asked on February 7, 2021

I have installed a clean version of MacOs and also a new versione of MacTex. While compiling a tex file, i get the following error

Package inputenc Error: Unicode character γ (U+3B3)(inputenc) not set up for use with LaTeX.

If I compile the same file on the old version of MacOs I don’t get this error. Is there any setting of the package inputenc should I change?

It is an error arising from the bibliography file .bbl

2 Answers

I had the same error from a reference in a bib file. I left the bib file as is and used DeclareUnicodeCharacter{03B3}{$gamma$} and it worked a treat. Now the $gamma$ comes up nicely!

Answered by Philip Ingenhoven on February 7, 2021

Glad you solved this. Your options include:

  • Load the unicode-math package in a native Unicode engine, such as LuaLaTeX. It will understand all Unicode characters. This is what I would recommend, unless your publisher or professor requires you to use legacy 8-bit fonts.
  • Load usepackage[LGR,T1]{inputenc} on a modern distribution, and it should understand γ in text mode. The kernel will only set up the Unicode characters that are in a text encoding that you loaded.
  • Do a search-and-replace in your source file.
  • Recent versions of babel should be able to automatically switch to a Greek font when they see Greek letters.
  • Define a command to display γ (either with inputenc or newunicodechar). This should probably be something like ifmmodegammaelsetextgammafi so it will work in either text or math mode.

Answered by Davislor on February 7, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP