LyXAutomate Diff Creation

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

Automate Diff Creation

Post by Handy »

I want to automate the creation of a 'diff' document. Version control system is Subversion.
I tried
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
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?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Automate Diff Creation

Post by scottkosty »

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.
Post Reply