Possible Duplicate:
How can I avoid compiling twice?

I am shading first page using following code.

\begin{tikzpicture}[remember picture,overlay]
\shade[left color=white,right color=orange!60]
(current page.south) rectangle (current page.north east); 

But I found sometime shading is there on whole page and sometime it is partial (just one strip). I don't know what is reason behind it.How can I fix my problem?

marked as duplicate by Tom Bombadil, percusse, Marco Daniel, clemens, lockstep Sep 2 '12 at 12:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • There is no problem. You need to compile twice when you use remember picture,overlay. The partial result arrives only on the first complation. – Alain Matthes Jul 3 '12 at 7:33
  • Thanks it works but i don't want to compile it 2 times. What changes should i made in my code to avoid compilation 2 times. – manish Jul 3 '12 at 7:36
  • 3
    Impossible, two compilations are necessary with the options remember picture,overlay. – Alain Matthes Jul 3 '12 at 7:38
  • I am C programmer but now generating report. This is first time in my life that i need to compile code 2 times. Thanks – manish Jul 3 '12 at 7:40
  • 1
    @manish: Just wait... This is where the fun begins. :-) There are cases where more than two compiles are required. You can use a make type program like latexmk so you don't have to think about it. – Peter Grill Jul 3 '12 at 7:42

Browse other questions tagged or ask your own question.