0

Below is the preamble I used. After reading several pages I added abstract but it can't produce abstract my .pdf file.

\immediate\write18{makeindex \jobname.nlo -s nomencl.ist -o \jobname.nls}
\documentclass[paper=letter, fontsize=12pt]{book}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{fancyhdr}
\usepackage{geometry}
\usepackage{textcomp}
\usepackage{setspace}
\usepackage[font=small]{caption}
\usepackage{float}
\usepackage{lineno}
\usepackage{hyperref}
\usepackage[Glenn]{fncychap} 
\setlength{\parindent}{0in}
\onehalfspacing
\usepackage[numbers]{natbib}

\begin{document}
\begin{center}
\textbf{Declaration}\\
\end{center}
%\section*{Abstract}
\begin{Abstract}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
\end{Abstract}

Now the error message appears is which is very common type:

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.33 \begin{Abstract}
Mensch
  • 65,388
Higgs
  • 117
  • 2
    Please make your code snippet compilable! – Mensch May 14 '18 at 12:38
  • Sorry I didn't got your point. Please rephrase it. – Higgs May 14 '18 at 12:44
  • See here: https://tex.meta.stackexchange.com/q/228/103046 – Tiuri May 14 '18 at 12:50
  • 1
    In your code snippet \end{abstact} and \end{document} at last is missing. To help you show us a complete code resulting in the error you have ... – Mensch May 14 '18 at 12:50
  • Related: https://tex.stackexchange.com/q/100729/82917, https://tex.stackexchange.com/q/68222/82917, https://tex.stackexchange.com/q/51483/82917. The book class does not provide an environment for the abstract. – campa May 14 '18 at 13:11
  • @campa: what should I write instead of book class? I am writing thesis. – Higgs May 14 '18 at 13:17
  • Just use \chapter*{Abstract}. – Johannes_B May 14 '18 at 14:28
  • @Johnnes: It worked – Higgs May 14 '18 at 14:36
  • @Johannes: what should I do to give page number as well to the abstract page in list of contents page? – Higgs May 14 '18 at 14:40
  • \addcontentsline{toc}{chapter}{Abstract}. You could also download unnumberedtotoc and use \addchap{Abstract} instead. But if you need only one unnumbered chapter, the above line will be just fine. If the header annoys you, add \markboth{Abstract}{Abstract} as well (both directly after \chapter*{Abst}. – Johannes_B May 14 '18 at 16:56

0 Answers0