Graphics, Figures & TablesInclusion of Figure from PSTeX fails

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
kasa
Posts: 5
Joined: Wed Dec 05, 2012 10:25 pm

Inclusion of Figure from PSTeX fails

Post by kasa »

I am using TeXnicCenter, and when I include pstex, e.g. this

Code: Select all

\scalebox{0.55}{
\begin{minipage}{\textwidth}
{\input{normal.pstex_t}}
\end{minipage}}

I get the message:

Code: Select all

Unknow graphics extension .pstex
And in the PDF file obtained some lines are omitted in the figures.

If I use LATEX->PS->PDF variant the error message is the following:

Code: Select all

GPL Ghostscript 9.01: Unrecoverable error, exit code 1 
How can I fix this problem?

Trying with DOS commands and programs (dvips, ps2pdf) the result is the same.

N.B:
The file "normal.pstex_t" begins with this.

Code: Select all

\begin{picture}(0,0)%
\includegraphics{normal.pstex}%
\end{picture}% )
...
And "normal.pstex" begins with this

Code: Select all

%!PS-Adobe-2.0 EPSF-2.0
%%Title: C:\Dokumentumok\Friends\Adri\Zs_t\normal.fig
%%Creator: fig2dev.exe Version 3.2 Patchlevel 4
%%CreationDate: Sat Jan 20 15:36:50 2007
%%For: Csisza@TENCENDOR (TENCENDOR)
%%BoundingBox: 0 0 524 606
%%Magnification: 1.0000
%%EndComments 
...
Thanks,
Zoltan

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Inclusion of Figure from PSTeX fails

Post by localghost »

I don't have any experience with pstex at all. But the comments section (or prolog, or preamble) of "normal.pstex" indicates that it actually is an EPS file. So it might help to rename it to "normal.eps" and try to include it by the \includegraphics command. If you want to compile directly with PDFLaTeX, you either need to convert the EPS file to PDF by the command line tool epstopdf or load the epstopdf package (from the oberdiek bundle) to do this on the fly. Pay special attention to the instructions in the package manual to make it work.

If you're not sure about the conversion, please attach "normal.pstex" to your next post by upload to the forum server. This would allow us to inspect it and test solutions.


Thorsten
kasa
Posts: 5
Joined: Wed Dec 05, 2012 10:25 pm

Re: Inclusion of Figure from PSTeX fails

Post by kasa »

What is strange is that if I include .pstex file, the lines are omitted in picture, if I include .eps file (I renamed normal.pstex into normal.eps) than the lines appaired, but the texts on picture are omitted.

This file I obtained from another people, who can run correctly on his computer.

Zoltan
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Inclusion of Figure from PSTeX fails

Post by localghost »

kasa wrote:[…] This file I obtained from another people, who can run correctly on his computer. […]
Then this person is predestinated to explain you how to get it working. This forum will fail in this task.
Post Reply