GeneralIncomprehensible Error about undefined Control Sequence

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Drvanger
Posts: 2
Joined: Sun Apr 14, 2013 12:06 am

Incomprehensible Error about undefined Control Sequence

Post by Drvanger »

(In German - Hilfe auf deutsch: Undefined control sequence - wie finde ich heraus, was fehlt? - LC editor remark)

Hi,

I'm trying to use the geometry package to set the margins for my document. When I'm trying to compile my document into PDF format, I get the following error message.

Code: Select all

[PDFLaTeX] test.tex => test.pdf (pdflatex)
[PDFLaTeX] finished with exit code 1
./test.aux:7Undefined control sequence \begin{document}
./test.aux:4Undefined control sequence \select@language{magyar}
[PDFLaTeX] 2 errors, 0 warning, 0 badboxes
My test document is this one.

Code: Select all

\documentclass[12pt]{report}
\usepackage[magyar]{babel}
\usepackage{geometry}

\begin{document}
Abc
\end{document}
If I delete the line with the babel package, the document compiles without errors. Also, if I use the report class instead, I don't get any errors. I've attached the test.log file.

What's wrong with my document?
Attachments
test.log
(6.33 KiB) Downloaded 432 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Incomprehensible Error about undefined Control Sequence

Post by kaiserkarl13 »

Try loading babel after geometry. I think it's a problem that you don't have the right language definitions, though.
Drvanger
Posts: 2
Joined: Sun Apr 14, 2013 12:06 am

Re: Incomprehensible Error about undefined Control Sequence

Post by Drvanger »

Thanks, that solved my problem! :)
Post Reply