On Thu, Feb 3, 2011 at 9:20 PM, Richard Heck <[email protected]> wrote:
> On 02/03/2011 01:59 PM, Stig Rognes wrote:
>
>
>
> Thanks Richard, but either I misunderstood your instructions or else it
> didn't work. I put
>
> \let\oldaddcl=\addcontentsline
> \renewcommand\addcontentsline[3]{\oldaddcl{#1}{#2}{\emph{#3}}
>
> in an ERT at the start of the document, and
>
> \let\addcontentsline=\oldaddcl
>
> in an ERT after the Contents, before the first chapter. But in the pdf
> everything went blank, and later: Cannot view file: File does not exist.
> DVI generates empty output.
>
> Instead:
>
> \let\oldaddcl=\addcontentsline
>
> \def\addcontentsline#1#2#3{%
>
> \addtocontents{#1}{\protect\contentsline{#2}{\emph{#3}}{\thepage}}}
>
>
> in the preamble, which is stolen from the LaTeX declaration. I actually
> tested that, and it works.
>
> Richard
>
>
Put it in preamble, but still no luck. This time it did produce a pdf
(despite a loong list of errors) but then *everything* in Contents was in
italics, Acknowledgments and LoF had disappeared etc. Plus the pdf index got
mixed up.
Maybe it's got someting to do with the Memoir class, maybe it's something
else in my preamble, I don't know. Anyway I think I've changed my mind about
the whole thing, think I'll just stick with the standard font.
Stig