I am using the command \listoftheorems with packages amsthm and thmtools. The problem is that the theorem's head and its optional title overlap. How can I make this space bigger to avoid overlapping?
Thank you all. I include an example below (maybe not minimal). I've tried \makeatletter\thmt@listnumwidth{4.3em}\makeatother but I get errors. Same thing with \renewcommand{\l@theorem}{\@tocline{0}{3pt plus2pt}{0pt}{3.5em}{}}. Any other clues? Should I try working with ntheorem instead?
%% LyX 2.0.0 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,a4paper,english,titlepage, fleqn,numbers=noenddot]{scrbook}
\usepackage[osf]{mathpazo}
\usepackage{helvet}
\usepackage{courier}
\renewcommand{\familydefault}{\rmdefault}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\pagestyle{headings}
\setcounter{tocdepth}{3}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\usepackage{babel}
\usepackage{setspace}
\onehalfspacing
\usepackage[unicode=true,
bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=4,
breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=false]
{hyperref}
\hypersetup{pdftitle={},
pdfkeywords={music cognition, categorization, embodiment}}
\makeatletter
\pdfpageheight\paperheight
\pdfpagewidth\paperwidth
\usepackage{amsthm}
\usepackage{thmtools}
\declaretheorem[style=remark, name={}]{Example}
\renewcommand{\theExample}{\bf{Def. \thechapter.\arabic{Example}}}
\makeatletter
\def\th@remark{%
\thm@headpunct{:}
\thm@notefont{\bfseries\itshape}}
\makeatother
\makeatletter
\def\thmhead@plain#1#2#3{%
\thmname{#1}\thmnumber{\@ifnotempty{#1}{ }\@upn{#2}}%
\thmnote{ {\the\thm@notefont#3}}}
\let\thmhead\thmhead@plain
\def\swappedhead#1#2#3{%
\thmnumber{#2}%
\thmname{\@ifnotempty{#2}{~}#1}%
\thmnote{ {\the\thm@notefont#3}}}
\makeatother
\newcounter{genero}
\setcounter{genero}{1}
\AtBeginDocument{
\def\labelitemi{\normalfont\bfseries{--}}
\def\labelitemii{\(\star\)}
\def\labelitemiii{\(\cdot\)}
}
\makeatother
\begin{document}
\listoftheorems
\begin{Example}[Género musical \thegenero]\stepcounter{genero}
first example.
\end{Example}
\begin{Example}[Género musical \thegenero]\stepcounter{genero}
second example.
\end{Example}
\begin{Example}[Género musical \thegenero]\stepcounter{genero}
third example.
\end{Example}
\end{document}

\listtheoremsinntheorem– Werner Apr 30 '12 at 05:19\makeatletter\thmt@listnumwidth{4.3em}\makeatotherhelp? I'm not 100% clear which space you mean (and haven't looked at that code for a while either). – Ulrich Schwarz Apr 30 '12 at 09:32\contentsline {theorem}{\numberline {1.1}{...}}{2}. if this is so, then redefining the command\l@theoremshould do the job:\renewcommand{\l@theorem}{\@tocline{0}{3pt plus2pt}{0pt}{3.5em}{}}where3.5emis the width of the space provided for the "head". (be sure to wrap this in\makeatletter ... \makeatother) – barbara beeton Apr 30 '12 at 13:39