Rank: 4105 based on 31 downloads (last 30 days) and 1 file submitted
photo

Emmett L

E-mail

Personal Profile:
Professional Interests:
Aerospace Controls

 

Watch this Author's files

 

Files Posted by Emmett
Updated   File Tags Downloads
(last 30 days)
Comments Rating
25 Jul 2008 PlotPdfTex PDF file exportation with LaTeX text and symbols Author: Emmett L annotation, customization, latex, pdf, figure, export 31 4
  • 4.75
4.8 | 4 ratings
Comments and Ratings on Emmett's Files View all
Updated File Comment by Comments Rating
24 Apr 2012 PlotPdfTex PDF file exportation with LaTeX text and symbols Author: Emmett L Tor

Really nice tool! I've also had problems with eps2eps: when using plotyy, it removes the left y-axis. As mentioned in the comments, this is fixed for me by using Str = sprintf('ps2epsi %s2.ps %s.eps',TempName,FileName); instead. I also use matlabfrag instead of laprint, which in my opinion gives better results.

21 May 2009 PlotPdfTex PDF file exportation with LaTeX text and symbols Author: Emmett L verveckken, jan

Great tool, finally a solution for this problem!

Have had some trouble with a eps2eps, it would change the bounding box to cut off the axes... replaced it with the ps2epsi as suggested in your file, seems to handle that issue.
Thanks!

31 Mar 2009 PlotPdfTex PDF file exportation with LaTeX text and symbols Author: Emmett L Marco

The file works nicely and based on plotepstex. However, there is a bug in the function:
The function creates an eps file called and deletes this temporary file after the pdf has been created.
While this itself is no problem, the function uses the same base string for the eps as for the pdf. Now, if I created a eps with that name before, e.g., using 'plotepstex', it is deleted by 'plotpdftex'.
To fix this, simply change the function such that it uses a (second) temporary file name instead of the string given by the user. Here's the diff output (diff new old):

175c175
< Str = sprintf('eps2eps -dNOCACHE %s2.ps %s3.eps',TempName,TempName);
---
> Str = sprintf('eps2eps -dNOCACHE %s2.ps %s.eps',TempName,FileName);
191c191
< Str = sprintf('epstopdf --outfile=%s.pdf %s3.eps',FileName,TempName);
---
> Str = sprintf('epstopdf %s.eps',FileName);
197c197
< dos(sprintf('rm %s3.eps',TempName));
---
> dos(sprintf('rm %s.eps',FileName));
200c200
< dos(sprintf('del %s3.eps',TempName));
---
> dos(sprintf('del %s.eps',FileName));
212c212
< %dos(sprintf('rm %s.eps',FileName));
---
> dos(sprintf('rm %s.eps',FileName));
215c215
< %dos(sprintf('del %s.eps',FileName));
---
> dos(sprintf('del %s.eps',FileName));

Emmet, if you could consider this please for an update.

Thanks for the function, works nicely apart from the above mentioned.

24 Sep 2008 PlotPdfTex PDF file exportation with LaTeX text and symbols Author: Emmett L Munsamy, Sagren

This was exactly what I was looking for. I spent hours trying to combine the laprint generated files. I was compiling using pdflatex so I needed to have a combined rendering of the laprint generated files. Thank you for this submission. A true timesaver!

Contact us