I cannot find a way to change chapter style with babel included (for hungarian language). Here is the example:
\documentclass[a4paper]{report}
\usepackage[magyar]{babel}
\usepackage{titlesec}
\titleformat{\chapter}[hang]
{\normalfont}
{\LARGE\thechapter.}
{10pt}
{\LARGE\MakeUppercase}
[\normalfont]
\titlespacing{\chapter}{0pt}{0pt}{30pt}[0pt]
\begin{document}
\chapter{First chapter}
\end{document}
If I comment out the \usepackage[magyar]{babel}
line, everything works as expected, however, with babel it does not work. Is it possible to style chapters (and sections, etc.) while using babel?
\titleformat
, but looks like babel's default. With english babel\usepackage[english]{babel}
it works properly. – Gergely May 23 '13 at 20:04magyar
module forbabel
does a lot of stuff\AtBeginDocument
and this might be the cause. One possible workaround is to move the\titleformat
and\titlespacing
commands after\begin{document}
. – Gonzalo Medina May 23 '13 at 20:20\chapter
after\begin{document}
, while not giving any method for overriding this choice. – egreg May 23 '13 at 22:55