On 08/14/2011 05:06 AM, Francesco Menoncin wrote: > Dear LyX users, > > I am using LyX 2.0.0 (on both Windows and Linux). > How can I create my own module and add it to the list in "Document > Settings"? > Please see chapter 5 of the Customization manual. The process is described there. In this case, you just need to wrap the preamble code you want in:
AddToPreamble > \RequirePackage{multicol} > > \renewenvironment{theindex}{ > > \columnseprule 0pt\relax > > \columnsep 35pt\relax > > \chapter*{\indexname} > > \begin{multicols}{2} > > \@mkboth{\MakeUppercase \indexname}{\MakeUppercase \indexname} > > \thispagestyle{plain} \parindent 0pt\relax \parskip 0pt \@plus .3pt\relax > > \let\item\@idxitem} > > {\end{multicols}} > EndPreamble and then add the module declaration code at the top. Oh, and don't forget the format tag, which must be the first non-comment, non-whitespace line. Richard