On Fri, 2004-05-14 at 15:05, Jose' Matos wrote: > On Friday 14 May 2004 14:48, Ernesto Jardim wrote: > > Hi, > > Ol�, :-) > > > I want to create an empty document without starting the lyx gui, just > > using the command line. Is it possible ? > > Just for curiosity why do you want to do that? :-) >
I have a small script that creates a bunch of dirs and populates them with empty documents that I use when I start a paper or report. Like notes documents, R scripts and so. One of them is "report.lyx". I'm just being lazy :) > The best I have been able to do was: > > rm -f test.lyx && lyx -x "command-sequence buffer-new; buffer-write-as > test.lyx; lyx-quit" > > But it still launches the gui although it closes it without any > interaction. The first rm is necessary or else lyx will complain that we > are overwriting that file, if it exists. > > > Thanks > > I hope it helps, > > > EJ I'll give it a try. Best regards and thanks. EJ
