Recently I have started using LuaLaTeX over pdfLaTeX, without any real issue so far.
When working on a project I have noticed some warning messages I have failed to decpiher after consulting Google and TeXExchange:
LaTeX Warning: Please use \usepackage{t1enc} with
\usepackage[magyar]{babel}, to get accented chars hyphenated.
LaTeX Warning: Please use \usepackage[latin2]{inputenc}
or \usepackage[utf8]{inputenc}
with \usepackage[magyar]{babel}.
Currently I am writing my document in english with some hungarian mixed in (my university requires hungarian declarations in a thesis). I use \usepackage[magyar,english]{babel}
so that both hungarian and english are loaded but english is used by default, then I switch over to hungarian using an otherlanguage
environment when I need to, like so:
... english text ...
\begin{otherlanguage}{magyar}
... hungarian text ...
\end{otherlanguage}
... english text ...
The warning really is a warning in the sense that hyphenation seems to work just fine. Any ideas what produces this warning? I have been thinking about weird package loading order problems, but trying different permutations didn't get rid of this warning.
Example document producing this error:
\documentclass[12pt,a4paper]{report}
\usepackage{fontspec}
\usepackage[magyar,english]{babel}
\begin{document}
This is such a nice document.
\end{document}
I compile it using latexmk -lualatex <file.tex>
.
t1enc
is very very old and obsolete). If everything is ok, just ignore the warnings.inputenc
and/orfontenc
packages did not get loaded. Under both LuaLaTeX and XeLaTeX, these packages shouldn't be loaded anyway as long asfontspec
is loaded. You may ignore the warning messages.