I tried different versions of WinEdt and MiKTeX but every time I run the code find this error:
! LaTeX Error: Two \documentclass or \documentstyle commands.
See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ...
l.450 \documentclass{
ltxdoc}
And as a result it could not create PDF file. I am a beginner and guess it should be about packages used there.
Thanks for comments, I am 100% sure that there is only one \documentclass
and here is the list of packages used:
\documentclass[10pt,journal,compsoc]{IEEEtran}
%
\ifCLASSOPTIONcompsoc
% IEEE Computer Society needs nocompress option
% requires cite.sty v4.0 or later (November 2003)
\usepackage[nocompress]{cite}
\else
% normal IEEE
\usepackage{cite}
\fi
\newcommand\MYhyperrefoptions{bookmarks=true,bookmarksnumbered=true,
pdfpagemode={UseOutlines},plainpages=false,pdfpagelabels=true,
colorlinks=true,linkcolor={black},citecolor={black},urlcolor={black},
pdftitle={Bare Demo of IEEEtran.cls for Computer Society Journals},% <!CHANGE!
pdfsubject={Typesetting},%<!CHANGE!
pdfauthor={Michael D. Shell},%<!CHANGE!
pdfkeywords={Computer Society, IEEEtran, journal, LaTeX, paper,
template}}%<^!CHANGE!
\hyphenation{op-tical net-works semi-conduc-tor}
\usepackage{amssymb}
\usepackage{latexsym}
\usepackage{epsfig}
\usepackage{graphics}
\usepackage{url}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{program}
\usepackage{keywords}
\usepackage{subcaption}
\usepackage{caption}
\usepackage{stfloats}
\usepackage{multicol}
\usepackage{kantlipsum}
\usepackage{mdwtab}
\usepackage[sort&compress]{natbib}
\begin{document}
\end{document}
\documentclass
commands is that you have two\documentclass
commands and the fix is to remove one of them. If you show no code how can anyone help?ltxdoc
is only used for documenting packages, never in real documents, have you gone\input{somepackage.dtx}
in your main file?abc.dtx
asabc.sty
(which would cause that error)