latex3 / babel

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

latvian together with titlesec cause error #264

Closed leomayer closed 2 months ago

leomayer commented 9 months ago

I've encountered an issue and it was very well analysed. The MWE

\documentclass[a4paper,11pt]{article}
\usepackage[latvian,shorthands=off]{babel}
\usepackage{titlesec}

%%% ensure \chapter passes the \ifx\chapter\undefined test
%\let\chapter\undefined
%%%

\begin{document}
    \begin{figure}[!htbp]
        \caption{Sample text}
    \end{figure}

\end{document}

Changing to e.g. french the code compiles without problems. Perhaps the issue might appear in other languages as well?

jbezos commented 8 months ago

Fixed on the titlesec side. It remains to be fixed on the babel-latvian side.

jbezos commented 2 months ago

Fix just submitted to CTAN.