Deepak Jha | 5 Apr 20:00 2005
Picon

Problem with paths for images in latex

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. {

Darío Gabriel Pérez | 5 Apr 20:20 2005
Picon

Re: Problem with paths for images in latex

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

Do you Yahoo!?
Better first dates. More second dates. Yahoo! Personals


Hugh S. Myers | 5 Apr 21:17 2005

Off the Map?

Where should I put the map file that I refer to in updmap.cfg? I have some
postscript type 1 fonts that I'm adding and I can't seem to get psfont.map
to properly update unless I piggy back on an established map file. As far as
I can see, all of the map files seem to be in the texmf tree, rather than
the localtexmf tree. Regardless, nowhere that I have tried to this point
seems to work with 'initexmf --mkmaps'. I verified this by running it in
verbose mode. Any clues or pointers would be nice.

--hsm

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Deepak Jha | 5 Apr 22:01 2005
Picon

Re: Problem with paths for images in latex

Thanks Dario,
 
So summarizing this , You mean if I create and manage my tex documents in any subfolder , anywhere in my comp irrespective of the temp TEX folder and the TEX main folder created while installing miktex, then I can put my images there directly or in subfolders.
 
Now do I have to include (by going to miktex settings) the folders where I am creating my TEX docs, in folders list?
 
Another question, what if I want to keep all images in one place and want to refer  it to different TEX docs stored someplace NOT where my images are stored, i mean lets take an example...
 
miktex installation dir : C:\DJ\MIKTEX_INSTALL
tex docs                   : C:\DJ\MIKTEX_INSTALL\1 TEX DOCUMENTS
images                     : C:\DJ\THESIS CS\IMAGES
 
Now as you can see all my TEX docs are already inside the TEMP TEX installtion dir, but all my images are out somewhere else, I go your point that if I shift all my images inside this TEMP TEX DIR where my docs are, I acn use them as {image01.jpg} or {\images\image01.jpg}, BUT is there anyway I can directly reference these images without shifting them, because some programs (other than TEX) might be also dependent on the path where my images are stored, and If I shift them then I will need to change settings in those programs, I mean I can do it but if the above is possible then it wil be sweet..
 
again, thanks for the reply....
 
deepak jha
 
 
 
 
 
 
 
 
 


Dar Gabriel Pérez <dario.gabriel.perez <at> gmail.com> 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

Do you Yahoo!?
Better first dates. More second dates. Yahoo! Personals


Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search. Learn more.
Hans F. Nordhaug | 5 Apr 22:03 2005
Picon
Picon

Re: Off the Map?

On Tue, Apr 05, 2005 at 01:17:50PM -0600, Hugh S. Myers wrote:
> Where should I put the map file that I refer to in updmap.cfg? I have some
> postscript type 1 fonts that I'm adding and I can't seem to get psfont.map
> to properly update unless I piggy back on an established map file. As far as
> I can see, all of the map files seem to be in the texmf tree, rather than
> the localtexmf tree. Regardless, nowhere that I have tried to this point
> seems to work with 'initexmf --mkmaps'. I verified this by running it in
> verbose mode. Any clues or pointers would be nice.

Put your local map files into localtexmf\fonts\map\ You probably have
to create the directory. Then run:

  initexmf -u 
  initexmf --mkmaps

That should do it.

Hans

PS! Some info on where font files should go 
    <http://tds.tug.org/tds/tds.html#Fonts>

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Cornelius C. Noack | 5 Apr 22:10 2005
Picon
Picon

Re: Problem with paths for images in latex

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
.................................................................
Hans F. Nordhaug | 5 Apr 22:17 2005
Picon
Picon

Re: Problem with paths for images in latex

On Tue, Apr 05, 2005 at 11:00:58AM -0700, Deepak Jha wrote:
> 
> 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 
[cut]

Do you mean local texmf directory? If so, that is a really bad idea,
because then you have to update the filename database everytime you
add another image - very inconvenient. Please don't put your images
in a texmf tree/directory.

> Please advise, as I am new to this thing.

How about reading some docs? From the TeX FAQ:
<http://www.tex.ac.uk/cgi-bin/texfaq2html?label=impgraph> (1)
<http://www.tex.ac.uk/cgi-bin/texfaq2html?label=graphicspath>
<http://www.tex.ac.uk/cgi-bin/texfaq2html?label=graph-pspdf>

In particular read page 26-28 of
<http://www.ctan.org/tex-archive/info/epslatex.pdf>
which should solve your problem. NB! Unfortunately the "TEX search
path" / TEXINPUTS solution isn't currently supported on MiKTeX.

Regards,
Hans

(1) This FAQ entry points to epslatex.pdf... 

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Cornelius C. Noack | 5 Apr 22:30 2005
Picon
Picon

Re: Problem with paths for images in latex

On Tue, 5 Apr 2005, Deepak Jha wrote:

> Thanks Dario,
>
> So summarizing this , You mean if I create and manage my tex documents in any subfolder , anywhere in my comp
irrespective of the temp TEX folder and the TEX main folder created while installing miktex, then I can put
my images there directly or in subfolders.
>
> Now do I have to include (by going to miktex settings) the folders where I am creating my TEX docs, in folders list?
>
> Another question, what if I want to keep all images in one place and want to refer  it to different TEX docs
stored someplace NOT where my images are stored, i mean lets take an example...
>
> miktex installation dir : C:\DJ\MIKTEX_INSTALL
> tex docs                   : C:\DJ\MIKTEX_INSTALL\1 TEX DOCUMENTS
> images                     : C:\DJ\THESIS CS\IMAGES
>
> Now as you can see all my TEX docs are already inside the TEMP TEX installtion dir, but all my images are out
somewhere else, I go your point that if I shift all my images inside this TEMP TEX DIR where my docs are, I acn
use them as {image01.jpg} or {\images\image01.jpg}, BUT is there anyway I can directly reference these
images without shifting them, because some programs (other than TEX) might be also dependent on the path
where my images are stored, and If I shift them then I will need to change settings in those programs, I mean I
can do it but if the above is possible then it wil be sweet..
>
> again, thanks for the reply....
>
> deepak jha
>
> (cut)
>
3 additional remarks:
    1) I repeat: DON'T use the backslashes in file names within TeX
       (even as you are in a Windows operating system)! [You have
       done that in your above example.] TeX/MikTeX is
       clever enough to to understand the (Unix-style) path
       indicator "/", independent of the operating system . This
       holds for any kind of TeX file name use, not only graphices
       --- you can, e.g., say \input{/myfiles/docs/thesis.tex}

    2) I admit it's a matter of taste; but I consider it bad
       practice to mix in your personal TeX source files in the TDS
       (TeX Directory System). It's better to consider the TeX
       files (including style files) as "programs", and your
       document source files as "data". If you write your own style
       file(s), the belong into the /localtexmf part of the TeX
       directory.

    3) NEVER PUT PERSONAL STUFF in the \texmf part of the TDS !
       It'll get lost and/or mixed up whenever you update MikTeX!

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
.................................................................

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Hugh S. Myers | 5 Apr 23:36 2005

