A new script for processing LyX files - removes duplicate labels
Victor Porton <porton <at> narod.ru>
2015-07-28 22:02:55 GMT
I've written a Python script which removes duplicate labels from .lyx files.
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