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

Reply via email to