Go to page:

Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

Mac /

Environment

Categories: Mac
<< | Page list | >>

About ~/.MacOSX/environment.plist

~/.MacOSX/environment.plist is a file that sets default variables for every application. A sample ~/.MacOSX/environment.plist file can be found here; you may have to <ctrl>-click the link to save this file to your computer. More details on ~/.MacOSX/environment.plist files can be found here.

Note: Any changes to ~/.MacOSX/environment.plist require that you logout and login again for the change to take effect.
Warning! This sample .plist file will affect your bibtex compilation: you'll need to put all .bst and .bib files in the folders specified inside the .plist file. If you don't want this, remove the first two keys in the file.
GUI Language
To change the GUI language, insert the lines
   <key>LANG</key>
   <string>fr</string>
   <key>OUTPUT_CHARSET</key>
   <string>iso8859-1</string>
between the <dict> and </dict> of ~/.MacOSX/environment.plist. Substitute the two-character abbreviation of the language you want for "fr" and the appropriate coded character set for "iso8859-1". (You can find the available languages and codesets by entering locale -a in Terminal.app.)
X-windows
To use Xfig or X-windows previewers like xdvi or gv with LyX/Mac, add
   <key>DISPLAY</key>
   <string>:0.0</string>
between the <dict> and </dict> of ~/.MacOSX/environment.plist.
BibTeX
To enable LyX to find .bib and .bst files automatically, add
   <key>BIBINPUTS</key>
   <string>~/Library/texmf/bibtex/bib::</string>
   <key>BSTINPUTS</key>
   <string>~/Library/texmf/bibtex/bst::</string>
between the <dict> and </dict> of ~/.MacOSX/environment.plist.

Caution: In my case this caused Bibtex to stop working when called by Lyx. It also killed preview generation in BibDesk. It might work if you use .:~/Library/texmf/bibtex/bib::, anything which makes Bibtex search in the working directory also. However, I haven't tested this, I just got rid of these entries in the environment.plist, logged out and back in and everything worked perfectly again.

Texinputs
To enable LyX to find other class and style files automatically, add
   <key>TEXINPUTS</key>
   <string>.:/sw/share/texmf-dist/tex//:yourpath_here//</string>
between the <dict> and </dict> of ~/.MacOSX/environment.plist.

Mac

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2008-10-30 10:09 CET