10

I have write definitions in this way (this is a MWE class unatesi is available here):

\documentclass[laurea,oneside,12pt,italian]{unatesi}
\usepackage{amsthm}
\usepackage{thmtools}

\newtheorem{defin}{Definition}

\begin{document}
    \begin{defin}[Definition's name]
        Lorem ipsum dolorem
    \end{defin}

    \listoftheorems
\end{document}

So when list is printed, it shows something like that:

1 Definition (Definition's name)............................ 1

But I want something like

1 Definition's name............................................. 1

There's a way to do this?

2
  • 1
    Please provide a minimal working example that reveals your document class plus the packages relevant for typesetting the theorems.
    – lockstep
    Commented Apr 22, 2012 at 15:20
  • MWE is present now.
    – BAD_SEED
    Commented Apr 22, 2012 at 15:46

1 Answer 1

11

You have to redefine the macro responsible for writing the relevant data in the loe file:

\newtheorem{defin}{Definition}
\makeatletter
\def\ll@defin{%
  \protect\numberline{\csname the\thmt@envname\endcsname}%
  \ifx\@empty\thmt@shortoptarg
    \thmt@thmname
  \else
    \thmt@shortoptarg
  \fi
}
\makeatother

Of course it's better to use the interface of thmtools for defining new theorem-like environments, in order to decide which ones go to the list of theorems, for instance.

3
  • 2
    Ah, you beat me to it :) Commented Apr 22, 2012 at 16:01
  • 4
    @UlrichSchwarz Yes, egreg can even beat the respective package author. ;-)
    – lockstep
    Commented Apr 22, 2012 at 16:03
  • 2
    @UlrichSchwarz Oh, sorry. :)
    – egreg
    Commented Apr 22, 2012 at 16:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .