目录中有我的整个报告!

目录中有我的整个报告!

这是我第一次尝试使用 Latex。我正在使用 LaTeXila。我不明白为什么我的目录会复制我的整个报告,然后为其分配页码:

内容
0.1 1 一个装有 50 个制造零件的箱子里有 3 个有缺陷的零件和 47 个无缺陷的零件。... 实施冒泡排序和随机快速排序并对它们的性能做出比较报告。...。...。...。...。...。...。...。...。...。...。2

“代码”部分:

\begin{document}

\maketitle{}  
\tableofcontents{  
\begin {enumerate}  
\item {question 1}\item {question 2}\item {question 3}\item {question 4}  
\end{enumerate}}  

%\chapter{Assignment}  
\begin{section} {1 A bin of 50 manufactured parts contain three defective parts and 47 non-defective parts. ... Implement Bubble sort and Randomized Quicksort and make a comparative report of their performance }   
\end{section}  
\end{document}

答案1

\maketitle \tableofcontents并且\item不接受{...}参数,并且\section不是环境。我认为你想要这样的东西:

在此处输入图片描述

\documentclass{report}



\title{hmm}
\author{me}
\begin{document}

\maketitle
\tableofcontents

\clearpage

\begin {enumerate}
\item question 1
\item question 2
\item question 3
\item question 4
\end{enumerate}

\chapter{Assignment}
\section{something}
 1 A bin of 50 manufactured parts contain three defective parts and 47 non-defective parts. ... Implement Bubble sort and Randomized Quicksort and make a comparative report of their performance 

\end{document}

相关内容