Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Using latex, I got this error message:

Latex Error: Environment DoxyEnumerate undefined.

How can this be fixed?

I checked the refman.tex file, \usepackage{doxygen} is there. Below is what refman.tex looks like:

\documentclass[a4paper]{book}  
\usepackage{a4wide}  
\usepackage{makeidx}  
\usepackage{fancyhdr}  
\usepackage{graphicx}  
\usepackage{multicol}  
\usepackage{float}  
\usepackage{textcomp}  
\usepackage{alltt}  
\usepackage{times}  
\ifx\pdfoutput\undefined  
\usepackage[ps2pdf,  
            pagebackref=true,  
            colorlinks=true,  
            linkcolor=blue  
           ]{hyperref}  
\usepackage{pspicture}  
\else  
\usepackage[pdftex,  
            pagebackref=true,  
            colorlinks=true,  
            linkcolor=blue  
           ]{hyperref}  
\fi
\usepackage{doxygen}  
\makeindex  
\setcounter{tocdepth}{1}  
\renewcommand{\footrulewidth}{0.4pt}  
\begin{document}  
\begin{titlepage}  
\vspace*{7cm}  
\begin{center}  
{\Large  Users' Guide}\\  
\vspace*{1cm}  
{\large Version 3.0}\\  
\vspace*{0.5cm}  
{\small Copyright \copyright2009,sc Ltd.}\\  
\end{center}  
\end{titlepage}  
\clearemptydoublepage  
\pagenumbering{roman}  
\tableofcontents  
\clearemptydoublepage  
\pagenumbering{arabic}  
\chapter{Introduction }  
\label{index}\hypertarget{index}{}\input{index} % here when comes to index.tex file, I got the error message. 

In index.tex file:

The full set of E-L functions are also available for programming. The tool kit is made up of two high-/level, shared libraries.

\begin{DoxyEnumerate}  
\item e\-\_\-co  
\item e\-\_\-co\-\_\-gra  
\end{DoxyEnumerate}  

Thanks.

share|improve this question
2  
Please improve your accept rate by accepting helpful answers. Could you add some latex code? If I guess right then is somewhere a line starting with \usepackage missing. By the way this question is better for TeX - LaTeX. –  rekire Sep 12 '12 at 17:58
    
latex code looks like: The tool kit is made up of two high-\/level, shared libraries. \begin{DoxyEnumerate} \item eyelink\-_\-core \item eyelink\-_\-core\-_\-graphics \end{DoxyEnumerate} –  user1558064 Sep 12 '12 at 18:05
    
Yes, I guess something is missing for latex to find DoxyEnumerate and other things related to Doxygen. But I don't know what thing is missing. If it is \usepackage, what package I should add to it? Thanks. –  user1558064 Sep 12 '12 at 18:08
1  
See my answer and please remember to accept answers! –  rekire Sep 12 '12 at 18:09
1  
Please read this: How does accepting an answer work? –  rekire Sep 12 '12 at 19:31
show 3 more comments

migrated from stackoverflow.com Sep 13 '12 at 14:42

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 1 down vote accepted

You need to build your based on the file refman.tex. If I guess right you did not include the right file. Anyway I think that the next line will help you:

\usepackage{doxygen}

Related to your update try to copy all usepackage to your main document and the content of the refman.tex into your main document. You find the start of the content with the command \chapter.

In my file it looks so:

\chapter{Namespace Index}
\input{namespaces}
\chapter{Class Index}
\input{hierarchy}
\chapter{Class Index}
\input{annotated}
\chapter{File Index}
\input{files}
\chapter{Namespace Documentation}
\input{...

Hope that helps

share|improve this answer
    
Yes, I checked refman.tex file, \usepackage{doxygen} is listed there. Detail about the refman.tex and index.tex is given above. What else could cause this error? Thanks. –  user1558064 Sep 12 '12 at 18:32
1  
The only thing I can think of is that you are not using the doxygen.sty file that doxygen generates, but maybe a customized file (or one from a very old doxygen release). Please check if this file contains the \newenvironment{DoxyEnumerate} command. –  doxygen Sep 12 '12 at 21:44
    
yes, this is the reason for the error message I got. Thanks. I use doxygenWizard to genearate a new one. now it works again. –  user1558064 Sep 13 '12 at 13:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.