[pstricks] urgent help needed

Kari Eloranta kari.eloranta at gmail.com
Tue Nov 8 16:46:36 CET 2011


I have came across with a strange problem. My book that used to compile to
approximately 20 Mb now compiles to 500 Gb.
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).

Any hints are greatly appreciated. I am trying to get material ready for
tomorrow.

Best regards,
  Kari

% Fonts and language

\usepackage[T1]{fontenc}
\usepackage[finnish, english]{babel}

\usepackage{color, soul, fourier}
\usepackage{amsmath}
\usepackage{amsthm}
\theoremstyle{definition} \newtheorem{ex}{}[chapter]
\usepackage{array,color}
\usepackage{booktabs}
\usepackage{calc}
%\usepackage{caption}
%\usepackage{chemstyle}
\usepackage{cleveref}
\usepackage{colortbl}
\usepackage{dcolumn}
\usepackage{graphicx}
\usepackage{epsfig}
\usepackage{esvect}
\usepackage{etex}
%\usepackage[dvips, bookmarks, colorlinks=true]{hyperref}
\usepackage[bookmarks, colorlinks=true]{hyperref}
\usepackage{mhchem}
\usepackage{paralist}
\usepackage{picins}
\usepackage{shadow}
\usepackage[free-standing-units=true, unit-optional-argument=true,
load-configurations=abbreviations,%
retain-zero-exponent=true, separate-uncertainty=true]{siunitx}
\usepackage{url}
\usepackage{wrapfig}
\usepackage[table]{xcolor}

% PSTricks packages

\usepackage{pstricks}
\usepackage{pst-circ}
\usepackage{pst-coil}
\usepackage{pst-electricfield}
\usepackage{pst-eucl}
\usepackage{pst-plot}
\usepackage{pstricks-add}
\usepackage{pst-grad}
\usepackage{pst-3dplot}
\usepackage{pst-vue3d}

\definecolor{orange}{cmyk}{0,0.61,0.87,0}
\pagestyle{empty}


%%% PAGE DIMENSIONS
% Set up the paper to be as close as possible to both A4 & letter:
\settrimmedsize{11in}{210mm}{*} % letter = 11in tall; a4 = 210mm wide
\setlength{\trimtop}{30pt}
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}
\settypeblocksize{*}{\lxvchars}{1.8} % we want to the text block to have
golden proportionals
 \setheadfoot{20pt}{80pt}
\setulmargins{60pt}{*}{*} % 60pt upper margins
\setlrmargins{*}{*}{2.4} % left/right margins 2.4
\setheaderspaces{*}{*}{1.618} %
\addtolength{\marginparwidth}{1cm}
\addtolength{\marginparsep}{20pt}
\addtolength{\paperheight}{\baselineskip}

% or perhaps \checkandfixthelayout[lines]
%\setlength{\evensidemargin}{\oddsidemargin}%

%

%\setheaderspaces{*}{13pt}{*}

%\footruleskip{2\normalbaselineskip}

%\addtolength{\footruleskip}{20pt}
%\addtolength{\headmargin}{10pt}

% This is from memman.pdf

%%% \maketitle CUSTOMISATION
% For more than trivial changes, you may as well do it yourself in a
titlepage environment
\pretitle{\begin{center}\sffamily\huge\MakeUppercase}
\posttitle{\par\end{center}\vskip 0.5em}

%%% ToC APPEARANCE
\maxtocdepth{subsection} % include subsections
\renewcommand{\cftchapterpagefont}{}
\renewcommand{\cftchapterfont}{}     % no bold!

%%% HEADERS & FOOTERS
\pagestyle{companion} % try also: empty , plain , headings , ruled , Ruled
, companion

%%% CHAPTERS
%\chapterstyle{veelo} % try also: default , section , hangnum , companion ,
article, demo





%%% SECTIONS
\hangsecnum % hang the section numbers into the margin to match
\chapterstyle{hangnum}
\maxsecnumdepth{subsection} % number subsections



\newcommand*{\comma}{,}
%% END Memoir customise

%\checkandfixthelayout

