Salve a tutti… Ho un problema DVI vs. TikZ che mi ha fatto perdere le ultime due ore invano…
Ho un documentclass book bello corposo con diverse figure TikZ, ma a un certo punto mi da un problema.
Se ci aggiunge il semplice codice (che, in un .tex separato, funziona perfettamente! -> 0 errori 0 warnings):
`\begin{figure}
\begin{tikzpicture}[scale=1]\tikzstyle{axes}=[]
% Draw axes
\begin{scope}[style=axes]
\draw[->] (-2,0) — (3,0) node{$x$};
\draw[->] (0,-2) — (0,3) node[above] {$y$};
\end{scope}\draw[pattern=north west lines] (-2,-2) rectangle (2,3);
\end{tikzpicture}
\end{figure}`non ho errori aggiuntivi (tutto il documento rimane a 0 errori 0 warnings) ma il DVI mi dà un alert insistente di:
The page could not be rendered
Error: /undefined in pgfpat4
Operand stack:
–nostringval– –nostringval– –nostringval– 0 0 0
Execution stack:
%interp_exit .runexec2 –nostringval– –nostringval– –nostringval– 2 %stopped_push –nostringval– –nostringval– –nostringval– false 1 %stopped_push 1893 1 3 %oparray_pop 1892 1 3 %oparray_pop 1876 1 3 %oparray_pop 1755 1 3 %oparray_pop –nostringval– %errorexec_pop .runexec2 –nostringval– –nostringval– –nostringval– 2 %stopped_push –nostringval–
Dictionary stack:
–dict:1155/1684(ro)(G)– –dict:1/20(G)– –dict:88/200(L)– –dict:188/300(L)– –dict:74/200(L)–
Current allocation mode is local
Last OS error: No such file or directory
MiKTeX GPL Ghostscript 8.60: Unrecoverable error, exit code 1Ho fatto delle ricerche su Google ma niente di pertinente…
Devo chiamare un esorcista?
P.S. Le librerie ci sono tutte perché ho altre immagini che fanno praticamente la stessa cosa con valori diversi e funzionano perfettamente.
Il problema è con Ghostscript, evidentemente, il dvi non c’entra nulla. Difficile fare diagnosi con così pochi elementi. Prova con il “divide et impera”: dividi il tuo file a metà successive fino a che trovi l’errore. Ho il sospetto che non c’entri nulla con tikz.
Ciao
Enrico