Juergen Spitzmueller wrote:
> It's a bug. Several things need to be done. First, you have to add
> ProvidesMakeidx    1

Try the attached layout file

> to the memoir.layout file. Then, the makeindex package is not loaded.
> However, LyX currently does not run the makeindex program in this case.
> This needs to be fixed in the sources.
>
> So you're probably stuck with running latex and makeindex manually untill
> the next release.

Not really. The problem is that makeindex creates an empty *.idx file after 
the first latex run, which will then be filled after the second latex run. 
LyX, however, decides after the first latex run whether makeindex should be 
called. It doesn't run that program if the *.idx file is empty (as is the 
case with memoir).

A workaround to get the index is to view dvi, then change something in the 
file, and then view dvi/ps/pdf again.

HTH,
Jürgen
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass{memoir}
# Memoir textclass definition file
# Author: Jürgen Spitzmüller <[EMAIL PROTECTED]>
# Improvements by: Bennett Helm <[EMAIL PROTECTED]>
# feel free to contribute missing features!


Format 2
Columns            1
Sides              2
SecNumDepth        2
TocDepth           2
DefaultStyle       Standard
PageStyle          Headings
ProvidesMakeidx    1


ClassOptions
        FontSize             9|10|11|12|14|17
        PageStyle            
empty|plain|headings|myheadings|ruled|Ruled|companion
        Other                oldfontcommands
End


Style Standard
        Margin                Static
        LatexType             Paragraph
        LatexName             dummy
        ParIndent             MM
        ParSkip               0.4
        Align                 Block
        AlignPossible         Block, Left, Right, Center
        LabelType             No_Label
End


Input stdlists.inc
Input stdcounters.inc
Input stdfloats.inc
Input stdsections.inc
Input stdstarsections.inc
Input numreport.inc


Style Chapter
        OptionalArgs         2
End


Style Section
        OptionalArgs         2
End


Style Subsection
        OptionalArgs         2
End


Style Subsubsection
        OptionalArgs         2
End


Style Paragraph
        OptionalArgs         2
End


Style Subparagraph
        OptionalArgs         2
End


Style Chapterprecis
        Margin               Static
        LatexType            Command
        LatexName            chapterprecis
        NeedProtect          1
        NextNoIndent         1
        LeftMargin           MM
        LabelSep             xxx
        ParSkip              0.4
        TopSep               0.4
        BottomSep            0
        ParSep               0.4
        Align                Block
        AlignPossible        Block
        Font
          Shape              Italic
          Size               Normal
        EndFont
End


Style Epigraph
        Margin                Right_Address_Box
        LatexType             Command
        LatexName             epigraph
        ParSkip               0.4
        BottomSep             1.5
        ParSep                1.5
        Align                 Left
        AlignPossible         Left
End


Style Poemtitle
        LatexType             Command
        LatexName             poemtitle
        NeedProtect           1
        NextNoIndent          1
        LabelSep              xxx
        ParSkip               0.4
        TopSep                0.4
        ParSep                0.4
        Align                 center
        AlignPossible         center
        OptionalArgs          1
        Font
           Series             Bold
        EndFont
End


Style Poemtitle*
        CopyStyle             Poemtitle
        LatexName             poemtitle*
        OptionalArgs          0
End


Input stdtitle.inc
Input stdstruct.inc


Style Bibliography
        TopSep               4
        LabelString          "Bibliography"
        LabelFont
          Series             Bold
          Size               Huge
        EndFont
End


Input lyxmacros.inc
Input stdlayouts.inc

Style Legend
        LatexType           Command
        LatexName           legend
        NeedProtect         1
        NextNoIndent        1
        ParSkip              0.4
        Align                   Center
        AlignPossible      Center
End

Reply via email to