Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How do you install a module in Lyx? I find this site is not helpful enough: http://wiki.lyx.org/Layouts/Modules

share|improve this question
    
which module are you trying to install? exactly what error or problem do you get when trying to follow the instructions on that link? –  Juan A. Navarro Jan 21 '11 at 8:40
    
I'm trying to install a longtables module. I find LaTeX documents with longtables that compile well in Kile. But after being imported into Lyx they don't work properly. –  denilw Jan 21 '11 at 17:48
    
When I follow the instructions on the link, Lyx appears completely unchanged. –  denilw Jan 21 '11 at 17:49
    
I was trying to follow this website for the Longtable installation but there wasn't enough instruction there: blog.oak-tree.us/index.php/2010/07/13/custom-lyx-modules –  denilw Jan 21 '11 at 18:21

2 Answers 2

up vote 3 down vote accepted

Find the Lyx configuration directory (LCD), which will be .lyx on many installations.

Put your module in the layouts subdirectory of LCD.

Tell Lyx about your module by adding a line to the lyxmodules.lst file in the CFD, which has six strings. I give an example in my answer to the How to create (1) a new Environment for LyX's Environment drop-down menu, (2) a new Text Style question.

share|improve this answer
    
Perfect thanks. I honestly couldn't find that documented anywhere. –  denilw Jan 21 '11 at 18:21

You can find an overview into what goes into installing a module at:

http://blog.oak-tree.us/index.php/2009/11/02/custom-lyx-nih

Here is the takehome, though:

  1. Locate your LyX users directory. You can do this by clicking on Help -> About LyX. (If using a Mac, it is located under the Application menu.) It will usually be listed under the library directory in the About pane.
  2. The user directory will have several folders. Look for one called "layouts" (as noted by the answer above). Copy your module folder into this folder.
  3. Run the "Reconfigure" utility from the "Tools" menu. This will regenerate the lyxmodules.lst file. (In general it is not a good idea to edit this file by hand.)
  4. Restart LyX. The new module will appear under "Modules" in the Document Settings window.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.