I am using LyX to write lecture notes, with most of the text in Hebrew. I have many theorems and definitions, and they are defined using the theorems-ams
module (Document > Settings > Modules).
Up until now it's all good, document compiles perfectly and without any error.
Now I want to add a list of theorems and definitions, but am unable to due to some weird problem: I have added \usepackage{thmtools}
to my document's preamble settings and at the bottom of the document ERT with \listoftheorems
. It looks like this:
However, for some reason I get a pile of errors:
Most of them about an extra }. when digging into the log file, I get this message (corresponding the error in the above screenshot):
! Argument of \@dottedtocline has an extra }.
<inserted text>
\par
l.3218 \end
{document}
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.
However the output .tex file looks perfectly normal:
So it has come to the point where I've got no clue what's wrong. Any ideas?
LyX version 2.3.6.1, thmtools 63477 (73)
My whole preamble:
\usepackage{pgfplots}
\usepackage{tikz}
\usepackage{listofitems}
\usepackage{xcolor}
\usepackage[outline]{contour}
\usepackage{thmtools}
\usetikzlibrary{patterns}
\usetikzlibrary{automata, arrows.meta, positioning}