Importing a figure
John C Frain
frainj at gmail.com
Thu Sep 26 21:55:42 CEST 2019
John C Frain
3 Aranleigh Park
mailto:frainj at tcd.ie
mailto:frainj at gmail.com
On Wed, 25 Sep 2019 at 19:50, David Carlisle <d.p.carlisle at gmail.com> wrote:
> actually you just need graphicx (which calls epstopdf-base behind the
> scenes if needed.
Thanks for the clarification. Obviously I am a bit out of date.
I have used both octave and gretl and should have advised that graphics
files from both of these packages can save graphics output as pdf which can
then be imported directly into pdflatex. If you have an amended eps file
it is still necessary to remove any earlier pdf files graphics files
generated by the packages graphics and epstopdf_base. Otherwise, the new
files will not be converted to pdf and the old converted files will be
included in the document. I am currently using TeX Live 2017 on Windows 10
and the versions of the graphicx and epsto pdf packages that I am using are
set out below.
Package: graphics 2017/06/25 v1.2c Standard LaTeX Graphics (DPC,SPQR)
Package: epstopdf-base 2016/05/15 v2.6 Base part for package epstopdf
> On Wed, 25 Sep 2019 at 18:26, John C Frain <frainj at gmail.com> wrote:
>> If you are using the standard pdflatex program to produce your pdf output
>> you will need to do something extra to import epd figures. The graphicx
>> package and pdflatex only support pdf, jpg and png formats. There should be
>> no problems including jpg files in your document using the graphicx
>> package, figure environment, and the includegraphics command.
>> to include eps files in this scheme you can use the epstopdf program
>> (included in your tex distribution) to convert your eps file to pdf or
>> include the epstopdf package in your preamble. When this is included in
>> the preamble and the pdflatex program encounters an eps file and no
>> corresponding pdf it generates the pdf and includes it in your document,
>> If you amend the eps file you must delete the generated pdf file as
>> otherwise it will not be regenerated.
>> Chapter 7 of my LaTeX notes contains more details (
>> John C Frain
>> 3 Aranleigh Park
>> Dublin 14
>> mailto:frainj at tcd.ie
>> mailto:frainj at gmail.com
>> On Wed, 25 Sep 2019 at 14:36, Trevor Marshall via texhax <texhax at tug.org>
>>> Please can anyone tell me how to import a figure, say as a eps or jpg
>>> file generated by OCTAVE or MATLAB?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the texhax