diff --git a/.gitignore b/.gitignore index 8e281ca..a48012c 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,5 @@ latexdiff.aux latexdiff.tex latexrevise.aux latexrevise.tex -latexdiff-1.0.5a dist - +latexdiff-?.*.* diff --git a/Makefile b/Makefile index 5151559..eaf5505 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # Makefile for preparing files for distribution -VERSION=1.1.1alpha +VERSION=1.1.1 .PHONY: distribution release test mkdirs clean cleanall cleantest webmanual diff --git a/dist b/dist deleted file mode 120000 index 31c2878..0000000 --- a/dist +++ /dev/null @@ -1 +0,0 @@ -latexdiff-1.1.0 \ No newline at end of file diff --git a/latexdiff b/latexdiff index 3eab614..e850334 100755 --- a/latexdiff +++ b/latexdiff @@ -24,18 +24,18 @@ # # ToDo: ### -### - recursive processing of included files and bibliography with latexdiff-vc ### - add possibility to store configuration options for latexdiff in a file rather than as options ### - use kdiff3 as a merge tool ### - make style that allows (forward and backjumping with hyperref) ### - --flatten option only expands first including command per line if there is more than one # -# Version 1.1.1alpha +# Version 1.1.1 # - patch mhchem: allow ce in equations # - flatten now also expands \input etc. in the preamble (but not \usepackage!) # - Better support for Japanese ( contributed by github user kshramt ) # - prevent duplicated verbatim hashes (patch contributed by github user therussianjig, issue #36) # - disable deleted label commands (fixes issue #31) +# - introduce post-processing to reinstate most deleted environments and all needed item commands (fixes issue #1) # # Version 1.1.0 # - treat diacritics (\",\', etc) as safe commands @@ -138,7 +138,7 @@ my ($algodiffversion)=split(/ /,$Algorithm::Diff::VERSION); my ($versionstring)=< (integer) +C (RegEx) + +C (RegEx) C (RegEx) @@ -3407,19 +3409,17 @@ C (RegEx) C (RegEx) -C (RegEx) +C (RegEx) + +C (String) C (RegEx) C (String) -C (RegEx) - -C (String) - -C (RegEx) +C (integer) -C (RegEx) +C (RegEx) =item B<--show-safecmd> @@ -3693,12 +3693,22 @@ Make no difference between the main text and floats. =over 10 -=item C +=item C -Minimum number of tokens required to form an independent block. This value is -used in the algorithm to detect changes of complete blocks by merging identical text parts of less than C to the preceding added and discarded parts. +If a match to C is found within an inline math environment within a deleted or added block, then the inlined math +is surrounded by C<\mbox{>...C<}>. This is necessary as underlining does not work within inlined array environments. -[ Default: 3 ] +[ Default: C=S > + +=item C + +If a command in a deleted block which is also in the textcmd list matches C then an +additional command C<\addtocounter{>FC<}{-1}>, where F is the matching command, is appended in the diff file such that the numbering in the diff file remains synchronized with the +numbering in the new file. + +[ Default: C=C<(?:footnote|part|section|subsection> ... + +C<|subsubsection|paragraph|subparagraph)> ] =item C @@ -3720,14 +3730,6 @@ Environments whose name matches the regular expression in C are list en [ Default: S >] -=item C - -Within environments whose name matches the regular expression in C -all latexdiff markup is removed (in pathologic cases this might lead to -inconsistent markup but this situation should be rare). - -[ Default: S >] - =item C,C If both \begin and \end for a math environment (environment name matching C or \[ and \]) @@ -3742,22 +3744,20 @@ as C,C but for equation arrays [ Default: C=S >, C=S >] -=item C - -If a match to C is found within an inline math environment within a deleted or added block, then the inlined math -is surrounded by C<\mbox{>...C<}>. This is necessary as underlining does not work within inlined array environments. +=item C -[ Default: C=S > +Minimum number of tokens required to form an independent block. This value is +used in the algorithm to detect changes of complete blocks by merging identical text parts of less than C to the preceding added and discarded parts. -=item C +[ Default: 3 ] -If a command in a deleted block which is also in the textcmd list matches C then an -additional command C<\addtocounter{>FC<}{-1}>, where F is the matching command, is appended in the diff file such that the numbering in the diff file remains synchronized with the -numbering in the new file. +=item C -[ Default: C=C<(?:footnote|part|section|subsection> ... +Within environments whose name matches the regular expression in C +all latexdiff markup is removed (in pathologic cases this might lead to +inconsistent markup but this situation should be rare). -C<|subsubsection|paragraph|subparagraph)> ] +[ Default: S >] =back @@ -3802,7 +3802,7 @@ different numbers of inter-argument spaces are treated as significant. =back Please submit bug reports using the issue tracker of the github repository page I, -or send them to I. Include the serial number of I +or send them to I. Include the version number of I (from comments at the top of the source or use B<--version>). If you come across latex files that are error-free and conform to the specifications set out above, and whose differencing still does not result in error-free @@ -3829,7 +3829,7 @@ I requires the I command to be present. =head1 AUTHOR -Version 1.1.1alpha +Version 1.1.1 Copyright (C) 2004-2015 Frederik Tilmann This program is free software; you can redistribute it and/or modify @@ -3840,9 +3840,6 @@ T. Connors, Sebastian Gouezel and many others. Thanks to the many people who sent in bug reports, feature suggestions, and other feedback. =cut -### scratch Text bits -###(otherwise readibility is reduced because common words such as "the" and "and" which can be found both in the discarded and added block are considered to be identical text parts and thus not marked up, and added and discarded -###text parts are interspersed between these common words). __END__ %%BEGIN SAFE COMMANDS diff --git a/latexdiff-vc b/latexdiff-vc index baacb55..d72f54e 100755 --- a/latexdiff-vc +++ b/latexdiff-vc @@ -27,9 +27,11 @@ # # TODO/IDEAS: - option to call external pre-processing codes # -# version 1.1.1alpha: +# version 1.1.1: # - better detection of RCS system # - undocumented option --debug/--nodebug to override default setting for debug mode (Default: 0)# +# - bug fix: --flatten option combined with --pdf caused confusion of old and new file +# # version 1.1.0: # # - with option --flatten and version control option, checkout the whole tree into a temporary directory @@ -58,7 +60,7 @@ use strict ; use warnings ; my $versionstring=<, -or send them to I. Include the serial number of I +or send them to I. Include the version number of I (option C<--version>). =head1 AUTHOR +Version 1.1.1 Copyright (C) 2005-2015 Frederik Tilmann This program is free software; you can redistribute it and/or modify diff --git a/testsuite/verify b/testsuite/verify index 253474a..d36b1d4 100755 --- a/testsuite/verify +++ b/testsuite/verify @@ -1,5 +1,5 @@ #!/bin/csh -set refversion=1.1.1alpha +set refversion=1.1.1 # for comparison with 0.5: #set options="-V -t UNDERLINE -s SAFE -f FLOATSAFE --disable-citation-markup" set options="-V -t UNDERLINE -s SAFE -f FLOATSAFE "