On Sat, Nov 27, 2010 at 3:31 PM, Kelly Kearney <[email protected]>wrote:

>
> So far, I haven't been able to figure out how to run Mac Lyx from the
> command
> line.  Any pointers?
>
>
>
>
Sure. In OS X, applications appear to the GUI as a single object but are
actually special folders. You can examine their contents in the Finder by
right-clicking on the app and choosing 'Show Package Contents'.

Working from the terminal, and assuming you installed Lyx in the
Applications folder, the path to the executable is:

/Applications/Lyx.app/Contents/MacOS/Lyx

The path to the man pages directory is:

/Applications/LyX.app/Contents/Resources/man/man1

On my machine, rather than adding that path to my MANPATH, I copied the man
pages to /usr/local/share/man/man1, but you have to become root to do that.

Two utilities I find useful when doing this sort of work in OS X:

Bwana allows you to view man pages in your web browser.
http://www.bruji.com/bwana/

Add a button to your Finder toolbar to open a terminal window & change
directory to your current Finder location:
http://maururu.net/2007/enhanced-open-terminal-here-for-leopard/

-- Rich

Reply via email to