Conversion Toolsauto-pst-pdf Problem

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
Post Reply
davmt
Posts: 2
Joined: Mon Aug 09, 2010 2:38 pm

auto-pst-pdf Problem

Post by davmt »

I have a problem with getting figures reproduced by the \matlabfig command.
Some days ago everything was working fine and I was able to run the auto-pst-pdf package using pdflatex --shell-escape option.

Whenever I try to generate everything again, the tool gets stuck on the PDFCrop tool for a couple of minutes and after some minutes I realize that the program produce a whole version of the document cropped.

Of course if I set the auto-pst-package to off, I get a normal document without the reproduction of the \matlabfig figures.

This is the error I get.
"-------------------------------------------------"
"auto-pst-pdf: Auxiliary LaTeX compilation"
"-------------------------------------------------"
This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8)
entering extended mode


Package auto-pst-pdf Warning:
Creation of mac_cr-autopp.dvi failed.
This warning occured on input line 124.

PDFCROP 1.23, 2010/01/09 - Copyright (c) 2002-2010 by Heiko Oberdiek.

!!! Warning: Empty Bounding Box is returned by Ghostscript!
!!! Page 6: 0 0 0 0
!!! Either there is a problem with the page or with Ghostscript.
!!! Recovery is tried by embedding the page in its original size.
and this is the preamble of my latex file,

Code: Select all

\documentclass[a4paper, 12pt, pdftex]{book}

\usepackage[utf8x]{inputenc}
\usepackage[english]{babel}
\usepackage{color}
\usepackage[pdftex]{graphicx}
\usepackage{float}
\usepackage{pdflscape}
\usepackage{epstopdf}
\graphicspath{{C://Thesis/figures/}}
\usepackage[table]{xcolor}
\usepackage{multirow}
%\usepackage{a4wide}
%\textwidth 16.59cm
%\textheight 21.94cm 
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{attachfile}
\usepackage{psfrag}
\usepackage{fancyhdr}
\usepackage[on]{auto-pst-pdf}

\parskip 7.2pt    
\parindent 0pt	

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\setlength{\headheight}{15pt}

\begin{document}....
thanks in advance

PS I have all my figures in the same folder of the tex file, and other .png pictures are rendered correctly so i assume the graphics path is correct

using MikTex2.8, and LEd

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

auto-pst-pdf Problem

Post by CrazyHorse »

davmt wrote:

Code: Select all

\documentclass[a4paper, 12pt, pdftex]{book}

\usepackage[utf8x]{inputenc}
\usepackage[english]{babel}
[color=#FF0000]%\usepackage{color}[/color]
\usepackage[color=#FF0000][pdftex][/color]{graphicx}
\usepackage{float}
\usepackage{pdflscape}
[color=#FF0000]%\usepackage{epstopdf}[/color]
\graphicspath{{C://Thesis/figures/}}
\usepackage[table]{xcolor}
\usepackage{multirow}
%\usepackage{a4wide}
%\textwidth 16.59cm
%\textheight 21.94cm 
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{attachfile}
\usepackage{psfrag}
\usepackage{fancyhdr}
\usepackage[on]{auto-pst-pdf}

\parskip 7.2pt    
\parindent 0pt	

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\setlength{\headheight}{15pt}

\begin{document}....
thanks in advance
1. load hyperref as laste file
2. delete the option [pdftex] for the document class
and also for package {graphicx}!
3. Do not load color when also loading xcolor
4. do not load package epstopdf when using auto-pst-pdf

Herbert
davmt
Posts: 2
Joined: Mon Aug 09, 2010 2:38 pm

Re: auto-pst-pdf Problem

Post by davmt »

thanks a lot that partially solved it

to contribute to people which might bump in this problem

1) i had deleted a dvi file corresponding to the project while cleaning the project
2) i restored the dvi file from an earlier date (outdated project dvi file)
3) auto-pst-pdf ran and worked
4) i tried to run it again and it blocked
5) then i disabled [pdftex] from \includepackage[pdftex]graphicx and it has been working since
Post Reply