I have came across with a strange problem. My book that used to compile to approximately 20 Mb now compiles to 500 Gb.<div>I am not sure, but it may have happened after updating to MacTeX 2011. I try to compile a minimum working example, but so far I can only show my preamble (I use \include{book_settings.tex, the code is below}. Could the problem be with packages, or has my conversion to OS X Lion changed Quartz settings (I use eps figures with pstricks).</div>
<div><br></div><div>Any hints are greatly appreciated. I am trying to get material ready for tomorrow.</div><div><br></div><div>Best regards,</div><div>  Kari</div><div><br></div><div><div>% Fonts and language</div><div><br>
</div><div>\usepackage[T1]{fontenc}</div><div>\usepackage[finnish, english]{babel}</div><div><br></div><div>\usepackage{color, soul, fourier}</div><div>\usepackage{amsmath}</div><div>\usepackage{amsthm}</div><div>\theoremstyle{definition} \newtheorem{ex}{}[chapter]</div>
<div>\usepackage{array,color}</div><div>\usepackage{booktabs}</div><div>\usepackage{calc}</div><div>%\usepackage{caption}</div><div>%\usepackage{chemstyle}</div><div>\usepackage{cleveref}</div><div>\usepackage{colortbl}</div>
<div>\usepackage{dcolumn}</div><div>\usepackage{graphicx}</div><div>\usepackage{epsfig}</div><div>\usepackage{esvect}</div><div>\usepackage{etex}</div><div>%\usepackage[dvips, bookmarks, colorlinks=true]{hyperref}</div><div>
\usepackage[bookmarks, colorlinks=true]{hyperref}</div><div>\usepackage{mhchem}</div><div>\usepackage{paralist}</div><div>\usepackage{picins}</div><div>\usepackage{shadow}</div><div>\usepackage[free-standing-units=true, unit-optional-argument=true, load-configurations=abbreviations,%</div>
<div>retain-zero-exponent=true, separate-uncertainty=true]{siunitx}</div><div>\usepackage{url}</div><div>\usepackage{wrapfig}</div><div>\usepackage[table]{xcolor}</div><div><br></div><div>% PSTricks packages</div><div><br>
</div><div>\usepackage{pstricks}</div><div>\usepackage{pst-circ}</div><div>\usepackage{pst-coil}</div><div>\usepackage{pst-electricfield}</div><div>\usepackage{pst-eucl}</div><div>\usepackage{pst-plot}</div><div>\usepackage{pstricks-add}</div>
<div>\usepackage{pst-grad}</div><div>\usepackage{pst-3dplot}</div><div>\usepackage{pst-vue3d}</div><div><br></div><div>\definecolor{orange}{cmyk}{0,0.61,0.87,0}</div><div>\pagestyle{empty}</div><div><br></div><div><br></div>
<div>%%% PAGE DIMENSIONS</div><div>% Set up the paper to be as close as possible to both A4 & letter:</div><div>\settrimmedsize{11in}{210mm}{*} % letter = 11in tall; a4 = 210mm wide</div><div>\setlength{\trimtop}{30pt}</div>
<div>\setlength{\trimedge}{\stockwidth}</div><div>\addtolength{\trimedge}{-\paperwidth}</div><div>\settypeblocksize{*}{\lxvchars}{1.8} % we want to the text block to have golden proportionals</div><div> \setheadfoot{20pt}{80pt}</div>
<div>\setulmargins{60pt}{*}{*} % 60pt upper margins</div><div>\setlrmargins{*}{*}{2.4} % left/right margins 2.4</div><div>\setheaderspaces{*}{*}{1.618} %</div><div>\addtolength{\marginparwidth}{1cm}</div><div>\addtolength{\marginparsep}{20pt} </div>
<div>\addtolength{\paperheight}{\baselineskip} </div><div><br></div><div>% or perhaps \checkandfixthelayout[lines]</div><div>%\setlength{\evensidemargin}{\oddsidemargin}%</div><div><br></div><div>%</div><div><br></div><div>
%\setheaderspaces{*}{13pt}{*}</div><div><br></div><div>%\footruleskip{2\normalbaselineskip}</div><div><br></div><div>%\addtolength{\footruleskip}{20pt} </div><div>%\addtolength{\headmargin}{10pt} </div><div><br></div><div>
% This is from memman.pdf</div><div><br></div><div>%%% \maketitle CUSTOMISATION</div><div>% For more than trivial changes, you may as well do it yourself in a titlepage environment</div><div>\pretitle{\begin{center}\sffamily\huge\MakeUppercase}</div>
<div>\posttitle{\par\end{center}\vskip 0.5em}</div><div><br></div><div>%%% ToC APPEARANCE</div><div>\maxtocdepth{subsection} % include subsections</div><div>\renewcommand{\cftchapterpagefont}{}</div><div>\renewcommand{\cftchapterfont}{}     % no bold!</div>
<div><br></div><div>%%% HEADERS & FOOTERS</div><div>\pagestyle{companion} % try also: empty , plain , headings , ruled , Ruled , companion</div><div><br></div><div>%%% CHAPTERS</div><div>%\chapterstyle{veelo} % try also: default , section , hangnum , companion , article, demo</div>
<div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>%%% SECTIONS</div><div>\hangsecnum % hang the section numbers into the margin to match \chapterstyle{hangnum}</div><div>\maxsecnumdepth{subsection} % number subsections</div>
<div><br></div><div><br></div><div><br></div><div>\newcommand*{\comma}{,} </div><div>%% END Memoir customise</div><div><br></div><div>%\checkandfixthelayout</div><div><br></div><div>%% SI-units</div><div>\def\scientificnotation#1e#2\end{\ensuremath{{#1}\times 10^{#2}}}</div>
<div> \newcommand{\sci}[1]{{\scientificnotation #1\end}}</div><div>\newcommand{\joenit}[1]{\begingroup\mathcode`\.="8000 \ensuremath{#1}\endgroup}</div><div><br></div><div>    \newcommand{\pkgname}[1]{\texttt{#1}}</div>
<div>    \newcommand{\opt}[1]{\textsf{#1}}</div><div><br></div><div>    \newenvironment{labeling}[1]</div><div>     {\list{}{\settowidth{\labelwidth}{\textbf{#1}}</div><div>     \leftmargin\labelwidth\advance\leftmargin\labelsep</div>
<div>     \def\makelabel##1{\textbf{##1}\hfil}}}{\endlist}</div><div><br></div><div>    \newcommand{\Fe}{\textit{For example:\ }}</div><div>    \newcommand{\fe}{\textit{for example:\ }}</div><div>    \newcommand{\dimn}[1]{\ensuremath{\mathsf{#1}}}</div>
<div><br></div><div>    \def\digitsep{\,}</div><div>    \def\onedigit#1{#1}</div><div>    \def\twodigit#1#2{#1#2}</div><div>    \def\threedigit#1#2#3{#1#2#3}</div><div>    \def\fourdigit#1#2#3#4{#1\digitsep#2#3#4}</div><div>
    \def\fivedigit#1#2#3#4#5{#1#2\digitsep#3#4#5}</div><div>    \def\sixdigit#1#2#3#4#5#6{#1#2#3\digitsep#4#5#6}</div><div>    \def\sevendigit#1#2#3#4#5#6#7{#1\digitsep#2#3#4\digitsep#5#6#7}</div><div>    \def\eightdigit#1#2#3#4#5#6#7#8{#1#2\digitsep#3#4#5\digitsep#6#7#8}</div>
<div>    \def\ninedigit#1#2#3#4#5#6#7#8#9{#1#2#3\digitsep#4#5#6\digitsep#7#8#9}</div><div>    \def\ifourdigit#1#2#3#4{#1#2#3\digitsep#4}</div><div>    \def\ifivedigit#1#2#3#4#5{#1#2#3\digitsep#4#5}</div><div>    \def\isixdigit#1#2#3#4#5#6{#1#2#3\digitsep#4#5#6}</div>
<div>    \def\isevendigit#1#2#3#4#5#6#7{#1#2#3\digitsep#4#5#6\digitsep#7}</div><div>    \def\ieightdigit#1#2#3#4#5#6#7#8{#1#2#3\digitsep#4#5#6\digitsep#7#8}</div><div>    \def\ininedigit#1#2#3#4#5#6#7#8#9{#1#2#3\digitsep#4#5#6\digitsep#7#8#9}</div>
<div><br></div><div>    \def\getlength#1{\ifx#1\end \let\next=\relax</div><div>      \else\advance\count0 by 1 \let\next=\getlength\fi \next}</div><div><br></div><div>    \def\length#1{\count0=0 \getlength#1\end}</div><div>
<br></div><div>%% SI-units</div><div><br></div><div>\newcommand{\ly}{\textrm{ ly}}</div><div><br></div><div>%% Begin Error bars</div><div><br></div><div>\makeatletter</div><div>\SpecialCoor</div><div>\def\errorLine{\@ifnextchar[{\pst@errorLine}{\pst@errorLine[]}}</div>
<div>\def\pst@errorLine[#1](#2)#3#4{{%</div><div>     \ifx#1\empty\else\psset{#1}\fi</div><div>     \pst@getcoor{#2}\pst@tempA</div><div>     \def\@errorMin{#3}</div><div>     \def\@errorMax{#4}</div><div>     \psline[linewidth=0.5pt]{-|}(#2)(!%</div>
<div>         \pst@tempA \pst@number\psyunit div /yDot exch def</div><div>         \pst@number\psxunit div \@errorMin\space add yDot %</div><div>     )</div><div>     \psline[linewidth=0.5pt]{-|}(#2)(!%</div><div>         \pst@tempA \pst@number\psyunit div /yDot exch def</div>
<div>         \pst@number\psxunit div \@errorMin\space sub yDot %</div><div>     )</div><div>     \psline[linewidth=0.5pt]{-|}(#2)(!%</div><div>         \pst@tempA \pst@number\psyunit div \@errorMax\space add exch</div><div>
         \pst@number\psxunit div exch %</div><div>     )</div><div>     \psline[linewidth=0.5pt]{-|}(#2)(!%</div><div>         \pst@tempA \pst@number\psyunit div \@errorMax\space sub exch</div><div>         \pst@number\psxunit div exch %</div>
<div>     )</div><div>}}</div><div>%</div><div>\def\GetCoordinates#1{\expandafter\GetCoordinates@i#1}</div><div>\def\GetCoordinates@i #1{\GetCoordinates@ii#1}</div><div>\def\GetCoordinates@ii#1 #2 #3 #4 #5 #6 #7 #8 {%</div>
<div>     \DoCoordinate{#2}{#4}%</div><div>     \errorLine[linecolor=black, linewidth=2pt](#2,#4){#6}{#8}% <<<<<</div><div>     \@ifnextchar D{\GetCoordinates@ii}{}%</div><div>}</div><div>\makeatother</div>
<div><br></div><div>%% END Error Bars</div><div><br></div><div>%%BEGIN Manometre</div><div><br></div><div>\SpecialCoor</div><div>\input random</div><div>\newcommand\manometre{%</div><div>  \pscircle[doubleline=true,fillstyle=solid](0,0){1}</div>
<div>  \psarc(0,0){0.65}{-60}{240}</div><div>  \multido{\i=-60+30}{11}{\psline(0.65;\i)(0.45;\i)}</div><div>  \psline[arrowscale=2,linewidth=2\pslinewidth]{->}(0.5;-70)(0.65;110)</div><div>  \pscircle[fillstyle=solid]{0.1}%</div>
<div>}</div><div>% idea by Denis Girou and Manuel Luque</div><div>\newlength\Xd</div><div>\newlength\Yd</div><div>\newcommand\RandomMolecule[1]{%</div><div> \multido{\i=1+1}{#1}{%</div><div>   \setrandim\Xd{-2pt}{1pt}%</div>
<div>   \setrandim\Yd{-1pt}{1pt}%</div><div>   \pscircle*[linecolor=blue](\pointless\Xd,\pointless\Yd){1pt}}%</div><div>}</div><div><br></div><div>%%% END Manometre</div><div><br></div><div><br></div><div>\newcommand{\SB}[1]{\psshadowbox[linecolor=yellow]{#1}}</div>
<div>\flushbottom</div><div><br></div><div>\newcounter{esi}</div><div><br></div><div>\newcommand{\esa}[1]{%</div><div>  \evali </div><div>  { \blue \noindent \rule{\textwidth}{2pt}} \\</div><div>  \textbf{Example \theesi. #1.}</div>
<div>  } % Esimerkin alku</div><div><br></div><div>\newcommand{\esl}{%</div><div>{\blue \noindent \rule{\textwidth}{2pt}} \\</div><div>\evali \addtocounter{esi}{1}}       % Esimerkin loppu</div><div><br></div><div>\newcommand{\evali}{\vskip 15pt} %V‚Ä∞li, jolla erotetaan esimerkit ja m‚Ä∞‚Ä∞ritelm‚Ä∞t leip‚Ä∞tekstist‚Ä∞.</div>
<div>\newcommand{\ka}{\evali\hrule}</div><div><br></div><div>\def\vektori(#1)(#2)(#3)(#4){%</div><div> \pcline[linewidth=2pt, arrowsize=.3,arrows=->,linecolor=blue](#1)(#2)%</div><div> \naput[npos=.5,labelsep=3pt]{$\vv{#3_{\textrm{#4}}}$}</div>
<div>}</div><div><br></div><div>%_{\textrm_{#4}}</div><div>%_{\textrm{#4}}</div><div>%% BEGIN Quantities</div><div>\newcommand{\net}{\ensuremath{\Sigma{\mathbf{\vec{F}}}} }     % kokonaisvoima</div><div>\newcommand{\gd}{\ensuremath{g=\SI{9.81}{\metre\per\second\squared} }} % putoamiskiihtyvyys</div>
<div>\newcommand{\g}{\ensuremath{\SI{9.81}{\metre\per\second\squared}}} % putoamiskiihtyvyys</div><div>\newcommand{\NII}{\ensuremath{\Sigma{\mathbf{\vec{F}}}=m\vec{a}} }     % NII</div><div>\newcommand{\ekin}{\ensuremath{E_{\mbox{kin}}=\frac{1}{2}mv^2}}  % liike-energia</div>
<div>\newcommand{\epot}{\ensuremath{E_{\mbox{pot}}=mgh}}  % potentiaali-energia</div><div><br></div><div>%% END Quantities</div><div><br></div><div>\definecolor{ColorA}{hsb}{0.7, 0.1, 0.8}</div><div>\definecolor{ColorB}{hsb}{0.7, 0.9, 0.8}</div>
<div><br></div><div>%\captiontitlefont{\sffamily} %\itshape</div><div><br></div><div>\addtolength\textheight{3\baselineskip}</div><div>%\addtolength\textwidth{10mm}</div><div><br></div><div>% Begin layout</div><div><br></div>
<div>%\newenvironment{definition}[2]{%</div><div>%{\evali</div><div>%\noindent\hskip-9pt </div><div>%\psframebox[framesep=6pt, linewidth=3pt, linecolor=cyan]{\parbox[c][\height][s]{\textwidth}{%</div><div>% #1}</div><div>
%}</div><div>%\evali</div><div>%}</div><div>%}</div><div><br></div><div>\newcommand{\definition}[2]{%</div><div>  \evali</div><div>  \noindent\hskip-9pt </div><div>  \psframebox[framesep=6pt, linewidth=3pt, linecolor=cyan]{\parbox[c][\height][s]{\textwidth}</div>
<div>  {{\blue #1}  </div><div>    </div><div>    #2</div><div>  }}</div><div>  \evali</div><div>}</div><div><br></div><div>\definecolor{jullikka}{rgb}{.4,.4,.4} </div><div><br></div><div>\newcommand{\cdefinition}[2]{%</div>
<div>  \evali</div><div>  \noindent\hskip-9pt </div><div>  \psframebox[framesep=6pt, linewidth=3pt, linecolor=jullikka]{\parbox[c][\height][s]{\textwidth}</div><div>  {{\blue #1}  </div><div>    </div><div>    #2</div><div>
  }}</div><div>  \evali</div><div>}</div><div><br></div><div>\definecolor{punainen}{rgb}{1,0.2,0}</div><div><br></div><div>\newcommand{\note}[1]{%</div><div>  \evali</div><div> \noindent\hskip-9pt %\\ </div><div>  \psframebox[framesep=6pt, linewidth=2pt, linecolor=punainen]{\parbox[c][\height][s]{\textwidth}</div>
<div>  {{\red Note!}  </div><div>    </div><div>     #1</div><div>  }}</div><div>  \evali</div><div>}</div><div><br></div><div>% End layout </div><div><br></div><div>\definecolor{kellukka}{rgb}{.4,.98,0.5} </div><div><br>
</div><div>%0,.99,.3 vahvahko vihrea</div><div><br></div><div>\newcommand{\edefinition}[4]{</div><div>  \definition{#1}{#2 %\vskip10pt</div><div>     \begin{equation}</div><div>       \psframebox[fillstyle=solid, fillcolor=kellukka, framesep=15 pt]{%</div>
<div>   <span class="Apple-tab-span" style="white-space:pre"> </span>    <span class="Apple-tab-span" style="white-space:pre">      </span>  #3} </div><div>     \end{equation}</div><div>     \vskip10pt</div><div>     \noindent #4.</div>
<div>    }</div><div> \evali</div><div>}</div><div><br></div><div>\definecolor{kellukka}{rgb}{.4,.98,0.5} </div><div><br></div><div>\newcommand{\cedefinition}[4]{</div><div>  \cdefinition{#1}{#2 %\vskip10pt</div><div>     \begin{equation}</div>
<div>       \psframebox[fillstyle=solid, fillcolor=kellukka, framesep=15 pt]{%</div><div>   <span class="Apple-tab-span" style="white-space:pre">     </span>    <span class="Apple-tab-span" style="white-space:pre">      </span>  #3} </div>
<div>     \end{equation}</div><div>     \vskip10pt</div><div>     \noindent #4</div><div>    }</div><div> \evali</div><div>}</div><div><br></div><div>% End layout </div><div><br></div><div><br></div><div>\author{Kari}</div>
<div><br></div><div>\newcounter{nro}</div><div><br></div><div>\makeatletter </div><div>\ifdraftdoc </div><div>\newlength{\draftnotewidth} </div><div>\newlength{\draftnotesignwidth} </div><div>\newcommand{\draftnote}[1]{\@bsphack% </div>
<div>{%% do not interfere with settings for other marginal notes </div><div>\strictpagecheck% </div><div>\checkoddpage% </div><div>\setlength{\draftnotewidth}{\foremargin}% </div><div>\addtolength{\draftnotewidth}{\trimedge}% </div>
<div>\addtolength{\draftnotewidth}{-3\marginparsep}% </div><div>\ifoddpage </div><div>\setlength{\marginparwidth}{\draftnotewidth}% </div><div>\marginpar{\flushleft\textbf{\textit{\HUGE !\ }}\small #1}% </div><div>\else </div>
<div>\settowidth{\draftnotesignwidth}{\textbf{\textit{\HUGE\ !}}}% </div><div>\addtolength{\draftnotewidth}{-\draftnotesignwidth}% </div><div>\marginpar{\raggedleft\makebox[0pt][r]{%% hack around </div><div>\parbox[t]{\draftnotewidth}{%%%%%%%%% funny behaviour </div>
<div>\raggedleft\small\hspace{0pt}#1% </div><div>}}\textbf{\textit{\HUGE\ !}}% </div><div>}% </div><div>\fi </div><div>}\@esphack} </div><div>\else </div><div>\newcommand{\draftnote}[1]{\@bsphack\@esphack} </div><div>\fi </div>
<div>\makeatother </div><div><br></div><div>%Colors</div><div><br></div><div>\definecolor{nicered}{rgb}{.647,.129,.149} </div><div>\definecolor{tableShade}{HTML}{F1F5FA}   %iTunes</div><div>\definecolor{tableShade2}{HTML}{ECF3FE} %Finder</div>
<div><br></div><div><br></div><div>\makeatletter </div><div>\newlength\dlf@normtxtw </div><div>\setlength\dlf@normtxtw{\textwidth} </div><div>\def\myhelvetfont{\def\sfdefault{mdput}} </div><div>\newsavebox{\feline@chapter} </div>
<div>\newcommand\feline@chapter@marker[1][4cm]{%</div><div>\sbox\feline@chapter{% </div><div>\resizebox{!}{#1}{\fboxsep=1pt%</div><div>\colorbox{nicered}{\color{white}\bfseries\sffamily\thechapter}%</div><div>}}%</div><div>
\rotatebox{90}{% </div><div>\resizebox{%</div><div>\heightof{\usebox{\feline@chapter}}+\depthof{\usebox{\feline@chapter}}}%</div><div> {!}{\scshape\so\@chapapp}}\quad%</div><div>\raisebox{\depthof{\usebox{\feline@chapter}}}{\usebox{\feline@chapter}}%</div>
<div>} \newcommand\feline@chm[1][4cm]{%</div><div>\sbox\feline@chapter{\feline@chapter@marker[#1]}%</div><div>  \makebox[0pt][l]{% aka \rlap</div><div>\makebox[1cm][r]{\usebox\feline@chapter}%</div><div>}} \makechapterstyle{daleif1}{</div>
<div>\renewcommand\chapnamefont{\normalfont\Large\scshape\raggedleft\so} </div><div>  \renewcommand\chaptitlefont{\normalfont\huge\bfseries\scshape\color{nicered}}</div><div>   \renewcommand\chapternamenum{}</div><div>    \renewcommand\printchaptername{} </div>
<div>    \renewcommand\printchapternum{\null\hfill\feline@chm[2.5cm]\par}</div><div>     \renewcommand\afterchapternum{\par\vskip\midchapskip}</div><div>      \renewcommand\printchaptertitle[1]{\chaptitlefont\raggedleft ##1\par}</div>
<div>} \makeatother \chapterstyle{daleif1}</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div><div><br></div>-- <br>**************************************************************<br>Kari Eloranta<br>
Ketunpolku 1<br>40400 JYVÄSKYLÄ FINLAND<br>Tel: +358 40 586 7654<br>
</div>