目次の著者

目次の著者

目次(章タイトルの上)に著者名を挿入したいここのような: ここに画像の説明を入力してください

しかし、提案された方法はスクリプトタイプのドキュメントでは機能しません。

\documentclass[12pt,a4paper,oneside,ngerman]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\begin{document}
\tableofcontents

\chapter{Blabla 1}
sdadasdas

\section{Blabla 1.1}
fd
\subsection{Blabla 1.1.1}
das
\end{document}

前もって感謝します!

答え1

適応するゴンサロ・メディナの以前の回答screportクラスの代わりに を使用するのはmemoirそれほど難しくありません。変更する必要がある主な点は、tocloftパッケージを明示的にロードすることです。(クラスによって自動的にロードされますmemoir。)

ここに画像の説明を入力してください

\documentclass[12pt,a4paper,oneside,ngerman]{scrreprt}
\usepackage{babel}
\usepackage{blindtext}
%\usepackage[ansinew]{inputenc} %% is this needed/correct?

\renewcommand{\thesection}{\arabic{section}}
\setcounter{secnumdepth}{3} % Subsection mit Zähler (1.1) versehen

%%
% Kolumnentitel
%%
\renewcommand{\chaptermark}[1]{ \markboth{#1}{}  } % Stil der Kopfzeile zurücksetzen
\renewcommand{\sectionmark}[1]{ \markright{#1}{} } % Stil der Kopfzeile 


%%
% Inhaltsverzeichnis
%%
\usepackage{tocloft}
\renewcommand*{\cftchapdotsep}{\cftdotsep}
\setcounter{tocdepth}{0}
\renewcommand{\cftchapfont}{\normalfont}
\renewcommand{\cftchappagefont}{\normalfont}

\makeatletter
\DeclareRobustCommand\authortoctext[1]{%
{\addvspace{10pt}\nopagebreak\leftskip0em\relax
\rightskip \@tocrmarg\relax
\noindent\itshape#1\par\addvspace{-7pt}}}
\makeatother
\newcommand\authortoc[1]{%
  \gdef\chapterauthor{#1}%
  \addtocontents{toc}{\authortoctext{#1}}}

%%
% Dokumentenbeginn
%%
\begin{document}
\tableofcontents
\authortoc{Walter von der Vogelweide}
\chapter{Ich sass uf eynem Steine?}
\section{Und dachte Bein mit Beine}
\Blindtext\Blindtext\Blindtext\Blindtext

\authortoc{Hartman von Aue}
\chapter[Was auch immer]{So gebt nur mehr und immer mehr}
\section{Moralische Quellen der Irrationalitat}
\Blindtext\Blindtext\Blindtext\Blindtext
\end{document}

関連情報