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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 4 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:


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


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.