I try to compile the following code with luatex
\documentclass[a4paper,11pt,latvian]{article}
\usepackage[margin=2.5cm]{geometry} % for margins on a A4paper
\usepackage[shorthands=off,bidi=basic]{babel}
\usepackage[skip=5.5pt]{caption}[2020/09/12]
\usepackage[Export]{adjustbox} % #124
\usepackage{titlesec}
\begin{document}
\begin{figure}[!htbp]
\input{images/6195f2d3c08c94fdc73f8d014f5614648c81ee8b.tex}
\vspace{-11pt}
\caption{%
Sample text%
}
\end{figure}
\end{document}
and get the following exception:
Package luatex.def Info: images/6195f2d3c08c94fdc73f8d014f5614648c81ee8b.png u
sed on input line 3.
(luatex.def) Requested size: 1259.70319pt x 917.42528pt.
)
! Undefined control sequence.
\the@chapter ...ed \relax \else \ifnum \c@chapter
>\z@ \thechapter \fi \fi
l.11 \caption{
%
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
I've publish the log file under https://justpaste.it/cvwv5
I think its somehow related with latvian
but I'm not sure. Changing to e.g. french
compiles.