Re: Export Documents from Command Line

2010-11-03 Thread Venable
On Mon, Nov 1, 2010 at 3:05 PM, Richard Heck rgh...@comcast.net wrote:
 On 11/01/2010 12:53 PM, Jürgen Spitzmüller wrote:

 Tim Wescott wrote:


 I want to be able to write Lyx documents, then convert them to pdf
 format from the command line -- this is for a moderately complex
 website, which I would like to generate using a makefile.

 Is there a way to do this from the command line?  I assume I have to do
 this:

 lyxinsert magic here  myfile.lyx


 juer...@linux-r4p5:~  lyx -help
 Usage: lyx [ command line switches ] [ name.lyx ... ]
 Command line switches (case sensitive):
 [...]
         -e [--export] fmt
                   where fmt is the export format of choice.
                   Look on Tools-Preferences-File formats-Format
                   to get an idea which parameters should be passed.
         -i [--import] fmt file.xxx
                   where fmt is the import format of choice
                   and file.xxx is the file to be imported.
         -f [--force-overwrite] what
                   where what is either `all', `main' or `none',
                   specifying whether all files, main file only, or no
 files,
                   respectively, are to be overwritten during a batch
 export.
                   Anything else is equivalent to `all', but is not
 consumed.
         -version        summarize version and build info
 Check the LyX man page for more details.

 So,

 lyx -e pdf2 myfile.lyx

 exports to PDF via pdflatex.



 And if you're wondering where pdf2 comes from, the answer is that this is
 the identifier LyX uses for that format. Look under ToolsPreferencesFile
 Formats and ...Converters for the various options.

 rh



I would very much like to learn more about running lyx from the command line.

Do these comments apply to Windows?

Are there any help documents with simple examples? I did not see
anything in the User Guide or Extended.

Many thanks in advance.


Re: Export Documents from Command Line

2010-11-03 Thread Richard Heck

On 11/03/2010 03:28 PM, Venable wrote:


I would very much like to learn more about running lyx from the command line.

Do these comments apply to Windows?

   

Yes, though of course you have to use lyx.exe, etc.


Are there any help documents with simple examples? I did not see
anything in the User Guide or Extended.

   

Just lyx.exe -help. Assuming LyX is in your path.

Richard



Re: Export Documents from Command Line

2010-11-03 Thread Venable
On Wed, Nov 3, 2010 at 3:38 PM, Richard Heck rgh...@comcast.net wrote:
 On 11/03/2010 03:28 PM, Venable wrote:

 I would very much like to learn more about running lyx from the command
 line.

 Do these comments apply to Windows?



 Yes, though of course you have to use lyx.exe, etc.

 Are there any help documents with simple examples? I did not see
 anything in the User Guide or Extended.



 Just lyx.exe -help. Assuming LyX is in your path.

 Richard


Richard,

Thanks very much for your guidance. However, I fear I am such a novice
that even this is slightly over my head. For example:


C:\Users\MyNamelyx.exe -help
'lyx.exe' is not recognized as an internal or external command,
operable program or batch file.


... and I'm stuck.

Are there any simple resources on how to get started with the very basics?


Re: Export Documents from Command Line

2010-11-03 Thread Venable
On Mon, Nov 1, 2010 at 3:05 PM, Richard Heck rgh...@comcast.net wrote:
 On 11/01/2010 12:53 PM, Jürgen Spitzmüller wrote:

 Tim Wescott wrote:


 I want to be able to write Lyx documents, then convert them to pdf
 format from the command line -- this is for a moderately complex
 website, which I would like to generate using a makefile.

 Is there a way to do this from the command line?  I assume I have to do
 this:

 lyxinsert magic here  myfile.lyx


 juer...@linux-r4p5:~  lyx -help
 Usage: lyx [ command line switches ] [ name.lyx ... ]
 Command line switches (case sensitive):
 [...]
         -e [--export] fmt
                   where fmt is the export format of choice.
                   Look on Tools-Preferences-File formats-Format
                   to get an idea which parameters should be passed.
         -i [--import] fmt file.xxx
                   where fmt is the import format of choice
                   and file.xxx is the file to be imported.
         -f [--force-overwrite] what
                   where what is either `all', `main' or `none',
                   specifying whether all files, main file only, or no
 files,
                   respectively, are to be overwritten during a batch
 export.
                   Anything else is equivalent to `all', but is not
 consumed.
         -version        summarize version and build info
 Check the LyX man page for more details.

 So,

 lyx -e pdf2 myfile.lyx

 exports to PDF via pdflatex.



 And if you're wondering where pdf2 comes from, the answer is that this is
 the identifier LyX uses for that format. Look under ToolsPreferencesFile
 Formats and ...Converters for the various options.

 rh



