Herbert Voss wrote:
>
> Edwin Velds wrote:
>
> >>>>>I'm having a small problem with lyx. I'm using a bibtex generated
> >>>>>bibliography and I'm trying to get it in the Contents. But using
> >>>>>
> >>>>>\addcontentsline{toc}{chapter}{Bibliography}
> >>>>>
> >>>>>doesn't work because putting it before the bibtex label makes it
> >>>>>reference a page before the bibliography and putting it after the label
> >>>>>changes it to the last page of the bibliography. Is there another way to
> >>>>>get it in the contents with the right page number ?
> >>>>>
> >>>>>
> >>>>which textclass?
> >>>>
> >>>>
> >>>Report class, 2-sided with openright.
> >>>
> >>than it's the same like the book class
> >>put the cursor before the above command and
> >>do layout->paragraph->pagebreak before!
> >>
> >
> > After trying I found that this is not right for the openright option. It
> > now gave me the blank page of the previous chapter as number. Is there
> > something like an odd pagebreak instead?
>
> \let\myCDP\cleardoublepage
> \renewcommand\cleardoublepage{%
> \myCDP
> \addcontentsline{toc}{chapter}{Bibliography}
> }
>
> <here insert the bib as usual>
>
Thanks! I had to add braces before the command and after the bib in
order to keep the change from affecting the appendices, but after that
it worked perfectly.
Edwin