How do you install a module in Lyx? I find this site is not helpful enough: http://wiki.lyx.org/Layouts/Modules
Asked
Active
Viewed 1.0k times
7
-
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 08: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: http://blog.oak-tree.us/index.php/2010/07/13/custom-lyx-modules – denilw Jan 21 '11 at 18:21
2 Answers
7
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:
- 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.
- 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.
- Run the "Reconfigure" utility from the "Tools" menu. This will regenerate the
lyxmodules.lstfile. (In general it is not a good idea to edit this file by hand.) - 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
layoutsfolder in thelyxmodules.lstfile. – georgebrindeiro Apr 20 '17 at 21:26
6
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.
Charles Stewart
- 21,014
- 5
- 65
- 121
-
-
On some :-) installations,
layoutswill beAppData\Local\Programs\LyX [version]\Resources\layouts. But I believe this file can be created/updated from Lyx using the document properties. See Can I change options of packages loaded by a Lyx module? – mins Mar 12 '23 at 11:10