9 responses

  1. Facebook User
    February 22, 2013

    Hi, nice tutorial…but I am facing this problem.

    For matlab plot like the one in your example this works brilliantly.

    But for other pictures like pngs if you convert them to eps (for example with matlab itself) and then try to use them in latex the quality drops….

    But if you use the generated eps in microsoft word you keep that quality. therefore it must be the epstopdf package that is not doing his conversion properly.

    Did you came across this problem?? Can you suggest solutions?


    • Himadri
      February 24, 2013

      Hello, if you want to convert png to pdf then you must need to use the command and package epstopdf. But what i have seen from my experience is that if the picture is in png format then the quality degrades. Because png holds as much pixel as it can and when it gets converted, some pixels get discarded. But for jpeg the picture is already with less number of pixels and the loss is less.

  2. Nodame
    March 8, 2013

    I was able to include a figure in my Latex document using a Matlab figure that I had previously converted into .eps format. However, the figure in latex has lost all of its text and the axis do not have labels and numbers anymore. I have checked using an eps viewer if my eps figure was complete, and yes, it was.

    Another problem I run into, is that since I am using usepackage{epstopdf}, I was expecting to find a pdf file with the same name as my eps figure in the directory, but it’s not there. Any idea of what is going on, and how to fix this problem?

    My header part looks like this:



    addtolength{hoffset}{-2cm} addtolength{topmargin}{-2.8cm}
    addtolength{textwidth}{3 cm} addtolength{textheight}{6.2 cm}

    and I have

    caption{Fig. 5.1}

    • Himadri
      May 15, 2013

      As far my knowledge goes, you should get pdf file in the folder with the same name as your .eps file. I get it always. May be you are not adjusting all the options correctly in QUICK BUILD. You just check by going LaTex> Option> Quick Build and then try to select view pdf option.

  3. Nodame
    March 8, 2013

    Turns out all text is there (when I open the pdf file directly from my documents folder, I can see everything just fine), it was just that I couldn’t see it in the latex pdf viewer. However, the pdf file with the same name as the eps file was not created , and I am still not sure why.

  4. Pannir
    May 12, 2013

    Himadri. It works fine. I use Miktex for Latex and I could convert all my thesis pictures numbering more than 50 in one go. Thanks a lot.

    • Himadri
      May 15, 2013

      Thank you for your comment Pannir. I posted this blog to make the use of LaTex easy …

  5. vineeth
    November 28, 2013

    I was facing problems with .eps file compilation
    Thank you for simple and clear instructions..
    it helped a lot..

    • Himadri Subrah Saha
      November 29, 2013

      I am glad that the trick helped you.

Leave a Reply




Back to top
mobile desktop