I would very much like to learn more about running lyx from the command line.

Do these comments apply to Windows?

Are there any help documents with simple examples? I did not see
anything in the User Guide or Extended.

Many thanks in advance.


Re: Export Documents from Command Line

2010-11-03 Thread Richard Heck

On 11/03/2010 03:28 PM, Venable wrote:


I would very much like to learn more about running lyx from the command line.

Do these comments apply to Windows?

   

Yes, though of course you have to use lyx.exe, etc.


Are there any help documents with simple examples? I did not see
anything in the User Guide or Extended.

   

Just lyx.exe -help. Assuming LyX is in your path.

Richard



Re: Export Documents from Command Line

2010-11-03 Thread Venable
On Wed, Nov 3, 2010 at 3:38 PM, Richard Heck rgh...@comcast.net wrote:
 On 11/03/2010 03:28 PM, Venable wrote:

 I would very much like to learn more about running lyx from the command
 line.

 Do these comments apply to Windows?



 Yes, though of course you have to use lyx.exe, etc.

 Are there any help documents with simple examples? I did not see
 anything in the User Guide or Extended.



 Just lyx.exe -help. Assuming LyX is in your path.

 Richard


Richard,

Thanks very much for your guidance. However, I fear I am such a novice
that even this is slightly over my head. For example:


C:\Users\MyNamelyx.exe -help
'lyx.exe' is not recognized as an internal or external command,
operable program or batch file.


... and I'm stuck.

Are there any simple resources on how to get started with the very basics?


Re: Export Documents from Command Line

2010-11-03 Thread Venable
On Mon, Nov 1, 2010 at 3:05 PM, Richard Heck  wrote:
> On 11/01/2010 12:53 PM, Jürgen Spitzmüller wrote:
>>
>> Tim Wescott wrote:
>>
>>>
>>> I want to be able to write Lyx documents, then convert them to pdf
>>> format from the command line -- this is for a moderately complex
>>> website, which I would like to generate using a makefile.
>>>
>>> Is there a way to do this from the command line?  I assume I have to do
>>> this:
>>>
>>> lyx  myfile.lyx
>>>
>>
>> juer...@linux-r4p5:~>  lyx -help
>> Usage: lyx [ command line switches ] [ name.lyx ... ]
>> Command line switches (case sensitive):
>> [...]
>>         -e [--export] fmt
>>                   where fmt is the export format of choice.
>>                   Look on Tools->Preferences->File formats->Format
>>                   to get an idea which parameters should be passed.
>>         -i [--import] fmt file.xxx
>>                   where fmt is the import format of choice
>>                   and file.xxx is the file to be imported.
>>         -f [--force-overwrite] what
>>                   where what is either `all', `main' or `none',
>>                   specifying whether all files, main file only, or no
>> files,
>>                   respectively, are to be overwritten during a batch
>> export.
>>                   Anything else is equivalent to `all', but is not
>> consumed.
>>         -version        summarize version and build info
>> Check the LyX man page for more details.
>>
>> So,
>>
>> lyx -e pdf2 myfile.lyx
>>
>> exports to PDF via pdflatex.
>>
>>
>
> And if you're wondering where "pdf2" comes from, the answer is that this is
> the identifier LyX uses for that format. Look under Tools>Preferences>File
> Formats and ...>Converters for the various options.
>
> rh
>
>

I would very much like to learn more about running lyx from the command line.

Do these comments apply to Windows?

Are there any help documents with simple examples? I did not see
anything in the User Guide or Extended.

Many thanks in advance.


Re: Export Documents from Command Line

2010-11-03 Thread Richard Heck

On 11/03/2010 03:28 PM, Venable wrote:


I would very much like to learn more about running lyx from the command line.

Do these comments apply to Windows?

   

Yes, though of course you have to use "lyx.exe", etc.


Are there any help documents with simple examples? I did not see
anything in the User Guide or Extended.

   

Just "lyx.exe -help". Assuming LyX is in your path.

Richard



Re: Export Documents from Command Line

2010-11-03 Thread Venable
On Wed, Nov 3, 2010 at 3:38 PM, Richard Heck  wrote:
> On 11/03/2010 03:28 PM, Venable wrote:
>>
>> I would very much like to learn more about running lyx from the command
>> line.
>>
>> Do these comments apply to Windows?
>>
>>
>
> Yes, though of course you have to use "lyx.exe", etc.
>
>> Are there any help documents with simple examples? I did not see
>> anything in the User Guide or Extended.
>>
>>
>
> Just "lyx.exe -help". Assuming LyX is in your path.
>
> Richard
>
>
Richard,

Thanks very much for your guidance. However, I fear I am such a novice
that even this is slightly over my head. For example:


C:\Users\MyName>lyx.exe -help
'lyx.exe' is not recognized as an internal or external command,
operable program or batch file.


... and I'm stuck.

Are there any simple resources on how to get started with the very basics?


Export Documents from Command Line

2010-11-01 Thread Tim Wescott
I want to be able to write Lyx documents, then convert them to pdf 
format from the command line -- this is for a moderately complex 
website, which I would like to generate using a makefile.


Is there a way to do this from the command line?  I assume I have to do 
this:


lyx insert magic here myfile.lyx

If someone knows the magic and is willing to share, I'd be grateful.

--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com




Re: Export Documents from Command Line

2010-11-01 Thread Jürgen Spitzmüller
Tim Wescott wrote:
 I want to be able to write Lyx documents, then convert them to pdf 
 format from the command line -- this is for a moderately complex 
 website, which I would like to generate using a makefile.
 
 Is there a way to do this from the command line?  I assume I have to do 
 this:
 
 lyx insert magic here myfile.lyx

juer...@linux-r4p5:~ lyx -help
Usage: lyx [ command line switches ] [ name.lyx ... ]
Command line switches (case sensitive):
[...]
-e [--export] fmt
  where fmt is the export format of choice.
  Look on Tools-Preferences-File formats-Format
  to get an idea which parameters should be passed.
-i [--import] fmt file.xxx
  where fmt is the import format of choice
  and file.xxx is the file to be imported.
-f [--force-overwrite] what
  where what is either `all', `main' or `none',
  specifying whether all files, main file only, or no files,
  respectively, are to be overwritten during a batch export.
  Anything else is equivalent to `all', but is not consumed.
