0

My code is as below. The warnings I got include "Command \NAT@parse already defined. }", and "Unknown document class (or package),(caption) standard defaults will be used.", and "Citation `XX' on page 1 undefined", and "No file CSM_1.bbl.", and "There were undefined citations."

\documentclass[letterpaper,12pt,peerreviewca,draftcls]{IEEEtran}
\usepackage{csm16}
\usepackage[margin=1in]{geometry}
\usepackage[nolists,nomarkers,tablesfirst]{endfloat} % put figures at end
\usepackage{amsmath} % for \eqref
\usepackage[numbers]{natbib}


% added for CSMAG only
\usepackage{url}
\usepackage{graphicx,xcolor}
\usepackage{verbatim}% http://ctan.org/pkg/verbatim
\makeatletter
\newcommand{\verbatimfont}[1]{\def\verbatim@font{#1}}%
\makeatother
\verbatimfont{\ttfamily\small}
\newcommand{\XX}[1]{{\bf XX #1 XX}}
\newcommand{\bi}{\begin{itemize}}\newcommand{\ei}{\end{itemize}}
\newcommand{\be}{\begin{equation}}\newcommand{\ee}{\end{equation}}
\newcommand{\bee}{\begin{enumerate}}\newcommand{\eee}{\end{enumerate}}
\newcommand{\bea}{\begin{eqnarray}}\newcommand{\eea}{\end{eqnarray}}
\newcommand{\beas}{\begin{eqnarray*}}\newcommand{\eeas}{\end{eqnarray*}}
\newcommand{\bc}{\begin{center}}\newcommand{\ec}{\end{center}}
%
\usepackage[left,pagewise]{lineno} 
\usepackage[english]{babel} 
\usepackage{blindtext}
% added for CSMAG only

\title{A paper}
\author{John\ Smith\\
    john.smith@hotmail.com\\ \today }

\newif\ifPDF \ifx\pdfoutput\undefined\PDFfalse \else\ifnum\pdfoutput > 0\PDFtrue \else\PDFfalse \fi \fi
\ifPDF 
\usepackage[pdftex, plainpages = false, colorlinks=true, linkcolor=black, citecolor = green!50!blue, urlcolor = blue, filecolor=black, pagebackref=false, hypertexnames=false,  pdfpagelabels ]{hyperref}
\fi

\begin{document}
\maketitle
\CSMsetup
\linenumbers \modulolinenumbers[2] % added for CSMAG only


\section{Introduction}
Here we cite \cite{kalman1960new}.

\bibliographystyle{IEEEtranN}
\bibliography{references}

\end{document}
1
  • Welcome to TeX.SE. Where can I find the csm16 package?
    – rbrignall
    Jul 13 at 13:28
0

Put after \documentclass{...

\makeatletter
\let\NAT@parse\undefined
\makeatother

Remark IEEEtran is prepared to use the package cite for citations. In that case this added code is not needed. With \bibliographystyle{IEEEtran} you will get the same output.

b

\documentclass[letterpaper,12pt,peerreviewca,draftcls]{IEEEtran}

%************************ added <<<<<<<<<<<<< (only for natbib)
\makeatletter
\let\NAT@parse\undefined
\makeatother
%************************

\usepackage{csm16}
\usepackage[margin=1in]{geometry}
\usepackage[nolists,nomarkers,tablesfirst]{endfloat} % put figures at end
\usepackage{amsmath} % for \eqref
\usepackage[numbers]{natbib}
%\usepackage{cite} % alternative for IEEEtran <<<<<

% added for CSMAG only
\usepackage{url}
\usepackage{graphicx,xcolor}
\usepackage{verbatim}% http://ctan.org/pkg/verbatim
\makeatletter
\newcommand{\verbatimfont}[1]{\def\verbatim@font{#1}}%
\makeatother
\verbatimfont{\ttfamily\small}
\newcommand{\XX}[1]{{\bf XX #1 XX}}
\newcommand{\bi}{\begin{itemize}}\newcommand{\ei}{\end{itemize}}
\newcommand{\be}{\begin{equation}}\newcommand{\ee}{\end{equation}}
\newcommand{\bee}{\begin{enumerate}}\newcommand{\eee}{\end{enumerate}}
\newcommand{\bea}{\begin{eqnarray}}\newcommand{\eea}{\end{eqnarray}}
\newcommand{\beas}{\begin{eqnarray*}}\newcommand{\eeas}{\end{eqnarray*}}
\newcommand{\bc}{\begin{center}}\newcommand{\ec}{\end{center}}
%
\usepackage[left,pagewise]{lineno} 
\usepackage[english]{babel} 
\usepackage{blindtext}
% added for CSMAG only

\title{A paper}
\author{John\ Smith\\
    john.smith@hotmail.com\\ \today }

\newif\ifPDF \ifx\pdfoutput\undefined\PDFfalse \else\ifnum\pdfoutput > 0\PDFtrue \else\PDFfalse \fi \fi
\ifPDF 
\usepackage[pdftex, plainpages = false, colorlinks=true, linkcolor=black, citecolor = green!50!blue, urlcolor = blue, filecolor=black, pagebackref=false, hypertexnames=false,  pdfpagelabels ]{hyperref}
\fi

\begin{document}
    \maketitle
    \CSMsetup
    \linenumbers \modulolinenumbers[2] % added for CSMAG only   
    
    \section{Introduction}
    Here we cite \cite{kalman1960new}.
    
    \bibliographystyle{IEEEtranN}
    \bibliography{references}
    
\end{document}

With references.bib

@article{kalman1960new,
    title={Contributions to the theory of optimal control},
    author={Kalman, Rudolf Emil and others},
    journal={Bol. soc. mat. mexicana},
    volume={5},
    number={2},
    pages={102--119},
    year={1960}
}
1
  • Thank you so much!
    – camio
    Jul 13 at 14:52

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.