Generallineno and syntax package incompatibilities

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
thesaurus
Posts: 2
Joined: Thu Dec 30, 2010 8:06 pm

lineno and syntax package incompatibilities

Post by thesaurus »

Hello!

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%
Now it works better but I have extra new lines between rules. In fact the definitions start at line number 2 and I cannot remove these extra lines! (It seems is related to the lists command) I suppose this is a bug. TeX is far out from my expertize so I report this bug wondering if someone have a workaround or help me to fix this issue.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

thesaurus
Posts: 2
Joined: Thu Dec 30, 2010 8:06 pm

lineno and syntax package incompatibilities

Post by thesaurus »

FYI I got an answer to this question solving the problem of numbering blank lines. Check it out at {TEX} SE.
Post Reply