我使用的格式如下:
\documentclass[a4paper,12pt]{book}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{chngcntr}
\usepackage{cite}
\usepackage{fancyhdr}
\usepackage[nottoc,notlot,notlof]{tocbibind}
\counterwithin{figure}{chapter}
\numberwithin{equation}{chapter}
\renewcommand{\baselinestretch}{1.2}
\textheight 9in \textwidth 6.5in \topmargin 0.1in \setlength{\oddsidemargin}{.1in}
\evensidemargin .1in
\pagestyle{fancy}
\cfoot{}
\fancyhf{}
\lhead{{\footnotesize Accident Detection, Theft and Drive Protection using Intelligent Wireless Safety Helmet}}
\lfoot{Department of E\&C, S.I.T., Tumakuru-3}
\rfoot{\thepage}
\rhead{2014-15}
\linespread{1.5}
\numberwithin{equation}{section}
\let\cleardoublepage\clearpage
\bibliographystyle{unsrt}
\begin{document}
\chapter*{Abstract}
Now a days most of the countries are enforcing their citizen to wear helmet while riding bike and not to ride bike when the person is under the influence of alcohol, but still rules are being violated. In order to overcome this problem, " Accident Detection, Theft and Drive Protection using Intelligent Wireless Safety Helmet " is developed. It consists of an intelligent system embedded into the helmet and the vehicle. Helmet unit ensures that rider is wearing helmet and not under influence of alcohol through out the ride. It communicates with vehicle unit to switch off ignition system of bike if above condition is not met. Vehicle unit checks and intimates accident through geometric coordinates via SMS. By using geometric coordinates, location of the injured rider can be traced using simple GPS tracking application. Also, this system provide theft protection as helmet is also essential along with key to start bike.
\addcontentsline{toc}{section}{Abstract}
\tableofcontents
\clearpage
\listoffigures
我得到的是目录中有页码的摘要。但所需的输出应包含bold
目录中没有页码的摘要。
请帮忙解决这个问题。
答案1
您已使用\chapter*{Abstract}
,然后\addcontentsline{toc}{section}{Abstract}
将它Abstract
作为一个部分。您到底想要什么?
我建议你使用课堂提供的设施frontmatter
\mainmatter
。这样你就不需要排队了。只需完成这两项工作即可。\backmatter
book
\chapter*
\addcontentsline{toc}{section}{Abstract}
\Chapter{Abstract}
进一步删除目录中摘要的页码,使用tocloft
包及其\cftpagenumbersoff
功能,如
\addtocontents{toc}{\cftpagenumbersoff{chapter}}
之前Abstract
和
\addtocontents{toc}{\cftpagenumberson{chapter}}
之后。
代码:
\documentclass[a4paper,12pt]{book}
\usepackage[nottoc,notlot,notlof]{tocbibind}
\usepackage{tocloft}
\begin{document}
\frontmatter
\addtocontents{toc}{\cftpagenumbersoff{chapter}}
\chapter{Abstract}
Now a days most of the countries are enforcing their citizen to wear helmet while riding bike and not to ride bike when the person is under the influence of alcohol, but still rules are being violated. In order to overcome this problem, " Accident Detection, Theft and Drive Protection using Intelligent Wireless Safety Helmet " is developed. It consists of an intelligent system embedded into the helmet and the vehicle. Helmet unit ensures that rider is wearing helmet and not under influence of alcohol through out the ride. It communicates with vehicle unit to switch off ignition system of bike if above condition is not met. Vehicle unit checks and intimates accident through geometric coordinates via SMS. By using geometric coordinates, location of the injured rider can be traced using simple GPS tracking application. Also, this system provide theft protection as helmet is also essential along with key to start bike.
\addtocontents{toc}{\cftpagenumberson{chapter}}
\tableofcontents
\clearpage
\listoffigures
\mainmatter
\chapter{Introduction}
\end{document}