General ⇒ eps figure not showing
eps figure not showing
I'm trying to generate a document with .eps figure according to a journal's (Biometrika) styleguide.
I'm using their template, but figure does not show - only the caption.
Not sure if this is related or not, but they ask that figure be located in a subdirectory of the one where the tex file is.
I'm attaching a mwm - hope it's enough..
Thank you so much,
Asaf
- Attachments
-
- Asaf_MWM.tex
- (931 Bytes) Downloaded 653 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
eps figure not showing
art
, put a picture in there and gave the full filename in the figurebox command. Everything works fine.Why they decided to do it that way, no idea, but as everything is hardcoded, you need to put the file in that folder.
Re: eps figure not showing
Thanks so much for your response - I'm sorry for not including the cls file (I'm not a sophisticated Latex user, to say the least).
I am frustrated because the eps figure still does not show up - the file compliles but the output shows only the caption and not the figure itself.
Any idea why this still doesn't work? can it have anything to do with my software? (I'm using TexShop on Mac OSx).
I attached a screenshot of the files included in my folder, if this is of any help..
Thank you again and sorry for trouble,
Asaf
- Attachments
-
- biometrika.png (125.88 KiB) Viewed 23596 times
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
eps figure not showing
fig1.eps
into the folder called art
.Re: eps figure not showing
It is in the folder art - I just copied it also to the main folder, because it didn't work when only in the folder "art"..
This is how the generated pdf looks like when I remove fig1.eps from the main folder and place it in the "art" directory (see attached).
Thank you..
Asaf
- Attachments
-
- asafwOutput.png (84.56 KiB) Viewed 23588 times
Reason: Resizing the pic to suit small screens.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: eps figure not showing
your latex run generates a log-file. Can you upload it?
Check the fig1-eps-converted-to.pdf if it looks ok. If this one should be empty the eps file is broken.
EDIT: You made me paranoid, so i checked again and couldn't get it to work. I wasn't even sure if it worked before. But then i remembered, usually when eps figures are involved, i compile using xelatex to save the extra conversion steps.
Try compiling your document using xelatex.
Re: eps figure not showing
I will look up xelatex, here is the .log file in the meantime..
Regarding the file "fig1-eps-converted-to.pdf", when I checked it before it was fine (not broken) and the figure showed up..
Thank you for the time you spend on replying.. I am lost without expert advice

Asaf
- Attachments
-
- styleguide.log
- (17.5 KiB) Downloaded 635 times
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: eps figure not showing
Since inserting figures is hardcoded that strange way, you cannot use the TL standards.
The alternative would be XeLaTeX outputting pdf directly and working with post script.
Re: eps figure not showing
It works fine with XeLaTex

Asaf
Re: eps figure not showing
I posted a while ago regarding an eps file not showing after typesetting.
Johannes suggested to use xelatex instead of pdflatex, and this indeed solved the problem back then.
I am not trying to compile the same file using xelatex, but it crashes. When I use pdflatex instead, everything processes fine.
I am not sure what is wrong, and would appreciate some help very much.
I am attaching the .tex along with .cls and .log files.
Thank you so much,
Asaf
- Attachments
-
- styleguide.tex
- (24.1 KiB) Downloaded 642 times
-
- styleguide.log
- (8 KiB) Downloaded 644 times
-
- biometrika.cls
- (62.23 KiB) Downloaded 564 times