On 05/20/2010 07:38 AM, Artimess wrote:
Could someone tell me:
1) Where does Lyx stores the packages in Mac, Linux, and Windows if
they are different?
If by "package" you mean "LaTeX package", then the answer is: LyX
doesn't store LaTeX packages or even have much to do with them. That is
entirely a LaTeX issue, and the answer will therefore depend upon which
TeX distribution you are using and how you have it configured. Plus, TeX
can store packages in lots of locations. E.g., on my system, I have
packages under /usr/share/texmf/, /usr/local/share/texmf/, and
$HOME/texmf/, which is pretty normal.
If on the other hand by "package" you mean "LyX layout file or module",
then the answer is, yes, it is different on different OSs and, to make
it more complex still, you can select your user directory using a
command line option "-userdir". On Linux, though, the user directory
defaults to $HOME/.lyx/. I don't know what it is on Mac or Windows.
2) Should I do anything special to install a package beyond moving it
to the right directory and do a reconfigure?
Please see chapter 5 of the Customization manual.
3) How can I check if a package is available or installed?
If it's a LaTeX package, try Help>TeX Info, or just use the TeX tools
for checking this, e.g., on *nix: kpsewhich mypackage.sty.
4) Are the commands of the installed new package visible to Lyx
front-end and one can select them through menu bar? or should we use
ERT for them?
Unless LyX knows about this package, then its commands will not be
available. You can tell LyX about the commands using a module, for some
things. See e.g. the endnotes.module file that ships with LyX for an
example.
Richard