# auto-pst-pdf not working [closed]

I have used laprint within matlab to generate a simple graph:

set(0, 'defaulttextinterpreter','none')
figure(1), clf
plot([1 2])
ylabel('A straight line')
laprint


which gives me line.eps and line .tex. I then try to include this with latex:

\documentclass{article}
\usepackage[on]{auto-pst-pdf}
\begin{document}
\begin{figure}
\matlabfig{line}
\end{figure}
\end{document}


I run:

pdflatex -shell-escape foo.tex


but the result (foo-pics.pdf) is this:

So it looks like the symbol substitution hasn't worked. What has gone wrong?

I running CentOs 6.5 and pdfTeX 3.1415926-2.4-1.40.13

## closed as unclear what you're asking by egreg, Mico, user13907, Joseph Wright♦Mar 7 '15 at 23:14

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• Doesn't auto-pst-pdf require using pstricks? Can your matlab graph be exported to pstricks? Or consider using the epstopdf package. – Bernard Nov 27 '14 at 12:56
• If I do that will I still get the latex typesetting for the axis labels ? Adding \usepackage{pstricks} didn't change anything, unfortunately. – user64411 Nov 27 '14 at 13:27
• what happens with \usepackage[crop=off]{auto-pst-pdf}? – user2478 Nov 27 '14 at 13:35
• tried \usepackage[crop=off]{auto-pst-pdf} but it's exactly the same – user64411 Nov 27 '14 at 13:39
• @Lefti: I you want to replace text with LaTeX text, you should use psfrag or psfragx. Along with psfragx, is a Mathlab script called LaPrint that creates a .tex file for the labels and text within a mathlab graph. That done, you can use epstopdf. – Bernard Nov 27 '14 at 18:20