I'm using the syntax package from the mdwtools version 1996/05/17 1.07. I successfully set the properties to show a grammar definition properly but then when I try to combine it with the lineno package I got a nasty error showing a double line number for each new rule. Then digging the code of syntax.sty I found I can fix the problem in the definition of 'grammar' commenting this line:
Code: Select all
\vskip-\baselineskip%