%% SI-units
\def\scientificnotation#1e#2\end{\ensuremath{{#1}\times 10^{#2}}}
 \newcommand{\sci}[1]{{\scientificnotation #1\end}}
\newcommand{\joenit}[1]{\begingroup\mathcode`\.="8000
\ensuremath{#1}\endgroup}

    \newcommand{\pkgname}[1]{\texttt{#1}}
    \newcommand{\opt}[1]{\textsf{#1}}

    \newenvironment{labeling}[1]
     {\list{}{\settowidth{\labelwidth}{\textbf{#1}}
     \leftmargin\labelwidth\advance\leftmargin\labelsep
     \def\makelabel##1{\textbf{##1}\hfil}}}{\endlist}

    \newcommand{\Fe}{\textit{For example:\ }}
    \newcommand{\fe}{\textit{for example:\ }}
    \newcommand{\dimn}[1]{\ensuremath{\mathsf{#1}}}

    \def\digitsep{\,}
    \def\onedigit#1{#1}
    \def\twodigit#1#2{#1#2}
    \def\threedigit#1#2#3{#1#2#3}
    \def\fourdigit#1#2#3#4{#1\digitsep#2#3#4}
    \def\fivedigit#1#2#3#4#5{#1#2\digitsep#3#4#5}
    \def\sixdigit#1#2#3#4#5#6{#1#2#3\digitsep#4#5#6}
    \def\sevendigit#1#2#3#4#5#6#7{#1\digitsep#2#3#4\digitsep#5#6#7}
    \def\eightdigit#1#2#3#4#5#6#7#8{#1#2\digitsep#3#4#5\digitsep#6#7#8}
    \def\ninedigit#1#2#3#4#5#6#7#8#9{#1#2#3\digitsep#4#5#6\digitsep#7#8#9}
    \def\ifourdigit#1#2#3#4{#1#2#3\digitsep#4}
    \def\ifivedigit#1#2#3#4#5{#1#2#3\digitsep#4#5}
    \def\isixdigit#1#2#3#4#5#6{#1#2#3\digitsep#4#5#6}
    \def\isevendigit#1#2#3#4#5#6#7{#1#2#3\digitsep#4#5#6\digitsep#7}
    \def\ieightdigit#1#2#3#4#5#6#7#8{#1#2#3\digitsep#4#5#6\digitsep#7#8}
    \def\ininedigit#1#2#3#4#5#6#7#8#9{#1#2#3\digitsep#4#5#6\digitsep#7#8#9}

    \def\getlength#1{\ifx#1\end \let\next=\relax
      \else\advance\count0 by 1 \let\next=\getlength\fi \next}

    \def\length#1{\count0=0 \getlength#1\end}

%% SI-units

\newcommand{\ly}{\textrm{ ly}}

%% Begin Error bars

\makeatletter
\SpecialCoor
\def\errorLine{\@ifnextchar[{\pst at errorLine}{\pst at errorLine[]}}
\def\pst at errorLine[#1](#2)#3#4{{%
     \ifx#1\empty\else\psset{#1}\fi
     \pst at getcoor{#2}\pst at tempA
     \def\@errorMin{#3}
     \def\@errorMax{#4}
     \psline[linewidth=0.5pt]{-|}(#2)(!%
         \pst at tempA \pst at number\psyunit div /yDot exch def
         \pst at number\psxunit div \@errorMin\space add yDot %
     )
     \psline[linewidth=0.5pt]{-|}(#2)(!%
         \pst at tempA \pst at number\psyunit div /yDot exch def
         \pst at number\psxunit div \@errorMin\space sub yDot %
     )
     \psline[linewidth=0.5pt]{-|}(#2)(!%
         \pst at tempA \pst at number\psyunit div \@errorMax\space add exch
         \pst at number\psxunit div exch %
     )
     \psline[linewidth=0.5pt]{-|}(#2)(!%
         \pst at tempA \pst at number\psyunit div \@errorMax\space sub exch
         \pst at number\psxunit div exch %
     )
}}
%
\def\GetCoordinates#1{\expandafter\GetCoordinates at i#1}
\def\GetCoordinates at i #1{\GetCoordinates at ii#1}
\def\GetCoordinates at ii#1 #2 #3 #4 #5 #6 #7 #8 {%
     \DoCoordinate{#2}{#4}%
     \errorLine[linecolor=black, linewidth=2pt](#2,#4){#6}{#8}% <<<<<
     \@ifnextchar D{\GetCoordinates at ii}{}%
}
\makeatother

%% END Error Bars

%%BEGIN Manometre

\SpecialCoor
\input random
\newcommand\manometre{%
  \pscircle[doubleline=true,fillstyle=solid](0,0){1}
  \psarc(0,0){0.65}{-60}{240}
  \multido{\i=-60+30}{11}{\psline(0.65;\i)(0.45;\i)}
  \psline[arrowscale=2,linewidth=2\pslinewidth]{->}(0.5;-70)(0.65;110)
  \pscircle[fillstyle=solid]{0.1}%
}
% idea by Denis Girou and Manuel Luque
\newlength\Xd
\newlength\Yd
\newcommand\RandomMolecule[1]{%
 \multido{\i=1+1}{#1}{%
   \setrandim\Xd{-2pt}{1pt}%
   \setrandim\Yd{-1pt}{1pt}%
   \pscircle*[linecolor=blue](\pointless\Xd,\pointless\Yd){1pt}}%
}

%%% END Manometre


\newcommand{\SB}[1]{\psshadowbox[linecolor=yellow]{#1}}
\flushbottom

\newcounter{esi}

\newcommand{\esa}[1]{%
  \evali
  { \blue \noindent \rule{\textwidth}{2pt}} \\
  \textbf{Example \theesi. #1.}
  } % Esimerkin alku

\newcommand{\esl}{%
{\blue \noindent \rule{\textwidth}{2pt}} \\
\evali \addtocounter{esi}{1}}       % Esimerkin loppu

\newcommand{\evali}{\vskip 15pt} %V‰li, jolla erotetaan esimerkit ja
m‰‰ritelm‰t leip‰tekstist‰.
\newcommand{\ka}{\evali\hrule}

\def\vektori(#1)(#2)(#3)(#4){%
 \pcline[linewidth=2pt, arrowsize=.3,arrows=->,linecolor=blue](#1)(#2)%
 \naput[npos=.5,labelsep=3pt]{$\vv{#3_{\textrm{#4}}}$}
}

%_{\textrm_{#4}}
%_{\textrm{#4}}
%% BEGIN Quantities
\newcommand{\net}{\ensuremath{\Sigma{\mathbf{\vec{F}}}} }     %
kokonaisvoima
\newcommand{\gd}{\ensuremath{g=\SI{9.81}{\metre\per\second\squared} }} %
putoamiskiihtyvyys
\newcommand{\g}{\ensuremath{\SI{9.81}{\metre\per\second\squared}}} %
putoamiskiihtyvyys
\newcommand{\NII}{\ensuremath{\Sigma{\mathbf{\vec{F}}}=m\vec{a}} }     % NII
\newcommand{\ekin}{\ensuremath{E_{\mbox{kin}}=\frac{1}{2}mv^2}}  %
liike-energia
\newcommand{\epot}{\ensuremath{E_{\mbox{pot}}=mgh}}  % potentiaali-energia

%% END Quantities

\definecolor{ColorA}{hsb}{0.7, 0.1, 0.8}
\definecolor{ColorB}{hsb}{0.7, 0.9, 0.8}

%\captiontitlefont{\sffamily} %\itshape

\addtolength\textheight{3\baselineskip}
%\addtolength\textwidth{10mm}

% Begin layout

%\newenvironment{definition}[2]{%
%{\evali
%\noindent\hskip-9pt
%\psframebox[framesep=6pt, linewidth=3pt,
linecolor=cyan]{\parbox[c][\height][s]{\textwidth}{%
% #1}
%}
%\evali
%}
%}

\newcommand{\definition}[2]{%
  \evali
  \noindent\hskip-9pt
  \psframebox[framesep=6pt, linewidth=3pt,
linecolor=cyan]{\parbox[c][\height][s]{\textwidth}
  {{\blue #1}

    #2
  }}
  \evali
}

\definecolor{jullikka}{rgb}{.4,.4,.4}

\newcommand{\cdefinition}[2]{%
  \evali
  \noindent\hskip-9pt
  \psframebox[framesep=6pt, linewidth=3pt,
linecolor=jullikka]{\parbox[c][\height][s]{\textwidth}
  {{\blue #1}

    #2
  }}
  \evali
}

\definecolor{punainen}{rgb}{1,0.2,0}

\newcommand{\note}[1]{%
  \evali
 \noindent\hskip-9pt %\\
  \psframebox[framesep=6pt, linewidth=2pt,
linecolor=punainen]{\parbox[c][\height][s]{\textwidth}
  {{\red Note!}

     #1
  }}
  \evali
}

% End layout

\definecolor{kellukka}{rgb}{.4,.98,0.5}

%0,.99,.3 vahvahko vihrea

\newcommand{\edefinition}[4]{
  \definition{#1}{#2 %\vskip10pt
     \begin{equation}
       \psframebox[fillstyle=solid, fillcolor=kellukka, framesep=15 pt]{%
         #3}
     \end{equation}
     \vskip10pt
     \noindent #4.
    }
 \evali
}

\definecolor{kellukka}{rgb}{.4,.98,0.5}

\newcommand{\cedefinition}[4]{
  \cdefinition{#1}{#2 %\vskip10pt
     \begin{equation}
       \psframebox[fillstyle=solid, fillcolor=kellukka, framesep=15 pt]{%
         #3}
     \end{equation}
     \vskip10pt
     \noindent #4
    }
 \evali
}

% End layout


\author{Kari}

\newcounter{nro}

\makeatletter
\ifdraftdoc
\newlength{\draftnotewidth}
\newlength{\draftnotesignwidth}
\newcommand{\draftnote}[1]{\@bsphack%
{%% do not interfere with settings for other marginal notes
\strictpagecheck%
\checkoddpage%
\setlength{\draftnotewidth}{\foremargin}%
\addtolength{\draftnotewidth}{\trimedge}%
\addtolength{\draftnotewidth}{-3\marginparsep}%
\ifoddpage
\setlength{\marginparwidth}{\draftnotewidth}%
\marginpar{\flushleft\textbf{\textit{\HUGE !\ }}\small #1}%
\else
\settowidth{\draftnotesignwidth}{\textbf{\textit{\HUGE\ !}}}%
\addtolength{\draftnotewidth}{-\draftnotesignwidth}%
\marginpar{\raggedleft\makebox[0pt][r]{%% hack around
\parbox[t]{\draftnotewidth}{%%%%%%%%% funny behaviour
\raggedleft\small\hspace{0pt}#1%
}}\textbf{\textit{\HUGE\ !}}%
}%
\fi
}\@esphack}
\else
\newcommand{\draftnote}[1]{\@bsphack\@esphack}
\fi
\makeatother

%Colors

\definecolor{nicered}{rgb}{.647,.129,.149}
\definecolor{tableShade}{HTML}{F1F5FA}   %iTunes
\definecolor{tableShade2}{HTML}{ECF3FE} %Finder


\makeatletter
\newlength\dlf at normtxtw
\setlength\dlf at normtxtw{\textwidth}
\def\myhelvetfont{\def\sfdefault{mdput}}
\newsavebox{\feline at chapter}
\newcommand\feline at chapter@marker[1][4cm]{%
\sbox\feline at chapter{%
\resizebox{!}{#1}{\fboxsep=1pt%
\colorbox{nicered}{\color{white}\bfseries\sffamily\thechapter}%
}}%
\rotatebox{90}{%
\resizebox{%
\heightof{\usebox{\feline at chapter}}+\depthof{\usebox{\feline at chapter}}}%
 {!}{\scshape\so\@chapapp}}\quad%
\raisebox{\depthof{\usebox{\feline at chapter}}}{\usebox{\feline at chapter}}%
} \newcommand\feline at chm[1][4cm]{%
\sbox\feline at chapter{\feline at chapter@marker[#1]}%
  \makebox[0pt][l]{% aka \rlap
\makebox[1cm][r]{\usebox\feline at chapter}%
}} \makechapterstyle{daleif1}{
\renewcommand\chapnamefont{\normalfont\Large\scshape\raggedleft\so}

\renewcommand\chaptitlefont{\normalfont\huge\bfseries\scshape\color{nicered}}
   \renewcommand\chapternamenum{}
    \renewcommand\printchaptername{}
    \renewcommand\printchapternum{\null\hfill\feline at chm[2.5cm]\par}
     \renewcommand\afterchapternum{\par\vskip\midchapskip}
      \renewcommand\printchaptertitle[1]{\chaptitlefont\raggedleft ##1\par}
} \makeatother \chapterstyle{daleif1}





-- 
**************************************************************
Kari Eloranta
Ketunpolku 1
40400 JYVÄSKYLÄ FINLAND
Tel: +358 40 586 7654
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20111108/45dc0acc/attachment-0001.html>


More information about the PSTricks mailing list