Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

OneDreamCloser

macrumors member
Original poster
Jun 16, 2008
30
0
hello all,

i am writing my thesis in latex, but i cannot display any figures.

attached is a .zip file containing a master latex document (thesis.tex),
if you open, for example, the Appendix.tex file and UNcomment line14,
and run the script that i have made, named [typeset],
you will see what i mean ...

i would appreciate any help from you, because time is pressing me very much,
thank you.
 

Attachments

  • TeX.zip
    918.4 KB · Views: 203
PACKAGES:
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{color}

\usepackage{epsfig}
\usepackage[T1]{fontenc}
\usepackage{float}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{algorithm}
\usepackage{algorithmic}

\floatplacement{figure}{H}
\floatplacement{table}{H}

FORMAT:
yes, it is .eps files located in subdirectory _img

COMMAND:
\begin{figure}
\centering
\includegraphics{_img/mem_arch.eps}
\caption{Internal architecture of a typical memory.}
\label{img:mem_arch}
\end{figure}
\noindent

thanx for your interest
 
FORMAT:
yes, it is .eps files located in subdirectory _img

COMMAND:
\begin{figure}
\centering
\includegraphics{_img/mem_arch.eps}
\caption{Internal architecture of a typical memory.}
\label{img:mem_arch}
\end{figure}
\noindent

I don't think that's the right path. Try something like

Code:
\includegraphics{~/_img/mem_arch.eps}

or

Code:
\includegraphics{~/Desktop/_img/mem_arch.eps}

...or better yet just put the .tex file and the eps image in the same directory. That'll make your life a lot easier.
 
Ok, I typeset your document on my machine and the smaller images work fine. Are you sure that they'll fit on the page? Try something like
Code:
\includegraphics[width=0.5\textwidth]{_img/image.eps}

edit: oops, never mind. I hadn't un-commented the necessary lines :p Will look at this later.
 
Try using the epstopdf package. Your problem (at least as it seems for me) is that it doesn't like eps files. Adding this package fixes it for me.
 
Try using the epstopdf package. Your problem (at least as it seems for me) is that it doesn't like eps files. Adding this package fixes it for me.

thank you for the tip,
the preamble now contains has "\usepackage{epstopdf}"
but, did you used also anything different such as \DeclareGraphics{...}
or did you change the \includegraphics command at all,
it seems i am not able to make it display ...

thanx

PS. did you manage to display the figure A.1 ?
 
Apologies, epstopdf requires pdf(la)tex to work. If you have pdflatex (I guess you do) you can replace all occurrences of latex with pdflatex in your makefile. Even then it seems to have trouble with your traffic_model.eps image for some reason. I would recommend using pdf files instead of eps files.
 
i figure out the problem eventually,
some .eps files do not have a specified BoundingBox,
that why they do not appear at all whatever the format is.

now, the question is;
how do i create a BoundingBox in a .eps file ?
 
Do you have to use EPS figures? Why not convert them to PDF and use pdflatex? It's so much easier...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.