latex3 / babel

The babel system for LaTeX, LuaLaTeX and XeLaTeX
LaTeX Project Public License v1.3c
123 stars 34 forks source link

Babel does not run: Unknown option 'ngerman'. (Possible interaction with lua version?) #255

Closed Weyaaron closed 10 months ago

Weyaaron commented 10 months ago

Dear Community,

I recently broke my babel installation. After some searching and attempts to reinstall packages etc, I am confident that this a genuine bug. I will provide a lot of context, to be sure I describe the problem as thoroughly as possible. A connection to my lua installation is suspected, because the issues started after changes to my lua setup. One reason I suspect this is that there have been some instances of "nil" appearing in the logs, unfortunately this is not reproducible. Confirmation of the connection to lua is beyond my scope of knowledge.

I have provided the minimal example below, it crashes on line 4.

\documentclass[ngerman,10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\title{Test}
\begin{document}
    \maketitle

\end{document}

Other languages do not work either, ngerman is just the particular language I intended to use. I have appended the full log from running xelatex on the provided example.

According to texstudio, running

pdflatex -synctex=1 -interaction=nonstopmode "Minimal_Example".tex

results in

Package babel Error: Unknown option 'ngerman'. Either you misspelled itd. \ProcessOptions*

Furthermore, I have provided a list of all the installed packages on my system, which runs Manjaro. Furthermore, these are the information provided by xelatex and lua respectivly:

xelatex -v                                                                      
XeTeX 3.141592653-2.6-0.999995 (TeX Live 2023/Arch Linux)
kpathsea version 6.3.5
Copyright 2023 SIL International, Jonathan Kew and Khaled Hosny.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 73.2; using 73.2
Compiled with zlib version 1.2.13; using 1.2.13
Compiled with FreeType2 version 2.13.1; using 2.13.1
Compiled with Graphite2 version 1.3.14; using 1.3.14
Compiled with HarfBuzz version 8.0.1; using 8.0.1
Compiled with libpng version 1.6.40; using 1.6.40
Compiled with pplib version v2.05 less toxic i hope
Compiled with fontconfig version 2.14.2; using 2.14.2
lua -v                                                                        
Lua 5.4.6  Copyright (C) 1994
-2023 Lua.org, PUC-Rio

Any help is appreciated, I will provide additional info on request.

Greetings, Aaron

packages.txt Minimal_Example.log

davidcarlisle commented 10 months ago

Note this is a bug report address not a support forum, however it looks like you have not installed German support

https://archlinux.org/packages/extra/any/texlive-langgerman/

Neither pdflatex nor xelatex use Lua at all. Also note your test document uses T1 encoding so should not be used with xelatex which does not load hypenation for T1 encoded fonts.

David

Weyaaron commented 10 months ago

Thanks for the quick reply, I appreciate it. Installing the missing package solved my problem. This marks this as closed.