-versionsummarize version and build info
Check the LyX man page for more details.

So,
lyx -e pdf2 myfile.lyx

exports to PDF via pdflatex.

HTH,
Jürgen


Re: Export Documents from Command Line

2010-11-01 Thread Richard Heck

On 11/01/2010 12:53 PM, Jürgen Spitzmüller wrote:

Tim Wescott wrote:
   

I want to be able to write Lyx documents, then convert them to pdf
format from the command line -- this is for a moderately complex
website, which I would like to generate using a makefile.

Is there a way to do this from the command line?  I assume I have to do
this:

lyxinsert magic here  myfile.lyx
 

juer...@linux-r4p5:~  lyx -help
Usage: lyx [ command line switches ] [ name.lyx ... ]
Command line switches (case sensitive):
[...]
 -e [--export] fmt
   where fmt is the export format of choice.
   Look on Tools-Preferences-File formats-Format
   to get an idea which parameters should be passed.
 -i [--import] fmt file.xxx
   where fmt is the import format of choice
   and file.xxx is the file to be imported.
 -f [--force-overwrite] what
   where what is either `all', `main' or `none',
   specifying whether all files, main file only, or no files,
   respectively, are to be overwritten during a batch export.
   Anything else is equivalent to `all', but is not consumed.
 -versionsummarize version and build info
Check the LyX man page for more details.

So,

lyx -e pdf2 myfile.lyx

exports to PDF via pdflatex.

   
And if you're wondering where pdf2 comes from, the answer is that this 
is the identifier LyX uses for that format. Look under 
ToolsPreferencesFile Formats and ...Converters for the various options.


rh



Export Documents from Command Line

2010-11-01 Thread Tim Wescott
I want to be able to write Lyx documents, then convert them to pdf 
format from the command line -- this is for a moderately complex 
website, which I would like to generate using a makefile.


Is there a way to do this from the command line?  I assume I have to do 
this:


lyx insert magic here myfile.lyx

If someone knows the magic and is willing to share, I'd be grateful.

--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com




Re: Export Documents from Command Line

2010-11-01 Thread Jürgen Spitzmüller
Tim Wescott wrote:
 I want to be able to write Lyx documents, then convert them to pdf 
 format from the command line -- this is for a moderately complex 
 website, which I would like to generate using a makefile.
 
 Is there a way to do this from the command line?  I assume I have to do 
 this:
 
 lyx insert magic here myfile.lyx

juer...@linux-r4p5:~ lyx -help
Usage: lyx [ command line switches ] [ name.lyx ... ]
Command line switches (case sensitive):
[...]
-e [--export] fmt
  where fmt is the export format of choice.
  Look on Tools-Preferences-File formats-Format
  to get an idea which parameters should be passed.
-i [--import] fmt file.xxx
  where fmt is the import format of choice
  and file.xxx is the file to be imported.
-f [--force-overwrite] what
  where what is either `all', `main' or `none',
  specifying whether all files, main file only, or no files,
  respectively, are to be overwritten during a batch export.
  Anything else is equivalent to `all', but is not consumed.
-versionsummarize version and build info
Check the LyX man page for more details.

So,
lyx -e pdf2 myfile.lyx

exports to PDF via pdflatex.

HTH,
Jürgen


Re: Export Documents from Command Line

2010-11-01 Thread Richard Heck

On 11/01/2010 12:53 PM, Jürgen Spitzmüller wrote:

Tim Wescott wrote:
   

I want to be able to write Lyx documents, then convert them to pdf
format from the command line -- this is for a moderately complex
website, which I would like to generate using a makefile.

Is there a way to do this from the command line?  I assume I have to do
this:

lyxinsert magic here  myfile.lyx
 

juer...@linux-r4p5:~  lyx -help
Usage: lyx [ command line switches ] [ name.lyx ... ]
Command line switches (case sensitive):
[...]
 -e [--export] fmt
   where fmt is the export format of choice.
   Look on Tools-Preferences-File formats-Format
   to get an idea which parameters should be passed.
 -i [--import] fmt file.xxx
   where fmt is the import format of choice
   and file.xxx is the file to be imported.
 -f [--force-overwrite] what
   where what is either `all', `main' or `none',
   specifying whether all files, main file only, or no files,
   respectively, are to be overwritten during a batch export.
   Anything else is equivalent to `all', but is not consumed.
 -versionsummarize version and build info
Check the LyX man page for more details.

So,

lyx -e pdf2 myfile.lyx

exports to PDF via pdflatex.

   
And if you're wondering where pdf2 comes from, the answer is that this 
is the identifier LyX uses for that format. Look under 
ToolsPreferencesFile Formats and ...Converters for the various options.


rh



Export Documents from Command Line

2010-11-01 Thread Tim Wescott
I want to be able to write Lyx documents, then convert them to pdf 
format from the command line -- this is for a moderately complex 
website, which I would like to generate using a makefile.


Is there a way to do this from the command line?  I assume I have to do 
this:


lyx  myfile.lyx

If someone knows the magic and is willing to share, I'd be grateful.

--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com




Re: Export Documents from Command Line

2010-11-01 Thread Jürgen Spitzmüller
Tim Wescott wrote:
> I want to be able to write Lyx documents, then convert them to pdf 
> format from the command line -- this is for a moderately complex 
> website, which I would like to generate using a makefile.
> 
> Is there a way to do this from the command line?  I assume I have to do 
> this:
> 
> lyx  myfile.lyx

juer...@linux-r4p5:~> lyx -help
Usage: lyx [ command line switches ] [ name.lyx ... ]
Command line switches (case sensitive):
[...]
-e [--export] fmt
  where fmt is the export format of choice.
  Look on Tools->Preferences->File formats->Format
  to get an idea which parameters should be passed.
-i [--import] fmt file.xxx
  where fmt is the import format of choice
  and file.xxx is the file to be imported.
-f [--force-overwrite] what
  where what is either `all', `main' or `none',
  specifying whether all files, main file only, or no files,
  respectively, are to be overwritten during a batch export.
  Anything else is equivalent to `all', but is not consumed.
-versionsummarize version and build info
Check the LyX man page for more details.

So,
lyx -e pdf2 myfile.lyx

exports to PDF via pdflatex.

HTH,
Jürgen


Re: Export Documents from Command Line

2010-11-01 Thread Richard Heck

On 11/01/2010 12:53 PM, Jürgen Spitzmüller wrote:

Tim Wescott wrote:
   

I want to be able to write Lyx documents, then convert them to pdf
format from the command line -- this is for a moderately complex
website, which I would like to generate using a makefile.

Is there a way to do this from the command line?  I assume I have to do
this:

lyx  myfile.lyx
 

juer...@linux-r4p5:~>  lyx -help
Usage: lyx [ command line switches ] [ name.lyx ... ]
Command line switches (case sensitive):
[...]
 -e [--export] fmt
   where fmt is the export format of choice.
   Look on Tools->Preferences->File formats->Format
   to get an idea which parameters should be passed.
 -i [--import] fmt file.xxx
   where fmt is the import format of choice
   and file.xxx is the file to be imported.
 -f [--force-overwrite] what
   where what is either `all', `main' or `none',
   specifying whether all files, main file only, or no files,
   respectively, are to be overwritten during a batch export.
   Anything else is equivalent to `all', but is not consumed.
 -versionsummarize version and build info
Check the LyX man page for more details.

So,

lyx -e pdf2 myfile.lyx

exports to PDF via pdflatex.

   
And if you're wondering where "pdf2" comes from, the answer is that this 
is the identifier LyX uses for that format. Look under 
Tools>Preferences>File Formats and ...>Converters for the various options.


rh