Why is it that whenever I add \usepackage{pstricks} or \usepackage{tikz}, I always get the error below?
Latex Error: /usr/local/texlive/2013/texmf-dist/tex/latex/xcolor/xcolor.sty:60 TeX capacity exceeded, sorry [parameter stack size=10000].
Latex Error: /usr/local/texlive/2013/texmf-dist/tex/latex/xcolor/xcolor.sty:60 ==> Fatal error occurred, no output PDF file produced!
However, if I try to compile a document with (only) those packages in a separate file, no problem!
It seems as if these packages conflict with my existing packages (listed below).
Any ideas would be very much appreciated! Thanks a lot.
\usepackage{graphicx}
\usepackage{gb4e}
\usepackage{tipa}
\usepackage{setspace}
\usepackage[T1]{fontenc}
\usepackage{multirow}
\usepackage{lscape}
\usepackage{slashbox}
\usepackage{arydshln}
\usepackage[T1]{fontenc}
\usepackage{float}
\usepackage{makeidx}
\usepackage{enumitem}
Here is the code that produces the problem (with all other text removed)
\documentclass[11pt,a4paper]{book} \setcounter{secnumdepth}{4}
\usepackage{graphicx} \usepackage{gb4e} \usepackage{tipa} \usepackage{setspace} \usepackage[T1]{fontenc} \usepackage{multirow} \usepackage{lscape} \usepackage{slashbox} \usepackage{arydshln} \usepackage[T1]{fontenc} \usepackage{float} \usepackage{makeidx} \usepackage{enumitem} %\usepackage{pstricks} %\usepackage{tikz} \setcounter{part}{-1} \setcounter{subsection}{0} %%%% LaTeX209: %\documentstyle[a4,11pt,gb4e]{article} %% \def\bs{$\backslash$} \frenchspacing\parskip1.2ex \parindent0pt \def\bit{\vskip.05\baselineskip\hspace*{1em}\hangindent4em\hangafter1} \title{A grammatical description of Muylaq' Aymara} \author{Matt Coler} \date{} \makeindex \begin{document}
%\begin{tikzpicture} %{\usebox{\test}}; %\end{tikzpicture}
\color{white} %\color{black} % activate to see bounding box \fboxsep=0pt
% this figure is 50mm by 50mm
\newsavebox{\gaussians}
\savebox{\gaussians}{
\begin{tikzpicture}
\psset{unit=1mm}
\color{black} % for text
\draw (-1,0) -- (-0.5,1.5);
\draw (-0.47,1.6) node{$\sigma$};
\draw (-0.5,1.5) -- (-0.2,0.5);
\draw (-0.2,0.5) -- (-0.6,0);
\end{tikzpicture}
}
\newsavebox{\gaussianss}
\savebox{\gaussianss}{
\begin{tikzpicture}
\psset{unit=1mm}
\color{black} % for text
\draw (-1,0) -- (-0.3,1.5);
\draw (-0.27,1.6) node{$\sigma$};
\draw (-0.3,1.5) -- (-0.2,0.45);
\draw (-0.2,0.45) -- (-0.6,0);
\end{tikzpicture}
}
\newsavebox{\gaussiansss}
\savebox{\gaussiansss}{
\begin{tikzpicture}
\psset{unit=1mm}
\color{black} % for text
\draw (-1,0) -- (-0.5,1.5);
\draw (-0.47,1.6) node{$\sigma$};
\draw (-0.5,1.5) -- (-0.2,0.5);
\draw (-0.2,0.5) -- (-0.65,0);
\draw (-0.2,0.5) -- (-0.4,0);
\draw (-0.2,0.5) -- (0.5,0);
\draw (-0.2,0.5) -- (1.8,0);
\draw (-0.2,0.5) -- (2.4,0);
\end{tikzpicture}
}
\newsavebox{\oneline}
\savebox{\oneline}{
\begin{tikzpicture}
\psset{unit=1mm}
\color{black} % for text
\draw (-1,0) -- (-0.5,1.5);
\draw (-0.47,1.6) node{$\sigma$};
\end{tikzpicture}
}
%\tikz\draw (1,1) node{$\sigma$} -- (2,2) node{B};
\begin{tikzpicture}
\draw (0,0) node {\usebox{\gaussians}};
\draw (0.7,0) node {\usebox{\gaussians}};
\draw (2.3,0) node {\usebox{\gaussians}};
\draw (3.75,0) node {\usebox{\gaussians}};
\draw (5.2,0) node {\usebox{\oneline}};
\draw (6.35,0) node {\usebox{\gaussianss}};
\draw (9.5,0) node {\usebox{\gaussiansss}};
\end{tikzpicture}
\begin{picture}(100,100)
\color{black} % for text
\put(-3,93){\Large{/mun}(a)}
\put(52,93){\Large{+}}
\put(68,93){\Large{t'(a)}}
\put(95,93){\Large{+}}
\put(110,93){\Large{k(a)}}
\put(137,93){\Large{+}}
\put(153,93){\Large{t}}
\put(165,93){\Large{+}}
\put(183,93){\Large{t(i)/}}
\put(232,93){\Large{[mun + t'+k+t+t]}}
\end{picture}
%\begin{tikzpicture}
%\psset{unit=1mm}
%\color{black} % for text
%\draw (-4.4,1.4) node{/mun};
%%\draw node{/mun(a) + t'(a) + k(a) + t + t(i)/};
%%\draw (7.6,0) node{[mun + t' + k + t + t]};
%\end{tikzpicture}
\end{document}