0

I have added the link of the code that is of my interest..please do visit, How to include headers in first page of list of tables ,contents, etc 1)in this code how to incorporate \nocite{*}, because when I include it shows various errors...

\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\pagestyle{fancy}
\makeatletter
\let\ps@plain\ps@fancy
\makeatother
\begin{document}
\nocite{*}
\pagenumbering{roman}
\fancyhead[L]{\contentsname}
\fancyhead[R]{}
\tableofcontents
\clearpage
\addcontentsline{toc}{section}{\textbf{\listfigurename}}
\fancyhead[L]{\listfigurename}
\fancyhead[R]{}
\listoffigures
\clearpage 
\addcontentsline{toc}{section}{\textbf{\listtablename}}
\fancyhead[L]{\listtablename}
\fancyhead[R]{}
\listoftables
\clearpage
\chapter{INTRODUCTION}
\fancyhead[R]{Chapter 1}
\fancyhead[L]{Introduction}
\pagenumbering{arabic}
\chapter{Particle Swarm Optimization}
\fancyhead[R]{Chapter 2}  
\fancyhead[L]{Particle Swarm Optimization}
\newpage
\addcontentsline{toc}{section}{\textbf{Bibliography}}
\bibliographystyle{plain}
\bibliography{science,s}
\fancyhead[R]{}
\fancyhead[L]{Bibliography}
\end{document}

showing for example the errors:

Missing \endcsname inserted ...acefactor \accent@spacefactor n2013397}{1}
Missing \begin{document}. ...acefactor \accent@spacefactor n2013397}{1}
Missing number, treated as zero ...acefactor \accent@spacefactor n2013397}{1}
Extra }, or forgotten \endgroup ...acefactor \accent@spacefactor n2013397}{1} 
Undefined control sequence \bibcite{Ayd\OT1\i n20132456}{45}

the only code i got working of it is,

\documentstyle{report}
\begin{document}
\nocite{*}
\bibliographystyle{plain}
\bibliography{science,s}
\end{document}
  • 1
    It doesn't show any error by my side. Can you include my example in your previous question with your additions? – karlkoeller Jan 22 '15 at 18:33
  • 2
    " ... i have a lot of problems ..." -- and what, specifically, are these problems? Please don't ask others to play detective -- just list some of the error and/or warning messages. – Mico Jan 22 '15 at 19:07
  • 1
    Have you tried deleting the .bbl and .aux files? – karlkoeller Jan 22 '15 at 20:16
  • 1
    @RaajaG Please edit the errors into the original question. That makes it easier for you and us to keep track of things. – Johannes_B Jan 22 '15 at 20:42
  • 1
    One very very important thing you should look after: \documentstyle is obsolete for over twenty years. Using it makes LaTeX run in backwards compatibility mode. You should get huge warnings. – Johannes_B Jan 22 '15 at 20:43
1

1) One very very important thing you should look after: \documentstyle is obsolete for over twenty years. Using it makes LaTeX run in backwards compatibility mode. You should get huge warnings.

2) try deleting the .bbl and .aux files

Both helps thanks guys................ karlkoeller & johannes B

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.