PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Probleme beim Erstellen eines PS - Dokumentes



deneb4
22-04-2007, 11:44
Hallo.
Ja ich weiß, der Name dieses Themas ist sehr eigenartig. Aber ich habe bis jetzt immer pdf´s erstellt, und bin jetzt zu ps´s übergegangen.
Ich schreibe ein Protokoll, in dem mehrere Diagramme vorkommen. Diese habe ich mit GnuPlot erstellt, als eps. Diese liegen in einem Unterordner meines Projektverzeinisses und ich binde sie so ein:


\begin{figure}[h!]
\centering
\includegraphics[angle=-90, width=13cm]{diagramme/Leistungen_sicfilter.eps}
\caption{Leistunsgverlauf SiC, Filter}


Das funktioniert auch sehr gut. Hat es zumindest bis jetzt. Bei einem Bild ( genau dem oben genannten ) streikt es. Die Seite wird nicht angeziegt, als Viewer nutze ich GhostView. Dieser gibt mir folgende Fehlermeldung:


GSview 4.8 2006-02-25
Unknown in Comments section at line 8:
%%DocumentFonts: Times-Roman Palatino-Roman

Unknown in Prolog section at line 100:
%%-------------- DG begin patch 15 ---------------%%

Unknown in Prolog section at line 121:
%%-------------- DG end patch 15 ---------------%%

Unknown in Prolog section at line 173:
%% DG/SR modification begin - Dec. 12, 1997 - Patch 2

Unknown in Prolog section at line 174:
%%itransform translate pathbbox /y2 ED a Div ceiling cvi /x2 ED /y1 ED a

Unknown in Prolog section at line 176:
%% DG/SR modification end

Unknown in Prolog section at line 179:
%% DG/SR modification begin - Jun. 1, 1998 - Patch 3 (from Michael Vulis)

Unknown in Prolog section at line 180:
%% a mul y1 moveto 0 y2 rlineto stroke /x1 x1 1 add def } repeat grestore }

Unknown in Prolog section at line 181:
%% def

Unknown in Prolog section at line 184:
%% DG/SR modification end

Unknown in Prolog section at line 370:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%

Unknown in Prolog section at line 445:
%%------------------ tvz/DG/hv (2004-05-10) end -------------------%%

Unknown in Prolog section at line 477:
%%Title: Dot Font for PSTricks

Unknown in Prolog section at line 478:
%%Creator: Timothy Van Zandt <tvz@Princeton.EDU>

Unknown in Prolog section at line 479:
%%Creation Date: May 7, 1993

Unknown in Prolog section at line 480:
%% Version 97 patch 1, 99/12/16

Unknown in Prolog section at line 481:
%% Modified by Etienne Riga <etienne.riga@skynet.be> - Dec. 16, 1999

Unknown in Prolog section at line 482:
%% to add /Diamond, /SolidDiamond and /BoldDiamond

Unknown in Prolog section at line 620:
%%%%%% R0 G0 B0 R1 G1 B1 NumLines MidPoint Angle GradientFill

Unknown in Prolog section at line 851:
%%% MV 10-09-99 00:36

GPL Ghostscript 8.56 (2007-03-14)
Copyright (C) 2007 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Displaying DSC file C:/Dokumente und Einstellungen/HP_Administrator/Desktop/LaTeX2.ps
Displaying page 1
Loading URWPalladioL-Roma font from C:\Programme\gs\fonts/p052003l.pfb... 2699760 1228550 2530984 1215286 2 done.
Loading StandardSymL font from C:\Programme\gs\fonts/s050000l.pfb... 2739952 1279564 2872616 1196710 4 done.
Loading NimbusRomNo9L-Regu font from C:\Programme\gs\fonts/n021003l.pfb... 2897312 1436258 2872616 1206627 4 done.
Error: /undefined in :
Operand stack:

Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- false 1 %stopped_push 1873 1 3 %oparray_pop 1872 1 3 %oparray_pop 1856 1 3 %oparray_pop 1739 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:1149/1684(ro)(G)-- --dict:0/20(G)-- --dict:81/200(L)-- --dict:175/300(L)-- --dict:43/200(L)--
Current allocation mode is local

--- Begin offending input ---
V
92 47 V
93 47 V
92 46 V
92 46 V
93 44 V
92 44 V
93 44 V
92 43 V
92 42 V
93 41 V
92 43 V
93 39 V
92 40 V
92 39 V
93 39 V
92 39 V
93 38 V
92 37 V
92 37 V
93 36 V
92 36 V
93 36 V
92 35 V
1.000 UL
LTb
828 513 M
5544 0 V
0 4158 V
-5544 0 V
828 513 L
1.000 UP
stroke
grestore
end
showpage
%%Trailer
%%DocumentFonts: Times-Roman
%%Pages: 1
: 1

%%EndDocument
@endspecial 4435 131 a
currentpoint grestore moveto
4435 131 a 235 131 a
currentpoint currentpoint translate 1 0.51181 div 1 0.51181 div scale
neg exch neg exch translate
235 131
a 945 2450 a Fa(Abbildung)23 b(1:)g(Leistunsgverlauf)e(SiC,)i(Filter)p
0 TeXcolorgray 0 TeXcolorgray 0 TeXcolorgray 1747 5926
a(1)p 0 TeXcolorgray 0 TeXcolorgray eop end

