Closed friendly closed 8 years ago
I can't figure out what is the problem. Although, an easy way to fix it would be to compile two different pdfs with just the colors of part 1 and 2 and then substitute these two pages in the editor's pdf with Adobe Acrobat. This is not an elegant solution, but that will work.
No -- too much of a kludge. I think what happens is that the part colors change before the last page of the chapter at the end of a part is produced.
@sciencegraph : Can you test if something like \clearpage
just before part{}
will cure this?
Yes, I'm testing different solutions.
The problem disappears if the \part[] is set before its colors definition. just need to switch the order.
Great! I'll test this out tomorrow AM.
What does that do to the Part page? It seems to me that it will be in the previous part color.
The problem arises when a new part starts, so by setting the color definition after the part declaration every thing works. Just need to switch the order in part II and part III like this:
\addtocontents{toc}{\protect\pagebreak}% Avoid bad pagebreak here \part[Exploratory and Hypothesis-Testing Methods]% {Exploratory and Hypothesis-Testing Methods[4ex] %\includegraphics[width=\textwidth,trim=80 50 80 50]{ch04/fig/berk-fourfold4-1} \includegraphics[width=\textwidth]{front/fig/partmap2}% }
\colorlet{sectcol}{col2!70!black} % section/subsection titles \colorlet{partcol0}{col2!80} \colorlet{partcol1}{col2!50} \colorlet{partcol2}{col2!20}
Ah, I see now. This works!
A comment from Michele on the
book-11-03-15.pdf
:@sciencegraph : is there an easy fix for this in
book.Rnw
?