Some images inserted with psfragfig
, are shifted to one side (right) and partially placed off the document. (see image, bottom figure is the one I'm talking about).
It occurs with TexShop whether I use pdflatex
(using --shell-escape
) or Tex+DVI.
The code I'm using to insert is :
\begin{figure}
\centering
\psfragfig{./figures/chapter1/intrinsic_error} % Generated by script_errors.m
\caption{Blah...}
\label{intrinsic_error}
\end{figure}
As you can guess, the image was generated by Matlab, using subplot and a tool called matlabfrag
which generated the .tex
file along with the .eps
file.
However, I have no problem with single-plot images inserted with the same code.
Maybe matlabfrag
is messing with the alignment properties in an incorrect way, but is there a workaround to simply shift the image back to the left with some psfragfig
options ?
Or should I use another tool to insert ?
Thanks for your help
Update : working example . The above would be inserted in :
Here is a working example... It's a PhD thesis, so not sure if the sample will be "enough" to understand my pb.
\documentclass[braunschweig]{thesis}
\usepackage[style=base,textfont={small,it},labelfont={it,bf}]{caption}
\usepackage[tight,scriptsize]{subfigure}
\usepackage{epstopdf}
\usepackage{lscape}
\usepackage{amsmath}
\usepackage{txfonts}
\usepackage{pstool}
\begin{document}
\end{document}
\documentclass{...}
and ending with\end{document}
.[crop=pdfcrop]
inpstool
I did not ever trysubplot
in matlab instead usedsubfig
orsubcaption
. Try\psfragfig[scale=0.5]{}
can useangle
,scale
and some options ofgraphicx
.