Conversion ToolsPDFLaTeX failed me

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
Post Reply
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

PDFLaTeX failed me

Post by niles »

Hi

I have the following MWE with a *.PS figure in it. I would like to first compile to DVI, then PDF using PDFLaTeX. The conversion to DVI works fine, but then when using PDFLaTeX I get an error. I thought including ps2pdf was enough?

Code: Select all

\documentclass[10pt, a4paper]{article}
\usepackage[T1]{fontenc}    
\usepackage[english]{babel}
\usepackage[ansinew]{inputenc}
\usepackage{graphicx}
\usepackage[ps2pdf]{hyperref}

\begin{document}

\begin{figure}[H]
\centering
\includegraphics[width=125mm]{fig1.ps}
\caption{asd}
\label{fig1}
\end{figure}

\end{document}
Cheers,
Niles.
Last edited by niles on Sat Sep 24, 2011 9:14 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Re: PDFLaTeX failed me

Post by Stefan Kottwitz »

Hi Niles,

you could use LaTeX for producing the DVI file, then the dvips command line conversion tool and then the ps2pdf conversion tool for converting the PS file to PDF. Some editors such as TeXnicCenter can do that automatically.

Stefan
LaTeX.org admin
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

Re: PDFLaTeX failed me

Post by niles »

Thanks, it works!
Post Reply