TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I hope you can help me.

I am using an empty grammar environment, included in the syntax package, within a file called appendix_c.tex, whose contents are as follows:

\chapter{Modified version of the grammar of VHDL}\label{short-vhdl-grammar}


Then, in a file called acronyms.tex I inserted the following code:

\chapter{List of acronyms}

\item[ASIC] Application-Specific Integrated Circuit

\item[CORBA] Common Object Request Broker Architecture

\item[DCS] Digital Communications System
\item[DSML] Domain-Specific Modeling Language

I was using acronym instead of description, but got the same problem. I get the following error every time I process the main file thesis.tex:

! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

l.11 \begin{description}

And the contents of thesis.tex are roughly like this:

\documentclass[letterpaper, 12pt]{report}




% Top margin
% Heading space
% Left side margin
% Text dimensions
% Page number space
% Margin notes


















The problem seems to be located in the transition from appendix_c.tex and acronyms.tex. Does anybody know what is going on? I cannot even start to type any grammar because of this problem. And I tried getting rid of the acronym environment but the issue is still present.

share|improve this question
Did you try using it in the main document without any include with some dummy text? You can start reducing your example by stripping out the details and isolating the real cause. The problem looks like a syntax error somewhere. – percusse Apr 5 '12 at 2:34
Welcome to TeX.SE. While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages. Personally, I have often solved my own problems in the process of reducing the amount of code actually required to reproduce the problem. – Peter Grill Apr 5 '12 at 2:41
I did attempt to reduce your code to a MWE but was not able to get it to a point where I could reproduce the problem. – Peter Grill Apr 5 '12 at 2:42
I forgot to mention that when I remove the use of the grammar environment from appendix_c.tex everything works fine. – balderas Apr 5 '12 at 2:44
Why have an empty grammar environment in the first place? – Werner Apr 5 '12 at 3:35

Do not leave the grammar environment empty; it is built using a list, so leaving it without contents (in the presence of another list-like environment!) will trigger the error. This minimal example reproduces the error






You can comment out the lines beginning and ending the environment:


or, if for some reason you need the environment there without the actual contents, simply populate it with something it expects:



<statement> ::= <ident> ‘=’ <expr>



you can also use something simpler such as

\item a
share|improve this answer

Your Answer


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.