Re: Problem with paths for images in latex
Cornelius C. Noack <noack <at> itp.uni-bremen.de>
2005-04-05 20:10:52 GMT
On Tue, 5 Apr 2005, Darío Gabriel Pérez wrote:
> Hi,
> I have all my latex docs in a subfolder at "my documents". There I create a
> folder for each manuscript. So in the same folder the .tex file is I put its
> images. Therefore, I just write:
> \begin{figure}[!ht]
> \begin{center}
> .
> .
> .
> \includegraphics[width=.80\textwidth]{figure01p.ps}
> \caption{Ojo de Gullstrand N$^\circ$2: $n=1.0$, $n'=4/3$, $\mu=1.416$,
> $C_1=+0.2$\textup{mm}$^{-1}$,$C_2=+-.2$\textup{mm}$^{-1}$, y $C_3=-
> 0.1282$\textup{mm}$^{-1}$ \label{fig:01p}}
> \end{center}
> \end{figure}
>
> There are no problems. Just put your final images in the same directory
> where you are writing your manuscript.
> On Apr 5, 2005 2:00 PM, Deepak Jha <djmjashofficial <at> yahoo.com> wrote:
>>
>> Hi,
>>
>> I have one problem, whenever I have searched for examples online,
>> regarding inclusion of images, I came across only those which have used the
>> image and have stored it in the local TEX directory, or made a directory
>> inside the local TEX directory, so that they can either directly reference
>> the image file like {image01.jpg} or with a relative path
>> {/images/myresearch/image01.jpg}, but I wanted to know if something like
>> this is possible (using the absolute path, i.e.
>> {"c:/research/csresearch/pca/nasa/images/myresearch/image01.jpg"} ) .
>>
>> I mean I have tried many different combinations (all by trial only) but
>> it doesn't seem to work. I am guessing that it needs some extra settings to
>> be done or changed. I ALSO TRIED INCLUDING THE DIRECTORY IN WHICH MY IMAGES
>> ARE STORED IN THE LOCAL DIRECTORY LISTS THROUGH MIKTEX, DIDN'T WORK.
>>
>> Please advise, as I am new to this thing.
>>
>> Thanks a lot in advance.
>>
>> deepak jha
>>
As long as your files are on the same disk as your (TeX or LaTeX)
source, there shouldn't be any problem with an absolute path; I
have, e.g.,
\includegraphics*{/.user/physics/Kurse/coursehb.eps}
where .user is the 1st subfolder (subdirectory) of the root
directory (e.g. C:\ in Windows). just remember NEVER TO USE \
(backslash) as a path indicator (because TeX takes it as a TeX
command indicator)!
ccn.
--
.................................................................
Prof.Dr. Cornelius C. Noack Phones:
Inst. f. Theor. Physik FB 1 office : +49 (421) 218-2427
Universit"at Bremen secretary: -2422
Otto-Hahn-Allee Fax : -4869
D - 28334 Bremen home : +49 (421) 34 22 36
Fax: 346 7872
E-mail: noack at itp.uni-bremen.de or ccnoack at mailaps.org
WWW-page: www.itp.uni-bremen.de/~noack
.................................................................