
我目前正在使用書本課程撰寫論文。我試圖以這種方式顯示目錄:
每章的顯示方式如下:
我對乳膠相當陌生,這是我第一次寫論文,所以我不知道如何以這種方式格式化它。任何想法都會很棒!
謝謝!
答案1
\l@chapter
下面的via補丁etoolbox
足夠了:
\documentclass{report}
\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\makeatletter
\patchcmd{\l@chapter}% <cmd>
{#1}% <search>
{\def\numberline##1{\@chapapp~##1\hfill\mbox{}\par\nobreak}#1}% <replace>
{}{}% <success><failure>
\makeatother
\begin{document}
\tableofcontents
\chapter{Introduction}
\chapter{Preliminaries}
\section{Problem definition}
\section{Genetic algorithms}
\section{Ant algorithms}
\section{Previous work}
\end{document}