--- End offending input ---
file offset = 0
gsapi_run_string_continue returns -101

Ich weiß leider nicht, was von der Fehlermeldung alles wichtig ist, deswegen hab ich mal alles kopiert.

Zwischenzeitlich hab ich mal versucht ein Dokument mit nur dem besagtem Bild zu erstellen, auch das geht nicht.
Hier mal mein MB ( ich hoffe es ist eins ?!):


\documentclass[headsepline]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}
\usepackage{palatino}
\usepackage{graphicx,pst-all}
\usepackage{amsmath,amsthm}
\usepackage{tabularx}
\usepackage{fancybox}
\usepackage{caption}
\usepackage{ulem}
\setlength{\topmargin}{-0.3in}
\setlength{\textheight}{9in}
\setlength{\oddsidemargin}{-0.3in}
\setlength{\textwidth}{6.5in}
\pagestyle{headings}
\begin{document}
\begin{figure}[h!]
\centering
\includegraphics[angle=-90, width=13cm]{diagramme/Leistungen_sicfilter.eps}
\caption{Leistunsgverlauf SiC, Filter}
\end{figure}
\end{document}


Ich hoffe ich habe mich verständlich ausgedrückt und ihr könnte mir helfen. Das Unheimliche daran ist, dass es eine ganze weile geklappt hat und plötzlich nicht mehr. Ja ich weiß das klingt blöd, aber ich kann mich jetzt nicht daran erinnern irgendwas geändert zu haben.

mfg die Deneb

localghost
22-04-2007, 12:10
Mit welchen Parametern für das Terminal postscript hast Du den Plot erstellt? Es ist etwas merkwürdig, dass die Grafik alleine von GSview angezeigt wird, nicht aber im LaTeX-Dokument. Es wird auch eine Bounding Box angezeigt, allerdings kann man bei GSview nicht den EPS-Auschnitt (Menü Optionen) anzeigen lassen.

deneb4
22-04-2007, 12:26
Hallo.
hier mal den code fürs gnuplot:


cd "C:/Praktikum_HTA/Leistung"
set xdata time
set yrange[0:600]
set timefmt "%H:%M:%S"
set xrange["00:00:00":"00:01:00"]
set xlabel "t/mm:ss"
set ylabel "P / W"
set xtics "00:00:10"
set mxtics 1
set ytics 100
set mytics 10
set xtics nomirror
set ytics nomirror
set y2range[0:700]
set y2label "T / K"
set y2tics 50
set my2tics 10
set y2tics nomirror
set tics out
set grid
set size ratio 0.75
set key right top
set key box
set key width +2
set style data lines
set term post color solid
set term post color "Times-Roman" 15
set out "Leistungen_sic_filter.eps"
plot "sicfilter.txt"using 1:7 lw 2 title "eingesp. Leistung" with lines smooth bezier,"sicfilter.txt"using 1:9 lw 2 title "abs. Leistung" with lines smooth bezier,"sicfilter_temp.txt"using 1:2 lw 2 title "Temperatur" axes x1y2

( Um ehrlich zu sein wusste ich nicht genau worauf du hinauswolltest, deswegen mal hier alles, sorry aber ich bin noch nicht so bewandert. )

Ja wie du eben sagst, wenn die Grafik an sich auch nicht angezeigt werden würde, dann ergäbe das noch irgendeinen Sinn. Außerdem habe ich noch 6 andere Grafiken, auf die selbe Weise erstellt wurden, auf gleichen Daten beruhen ( also nicht genau die gleichen, aber dieselbe Struktur haben ) und genau so eingebunden werden. Die funktionieren alle.

localghost
22-04-2007, 12:35
Das macht das Ganze nicht einfacher, wenn alle anderen Grafiken in Ordnung sind. Aber versuche mal eine etwas andere Zuweisung des Terminals.


set term post eps enhanced color solid "Times-Roman" 15
set out "Leistungen-sic-filter.eps"

Du kannst alle Anweisungen für das Terminal in eine Zeile schreiben. Eigentlich war deine Version in Ordnung. Füge aber trotzdem mal mindestens eps hinzu. Vielleicht sind diese Zeilen auch besser am Anfang des Scripts aufgehoben. Und vermeide das "_" im Dateinamen. So etwas mag der LaTeX-Compiler außerhalb des Mathe-Modus gar nicht.

deneb4
22-04-2007, 12:42
Vielen Dank erstmal, jetzt klappts.

Was mir aber immernoch schleierhaft ist: wenn ein "_" im Dateinamen vorkommt, mag der Compiler das nicht. Leuchtet mir ein. Allerdings kommt das "_" in so vielen Dateinamen vor und da gibts kein rumgezick. Das versteh ich nicht.

Ich hab aber eine neue Grafik erstellt, mit dem Zusatz den du mir geschickt hast. Danke für die Tips.