LaTeX forum ⇒ LyXAutomate Diff Creation

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Posts: 1
Joined: Fri Apr 14, 2017 7:26 pm

Automate Diff Creation

Postby Handy » Fri Apr 14, 2017 11:09 pm

I want to automate the creation of a 'diff' document. Version control system is Subversion.
I tried
  1. lyx -x "command-sequence vc-compare 1 2;" main.lyx

which works as expected and shows a new unsaved file in a new Lyx window. I can save and/or build it.

Then I extended this to
  1. lyx -x "command-sequence vc-compare 1 2; buffer-write-as exported.lyx" main.lyx

However, this stores the original file 'main.lyx' in 'exported.lyx'.

How can I store the new 'diff' file in exported.lyx?

Site Moderator
Posts: 517
Joined: Sat Sep 01, 2012 6:38 am

Postby scottkosty » Mon Apr 17, 2017 5:50 am

I don't use Subversion with LyX. Maybe you could give steps to reproduce a similar issue? Maybe using the compare tool to compare an old.lyx file and a new.lyx file? If I could solve that problem, then it might lead you to a solution to yours.

Return to “LyX”

Who is online

Users browsing this forum: No registered users and 4 guests