Moin moin,
Zitat von
romanrt
Das funktioniert nicht. Die Fehlermeldung sagt, dass die Umgebung formula nicht vorhanden ist.
oh, float definiert den entsprechenden \l@formula-Befehl erst innerhalb des \listof-Befehls ...
Code:
\makeatletter
\renewcommand*{\listof}[2]{%
\@ifundefined{ext@#1}{\float@error{#1}}{%
\@namedef{l@#1}{\@dottedtocline{1}{1.5em}{2.9em}}%<--
\float@listhead{#2}%
\begingroup\setlength{\parskip}{\z@}%
\@starttoc{\@nameuse{ext@#1}}%
\endgroup}}
\makeatother
obwohl, wenn Du scrhack lädst, sieht die Definition vermutlich anders aus.
Hier mal ein Ansatz auf NeuKOMAnisch [1]:
Code:
\documentclass{scrbook}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\makeatletter
\newenvironment{formula}{\@float{formula}}{\end@float}
\newcommand*\fps@formula{hbp}
\newcommand*\ftype@formula{4}
\newcounter{formula}[chapter]
\renewcommand\theformula{\thechapter.\arabic{formula}}
\newcommand*\formulaformat{Formula~\theformula\autodot}
\newcommand*\fnum@formula{\formulaformat}
\newcommand*\ext@formula{for}
\addtotoclist[float]{\ext@formula}
\@namedef{listof\ext@formula name}{Formulary}
\newcommand*\l@formula{\l@table}
\setuptoc{\ext@formula}{chapteratlist}
\newcommand*\listofformulas{\listoftoc{\ext@formula}}
\makeatother
\begin{document}
\listofformulas
\listoftables
\chapter{Test}
\begin{formula}
\begin{equation}
a
\end{equation}
\caption{Testformel}
\end{formula}
\begin{table}
a
\caption{Testtabelle}
\end{table}
\chapter{Test 2}
\begin{formula}
\begin{equation}
b
\end{equation}
\caption{Testformel 2}
\end{formula}
\begin{table}
b
\caption{Testtabelle 2}
\end{table}
\end{document}
also unter Verwendung des tocbasic-Pakets, das von scrbook eh geladen wird, vgl. `texdoc scrguide', Kapitel 12.
[1] KOMA ab Version 3
MfG
Lesezeichen