2

I have a few figure files and some of them are already PDF files, for example directly obtained from MATLAB as PDF standalone file. Some 3 or 4 files are EPS files with which I use PSFRAG to embed the nice fonts. I have the following questions:

  1. Is it possible to compile both types of files in one latex application? I have pdflatex and dvi-ps-pdf., where the former needs all PDF files and the latter accepts only EPS files.

  2. How to obtain a standalone PDF file from an EPs file with embedded fonts with PSFRAG.

About the second question, will it give exactly the same result (quality) as I usually get with the triple dvi-ps-pdf?

I had a look at this question:

Creating standalone eps files and using batch files to automate the process

which suggests this code

->Convert to standalone pdf

\documentclass[convert]{standalone}
\usepackage[hiresbb,dvips]{graphicx}
\usepackage[dvips]{color}
\usepackage{psfrag}
\begin{document}
\psfrag{A}{$m$}
\psfrag{B}{$k,c$}
\psfrag{Y}{inner stator bore}
\includegraphics{E:/jeffcott.eps}
\end{document}

I tried this code but I got an error: It says "no bounding box" and "can not determine the size of graphic".

The same question gives something related to that in his answers part B. But I did not understand it. Could someone help me about the issue?

  • 1
    Do you know about epstopdf script and companion package? – Paul Gessler Jan 11 '15 at 20:33
  • @PaulGessler In the linux machine I think I can use it as I used the otherway around pdftoeps. But I dont know the details. I mean \psfrag{u12}[t][]{$\phi_{12}$} \psfrag{u21}[t][]{\hspace{2mm}$\phi_{21}$} \psfrag{ph}{\hspace{-8mm}Phi} If epstopdf could understand these arguments. – Seyhmus Güngören Jan 11 '15 at 20:38
  • Welcome to TeX.SX! Usually, we don't put a greeting or a “thank you” in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you. – Martin Schröder Jan 11 '15 at 22:41
  • @MartinSchröder thanks for the explanation. I do both ways, anyways. – Seyhmus Güngören Jan 11 '15 at 22:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.