Stephan Witt <st.witt <at> gmx.net> writes: Thank you so much. Now it works. The key was to put the path to the script in the lyx path. I had understood from the LyX customization manual that when you put it inside the lyx scripts folder, lyx would find it. But that seems not to be the case.
Also thanks for the script itself. Much more advanced than something I could write.