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
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:
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.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.babel
should be able to automatically switch to a Greek font when they see Greek letters.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
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP