Am 08.12.2011 um 14:40 schrieb Eric Weir:

> 
> On Dec 7, 2011, at 4:17 PM, Stephan Witt wrote:
> 
>> 
>> Am 07.12.2011 um 20:43 schrieb Guenter Milde:
>> 
>>> When starting programs from the command line (or an terminal emulation), you
>>> can pass them options. The tex2lyx converter can be used as an independent
>>> program and supports a some configuration options if used so.
>>> Try the command
>>> 
>>> tex2lyx --help
>> 
>> That would be like this:
>> $ /Applications/LyX.app/Contents/MacOS/tex2lyx --help
>> Usage: tex2lyx [options] infile.tex [outfile.lyx]
>> Options:
>>      -c textclass       Declare the textclass.
>>      -e encoding        Set the default encoding (latex name).
>>      -f                 Force overwrite of .lyx files.
>>      -help              Print this message and quit.
>>      -n                 translate a noweb (aka literate programming) file.
>>      -roundtrip         re-export created .lyx file infile.lyx.lyx to 
>> infile.lyx.tex.
>>      -s syntaxfile      read additional syntax file.
>>      -sysdir dir        Set system directory to DIR.
>>      -userdir DIR       Set user directory to DIR.
> 
> Thanks, Stephan. I tried that first line as a command. When that didn't work 
> I switch to the MacOS directory and did the tex2lyx command. I get "not 
> found." What'm I doing wrong?

The dollar sign should indicate you're on a command line prompt and you have to 
start entering the command with /Application/... 
I'd guess you get "command not found" when in directory 
/Applications/LyX.app/Contents/MacOS because modern Unix don't have the current 
directory in PATH environment.
You have to type ./tex2lyx then.

Stephan

Reply via email to