5

When TeXifying files where I use teubner.sty, LaTeX complains

Runaway argument?
{\setcounter {verso}{##1}\def \writ@verso {\count 255=\value {verso}\divide \ETC
.
! File ended while scanning use of \@newenv.

Seems to be about line 998 in teubner.sty:

\newenvironment{Versi}[1][1]{% <-- there it is
    \setcounter{verso}{#1}%
    \def\writ@verso{%
        \count255=\value{verso}\divide\count255by5\relax
...

A wizard of the most honorable order of Gnu might be able to see it at once: Is the bracket actually unclosed? Where do I have to insert the closing bracket? The macro seems to run from line 996 (\newif\ifBreakVersi) to line 1045 (\let\Versus\Versi \let\endVersus\endVersi).

3
  • And please add a compilable example so we have a test case.
    – Johannes_B
    Commented Jan 18, 2015 at 17:16
  • 1
    Yes, there should be a } more at the end of line 1009. You can fix it yourself in the code, waiting for the author to download a fixed version.
    – egreg
    Commented Jan 18, 2015 at 17:17
  • 4
    I think this may be off-topic because it is about a bug in a package that has been fixed. Latest releases/uses of this package should not have this problem anymore.
    – Werner
    Commented Jan 19, 2015 at 21:21

1 Answer 1

6

The following screenshot from the diff in the repository of TeX Live

enter image description here

shows the problem. In the previous version (4.3, 2014/10/02) the code was

\def\\{\@ifstar{\v@rscr{\@M}}{\v@rscr{\z@}}}%

and in the new version (4.5, 2015/01/14) it is

\def\acapo{\@ifstar{\v@rscr{\@M}}{\v@rscr{\z@}}%
\let\\\acapo

and it can clearly be seen that the definition of \acapo is not finished.

There's nothing that can be done except:

  1. make the problem known to the package maintainer
  2. fix manually the missing brace in teubner.sty

If you're afraid about modifying a typo in a .sty file, then make a local copy of teubner.sty and fix that one.


Upgrade, January 19, 2015

The bug has been fixed in version 4.5a, released 2015/01/18.

1

Not the answer you're looking for? Browse other questions tagged .