Generaleps figure not showing

LaTeX specific issues not fitting into one of the other forums of this category.
asafw
Posts: 37
Joined: Sun Jun 10, 2012 12:33 pm

eps figure not showing

Post by asafw »

Hello,

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 640 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

eps figure not showing

Post by Johannes_B »

I had to look up the file biometrika.cls using google to test yur example. I created a folder 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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
asafw
Posts: 37
Joined: Sun Jun 10, 2012 12:33 pm

Re: eps figure not showing

Post by asafw »

Hi Johannes,

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
biometrika.png (125.88 KiB) Viewed 23056 times
Last edited by Johannes_B on Fri Aug 08, 2014 4:32 pm, edited 1 time in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

eps figure not showing

Post by Johannes_B »

You have to put figure fig1.eps into the folder called art.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
asafw
Posts: 37
Joined: Sun Jun 10, 2012 12:33 pm

Re: eps figure not showing

Post by asafw »

Hi again,

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
asafwOutput.png (84.56 KiB) Viewed 23048 times
Last edited by Johannes_B on Fri Aug 08, 2014 8:42 pm, edited 1 time in total.
Reason: Resizing the pic to suit small screens.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: eps figure not showing

Post by Johannes_B »

Hi Asaf,

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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
asafw
Posts: 37
Joined: Sun Jun 10, 2012 12:33 pm

Re: eps figure not showing

Post by asafw »

Hi Johannes,

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 620 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: eps figure not showing

Post by Johannes_B »

You need to run latex (that is pdflatex in dvi mode) and then convert it to ps and again to pdf. You editor might have a button for the whole thing.

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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
asafw
Posts: 37
Joined: Sun Jun 10, 2012 12:33 pm

Re: eps figure not showing

Post by asafw »

Thank you Johannes!!
It works fine with XeLaTex :)

Asaf
asafw
Posts: 37
Joined: Sun Jun 10, 2012 12:33 pm

Re: eps figure not showing

Post by asafw »

Hello LaTex community,

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 630 times
styleguide.log
(8 KiB) Downloaded 629 times
biometrika.cls
(62.23 KiB) Downloaded 550 times
Post Reply