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.

Usually in my articles for the \documentclass[journal]{IEEEtran}, I use the description environment without getting any error, i.e. \begin{description} … \end{description}. However, when I used the \documentclass{bioinfo} for the Oxford Bioinformatics journal template I got an error stating that the description environment is undefined.

Can anybody help me to figure out this issue?

share|improve this question
4  
The list environments (like description) are not defined in the LaTeX kernel but by the document classes. Seems bioinfo does not define it. IMHO it is thus broken, since description is a standard LaTeX environment - you should contact its authors. –  Martin Schröder Dec 28 '12 at 7:29
add comment

1 Answer

up vote 7 down vote accepted

You could grab the necessary details from article.cls:

enter image description here

\documentclass{bioinfo}% http://www.oxfordjournals.org/our_journals/bioinformatics/for_authors/submission_online.html
\makeatletter
\newenvironment{description}% Taken from article.cls
               {\list{}{\labelwidth\z@ \itemindent-\leftmargin
                        \let\makelabel\descriptionlabel}}
               {\endlist}
\newcommand*\descriptionlabel[1]{\hspace\labelsep
                                \normalfont\bfseries #1}
\setlength{\labelsep}{.5em}% Also taken from article.cls
\makeatother
\begin{document}
\begin{description}
  \item[An item] Here is a description on an item.
  \item[Another item] Here is a description on an item.
\end{description}
\end{document}

You would have to include everything between \makeatletter and \makeatother (inclusive).

share|improve this answer
    
Many thanks! it works. –  Bel Dec 29 '12 at 22:17
add comment

Your Answer

 
discard

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

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