From: Morten L. J. <mor...@if...> - 2005-02-18 14:44:05
|
Felix Wiemann wrote: > Morten Lied Johansen wrote: > >>Another problem is that I'd like to have the preface unnumbered, and >>not listed in the ToC, but as far as I can gather, nobody has done the >>work needed to extend the sectnum directive...? > > As David pointed out, that isn't easily possible; I'd use the following > workaround: > > Put the preface into a separate file:: > > ================ > Document Title > ================ > > Preface > ======= > > This is the preface. > > At the top of the file containing the actual contents, put:: > > .. contents:: > > .. sectnum:: > > First chapter > ============= > > Here comes the first chapter... > > Process the two reST files to LaTeX code and merge the two LaTeX > documents together into one. This works like a charm, especially since comments are propagated, so I can do some automated processing in a makefile to clue the two pieces together. Now all I need is an automated way of picking out the part of a file that lies between two lines, so that I can add appendixes! ;) Thanks for the help, both of you. :) -- Morten |