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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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