Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 105004

Summary: latex2html--verbatimfiles.perl: command verbatimlisting doubles linenumbers
Product: Gentoo Linux Reporter: Michael Reithinger <mreithinger>
Component: Current packagesAssignee: TeX project <tex>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Reithinger 2005-09-06 04:28:41 UTC
the line 88 of verbatimfiles.perl has to be changed from   
   s/(^|\n)/$1.sprintf("%4d ",++$counter)/ge;  
to  
   s/^/$1.sprintf("%4d ",++$counter)/ge; 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-06 04:37:56 UTC
Having lost my crystal ball, I have really no clue what ebuild are you talking
about.
Comment 2 Michael Reithinger 2005-09-06 11:54:11 UTC
You can find the bug in all latex2html versions. 
Comment 3 Alexis Ballier gentoo-dev 2008-10-31 21:20:52 UTC
this doesn't double the line numbers here:
foo.tex:
\documentclass{article}
\usepackage{verbatimfiles}
\begin{document}
\verbatimlisting{foo}
\end{document}

and produces something like:

   1 \documentclass{article}
   2 \usepackage{verbatimfiles}
   3 \begin{document}
   4 \verbatimlisting{foo}
   5 \end{document}


please reopen and provide a suitable way to reproduce the problem.