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

  • which module are you trying to install? exactly what error or problem do you get when trying to follow the instructions on that link? Jan 21, 2011 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, 2011 at 17:48
  • When I follow the instructions on the link, Lyx appears completely unchanged.
    – denilw
    Jan 21, 2011 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, 2011 at 18:21

2 Answers 2


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.


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.
  • This seems to be the best way to go, but my experience is that step 3 did not include the module I added to the layouts folder in the lyxmodules.lst file. Apr 20, 2017 at 21:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .