On Wed, Jul 29, 2015 at 12:02 AM, Victor Porton <por...@narod.ru> wrote: > I've written a Python script which removes duplicate labels from .lyx files. > I suspect that this might fit perfectly with the pLyX framework: http://wiki.lyx.org/Examples/PLyXSystem
May be worth contributing it there. Regards, Liviu > Maybe it may be useful for other users. > > So I attach my script (together with pyparsing.py library) to this email. > > Please add info about my script to Lyx.org site. (I know no password to > upload the files and thus cannot do it myself without your help.) > > From my script: > > # This script receives a list of *.lyx filenames in command line. > # In each .lyx file it searches for labels consecutively following one after > another. > # Then it removes all but the first label and in all supplied .lyx files > corrects > # the references to refer to this label. > # It's useful to remove duplicate labels. > > # Note that this script works with patched pyparsing.py (added > addCondition() method). > # See last SVN for pyparsing or the bundled pyparsing.py file. > > -- > Victor Porton - http://portonvictor.org -- Do you think you know what math is? http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02 Or what it means to be intelligent? http://www.ideasroadshow.com/issues/john-duncan-2013-08-30 Think again: http://www.ideasroadshow.com/library