RE: Off the Map?

Thanks Hans,

I must not clearly understand. I placed a .map file in localtexmf\fonts\map
as you suggested and then ran initexmf -u and initexmf --verbose --mkmaps
only to see yet again that --mkmaps ignores all .map fonts not in the texmf
tree. This leads me to believe that somehow if messed up the updmap.cfg
placement. Where should it go?

--hsm

> -----Original Message-----
> From: miktex-users-admin <at> lists.sourceforge.net [mailto:miktex-users-
> admin <at> lists.sourceforge.net] On Behalf Of Hans F. Nordhaug
> Sent: Tuesday, April 05, 2005 2:03 PM
> To: miktex-users <at> lists.sourceforge.net
> Subject: Re: [MiKTeX] Off the Map?
> 
> On Tue, Apr 05, 2005 at 01:17:50PM -0600, Hugh S. Myers wrote:
> > Where should I put the map file that I refer to in updmap.cfg? I have
> some
> > postscript type 1 fonts that I'm adding and I can't seem to get
> psfont.map
> > to properly update unless I piggy back on an established map file. As
> far as
> > I can see, all of the map files seem to be in the texmf tree, rather
> than
> > the localtexmf tree. Regardless, nowhere that I have tried to this point
> > seems to work with 'initexmf --mkmaps'. I verified this by running it in
> > verbose mode. Any clues or pointers would be nice.
> 
> Put your local map files into localtexmf\fonts\map\ You probably have
> to create the directory. Then run:
> 
>   initexmf -u
>   initexmf --mkmaps
> 
> That should do it.
> 
> Hans
> 
> PS! Some info on where font files should go
>     <http://tds.tug.org/tds/tds.html#Fonts>
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> MiKTeX-Users mailing list
> MiKTeX-Users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/miktex-users

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Deepak Jha | 5 Apr 23:44 2005
Picon

Re: Problem with paths for images in latex

Thanks Hans,
 
Awesome find, I needed the pdf on image importing, as u mentioned I checked out the document and found the difference between 2 methods of directory searching, and I guess the best one TEXINPUTS is the one I want to change to include directories I wanna my image files to put in.
 
BUT the problem is that document doesn't discuss about how to change TEXINPUTS in windows, unlucky for users like me.. Any suggestion are welcome, I know there must be some config file, but WHICH ONE ? is the milion dollar question here...
 
Thanks to all for taking time out for quick responses....
Dar Gabriel Pérez
Cornelius C. Noack
Hans F. Nordhaug
 
-------------
deepak jha
-------------

"Hans F. Nordhaug" <Hans.F.Nordhaug <at> hiMolde.no> wrote:
On Tue, Apr 05, 2005 at 11:00:58AM -0700, Deepak Jha wrote:
>
> 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
[cut]

Do you mean local texmf directory? If so, that is a really bad idea,
because then you have to update the filename database everytime you
add another image - very inconvenient. Please don't put your images
in a texmf tree/directory.

> Please advise, as I am new to this thing.

How about reading some docs? From the TeX FAQ:
(1)



In particular read page 26-28 of

which should solve your problem. NB! Unfortunately the "TEX search
path" / TEXINPUTS solution isn't currently supported on MiKTeX.

Regards,
Hans

(1) This FAQ entry points to epslatex.pdf...


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
MiKTeX-Users mailing list
MiKTeX-Users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/miktex-users

Do you Yahoo!?
Better first dates. More second dates. Yahoo! Personals

Gmane