Bug#550288: custom verbatim environment problems despite PICTUREENV

martin f krafft madduck at debian.org
Thu Oct 8 20:40:05 UTC 2009


Package: latexdiff
Version: 0.5-2
Severity: normal

With the attached files, it seems that markup is being added inside
a custom verbatim environment causes troubles of all kinds, despite
my telling PICTUREENV to ignore the contents of the environment.

piper:/tmp% latexdiff --config 'PICTUREENV=(?:myverb)[\w\d*@]*' test1.tex test2.tex


WARNING: Inconsistency in length of input string and parsed string:
     This often indicates faulty or non-standard latex code.
     In many cases you can ignore this and the following warning messages.
 Note that character numbers in the following are counted beginning after \begin{document} and are only approximate.DEBUG Original length 124  Parsed length 118
DEBUG Input string:  |A test
\PAR
\begin{myverb}
# a comment
an email at address
and something with specials: $ ! #!
\end{myverb}
\PAR
end
\PAR
 STOP|
DEBUG Token parsing: |A +test
+\PAR
+\begin{myverb}
+a +comment
+an +email+address
+and +something +with +specials+: +! +!
+\end{myverb}
+\PAR
+end
+\PAR
 +STOP|

A test \PAR \begin{myverb} # a comment an email at address an
                              ^^^^
Missing characters near word 4 character index: 27-31 Length: 2 Match: |a | (expected match marked above).

n{myverb} # a comment an email at address and something with specials: $
                              ^^^^^^^^^
Missing characters near word 9 character index: 47-56 Length: 8 Match: |address
| (expected match marked above).

 and something with specials: $ ! #! \end{myverb} \PAR end \PAR
                              ^^^^
Missing characters near word 16 character index: 85-89 Length: 2 Match: |! | (expected match marked above).

 something with specials: $ ! #! \end{myverb} \PAR end \PAR  ST
                              ^^^
Missing characters near word 18 character index: 89-92 Length: 2 Match: |!
| (expected match marked above).

\documentclass{article}

\usepackage{fancyvrb}

\DefineVerbatimEnvironment{myverb}{Verbatim}{}
%DIF PREAMBLE EXTENSION ADDED BY LATEXDIFF
%DIF UNDERLINE PREAMBLE %DIF PREAMBLE
\RequirePackage[normalem]{ulem} %DIF PREAMBLE
\RequirePackage{color}\definecolor{RED}{rgb}{1,0,0}\definecolor{BLUE}{rgb}{0,0,1} %DIF PREAMBLE
\providecommand{\DIFadd}[1]{{\protect\color{blue}\uwave{#1}}} %DIF PREAMBLE
\providecommand{\DIFdel}[1]{{\protect\color{red}\sout{#1}}}                      %DIF PREAMBLE
%DIF SAFE PREAMBLE %DIF PREAMBLE
\providecommand{\DIFaddbegin}{} %DIF PREAMBLE
\providecommand{\DIFaddend}{} %DIF PREAMBLE
\providecommand{\DIFdelbegin}{} %DIF PREAMBLE
\providecommand{\DIFdelend}{} %DIF PREAMBLE
%DIF FLOATSAFE PREAMBLE %DIF PREAMBLE
\providecommand{\DIFaddFL}[1]{\DIFadd{#1}} %DIF PREAMBLE
\providecommand{\DIFdelFL}[1]{\DIFdel{#1}} %DIF PREAMBLE
\providecommand{\DIFaddbeginFL}{} %DIF PREAMBLE
\providecommand{\DIFaddendFL}{} %DIF PREAMBLE
\providecommand{\DIFdelbeginFL}{} %DIF PREAMBLE
\providecommand{\DIFdelendFL}{} %DIF PREAMBLE
%DIF END PREAMBLE EXTENSION ADDED BY LATEXDIFF

\begin{document}

A \DIFaddbegin \DIFadd{new version of the }\DIFaddend test

\begin{myverb}
# a new comment
an email at address and @nother
and something with specials: $ ! #!
\end{myverb}

\DIFaddbegin \DIFadd{and again, the }\DIFaddend end

\end{document}


\documentclass{article}
[preamble]

\begin{document}

A \DIFaddbegin \DIFadd{new version of the }\DIFaddend test

\DIFdelbegin %DIFDELCMD < \begin{verbatim}%DIFDELCMD <
%DIFDELCMD < # a comment
%DIFDELCMD < an email at address
%DIFDELCMD < and something with specials: $ ! #!
%DIFDELCMD < \end{verbatim}
%DIFDELCMD < %%%
\DIFdelend \DIFaddbegin \begin{verbatim}
# a new comment
an email at address and @nother
and something with specials: $ ! #!
\end{verbatim}
\DIFaddend

\DIFaddbegin \DIFadd{and again, the }\DIFaddend end

\end{document}

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-rc6-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages latexdiff depends on:
ii  perl                          5.10.1-5   Larry Wall's Practical Extraction

Versions of packages latexdiff recommends:
ii  texlive-latex-base         2007.dfsg.2-4 TeX Live: Basic LaTeX packages

Versions of packages latexdiff suggests:
ii  cvs                         1:1.12.13-12 Concurrent Versions System
ii  subversion                  1.6.5dfsg-1  Advanced version control system

-- debconf-show failed


-- 
 .''`.   martin f. krafft <madduck at d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test1.tex
Type: text/x-tex
Size: 236 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20091008/d89719a6/attachment.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.tex
Type: text/x-tex
Size: 286 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20091008/d89719a6/attachment-0001.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20091008/d89719a6/attachment.pgp>


More information about the pkg-perl-maintainers mailing list