[Tugindia] RE: tugindia Digest, Vol 39, Issue 2
david
dowen at carib-link.net
Wed Mar 8 13:45:56 CET 2006
Hi, Everyone,
Thanks very much for your replies. I really appreciate them. Actually I
should have mentioned that I am at present working with Windows. What is
working is the "\graphicspath" method. Thanks Kumaresh.
Thanks again everybody. I shall now try your other suggestions with Linux.
Thank you all.
Regards,
David
-----Original Message-----
From: tugindia-bounces at tug.org [mailto:tugindia-bounces at tug.org] On Behalf
Of tugindia-request at tug.org
Sent: Wednesday, 08 March 2006 07:01 AM
To: tugindia at tug.org
Subject: tugindia Digest, Vol 39, Issue 2
Send tugindia mailing list submissions to
tugindia at tug.org
To subscribe or unsubscribe via the World Wide Web, visit
http://tug.org/mailman/listinfo/tugindia
or, via email, send a message with subject or body 'help' to
tugindia-request at tug.org
You can reach the person managing the list at
tugindia-owner at tug.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of tugindia digest..."
Today's Topics:
1. using \includegraphics (david)
2. Re: using \includegraphics (Raj Singh)
3. Re: using \includegraphics (Josy P. Pullockara)
4. Re: using \includegraphics (Kumaresh P)
----------------------------------------------------------------------
Message: 1
Date: Tue, 7 Mar 2006 14:51:56 -0400
From: "david" <dowen at carib-link.net>
Subject: [Tugindia] using \includegraphics
To: <tugindia at tug.org>
Message-ID: <200603071851.k27Ipo3U016460 at ns1.carib-link.net>
Content-Type: text/plain; charset="us-ascii"
Hi, Everyone,
I have a little problem which I think is trivial but I am unable to solve
it. It is as follows:
I wish to include graphics in a latex file. When I use the
"includegraphics.." statement I find that the .eps file has to be in the
same folder as the latex file. This is OK. But suppose I have several .eps
files with the same name and do not want to change the names. I have tried
putting them into different folders but have not been able to write the
correct filepath. I have made several attempts but they did not work.
Can someone tell me what to do? I will appreciate it very much.
Thanks.
D.Owen
------------------------------
Message: 2
Date: Wed, 8 Mar 2006 10:06:09 +0530
From: "Raj Singh" <raj.ceeri at gmail.com>
Subject: Re: [Tugindia] using \includegraphics
To: "TUGIndia Mailing List" <tugindia at tug.org>
Cc: dowen at carib-link.net
Message-ID:
<2dddd7580603072036j1aa2129eu81cb32e51ad1c201 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
David,
> suppose I have several .eps files with the same name and do not want to
change the names. I > have tried putting them into different folders but
have not been able to write the correct filepath. I > have made several
attempts but they did not work.
You need to give the full path or the relative path of the .eps files.
In Unix/Linux environment it is
\includegraphics{epsfiles/my1.eps}
Similar method is likely to hold true for Windows environment as well.
It will be
\includegraphics{epsfiles\my1.eps}
I hope this helps.
-- Raj
------------------------------
Message: 3
Date: Wed, 08 Mar 2006 11:09:13 +0530
From: "Josy P. Pullockara" <josy at ctfd.cmmacs.ernet.in>
Subject: Re: [Tugindia] using \includegraphics
To: TUGIndia Mailing List <tugindia at tug.org>
Message-ID: <1141796353.8695.20.camel at ibmpc2.ctfd.cmmacs.ernet.in>
Content-Type: text/plain
On Tue, 2006-03-07 at 14:51 -0400, david wrote:
> I wish to include graphics in a latex file. When I use the
> "includegraphics.." statement I find that the .eps file has to be in the
> same folder as the latex file. This is OK. But suppose I have several .eps
> files with the same name and do not want to change the names. I have tried
> putting them into different folders but have not been able to write the
> correct filepath. I have made several attempts but they did not work.
It would be nice if you can provide the simplified sample LaTeX file so
that the problem (to me looks trivial) is clear. Check whether the
following serves your purpose.
\documentclass{article}
\usepackage{graphics} % or graphicx
\begin{document}
\includegraphics{dir1/figure.eps}
\includegraphics{dir2/figure.eps}
\end{document}
works perfectly for me. Note dir1 and dir2 can be in the same folder as
the LaTeX file or in the TEXINPUTS search path.
Regards.
--
Josy P. Pullockara <josy at ctfd.cmmacs.ernet.in>
National Aerospace Laboratories
------------------------------
Message: 4
Date: Wed, 8 Mar 2006 13:50:18 +0530
From: "Kumaresh P" <pskumaresh06 at gmail.com>
Subject: [Tugindia] Re: using \includegraphics
To: "TUGIndia Mailing List" <tugindia at tug.org>
Cc: dowen at carib-link.net
Message-ID:
<6a5aef400603080020l56d6783dq77572ad43bbc2dd at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Dear All,
Have a great day!
I can give one idea, to include the figures those in separate folders.
Add the below command in preamble and add the figures path.
\graphicspath{
{Figures path, where the figures contains}
{Figures path, where the figures contains}
{Figures path, where the figures contains}
}
Example:
\documentclass{article}
\usepackage{graphics} % or graphicx
\graphicspath{
{dir1/}%if it didn't combile, then you add the full path
{dir2/}
}
\begin{document}
\includegraphics{figure.eps}
\includegraphics{figure1.eps}
\end{document}
Now you couldn't add the full path of the figure in every figure, but one
condition figures name should not be same.
Thanks
Try this one.
Best
Kumaresh PS
_____________________________________________________________
David wrote:
_____________________________________________________________
Hi, Everyone,
I have a little problem which I think is trivial but I am unable to solve
it. It is as follows:
I wish to include graphics in a latex file. When I use the
"includegraphics.." statement I find that the .eps file has to be in the
same folder as the latex file. This is OK. But suppose I have several .eps
files with the same name and do not want to change the names. I have tried
putting them into different folders but have not been able to write the
correct filepath. I have made several attempts but they did not work.
Can someone tell me what to do? I will appreciate it very much.
Thanks.
D.Owen
_____________________________________________________________
"Raj Replied to David:"
_____________________________________________________________
David,
> suppose I have several .eps files with the same name and do not want to
change the names. I > have tried putting them into different folders but
have not been able to write the correct filepath. I > have made several
attempts but they did not work.
You need to give the full path or the relative path of the .eps files.
In Unix/Linux environment it is
\includegraphics{epsfiles/my1.eps}
Similar method is likely to hold true for Windows environment as well.
It will be
\includegraphics{epsfiles\my1.eps}
I hope this helps.
-- Raj
_____________________________________________________________
Josy's reply
_____________________________________________________________
On Tue, 2006-03-07 at 14:51 -0400, david wrote:
> I wish to include graphics in a latex file. When I use the
> "includegraphics.." statement I find that the .eps file has to be in the
> same folder as the latex file. This is OK. But suppose I have several .eps
> files with the same name and do not want to change the names. I have tried
> putting them into different folders but have not been able to write the
> correct filepath. I have made several attempts but they did not work.
It would be nice if you can provide the simplified sample LaTeX file so
that the problem (to me looks trivial) is clear. Check whether the
following serves your purpose.
\documentclass{article}
\usepackage{graphics} % or graphicx
\begin{document}
\includegraphics{dir1/figure.eps}
\includegraphics{dir2/figure.eps}
\end{document}
works perfectly for me. Note dir1 and dir2 can be in the same folder as
the LaTeX file or in the TEXINPUTS search path.
Regards.
--
Josy P. Pullockara
------------------------------
_______________________________________________
tugindia mailing list
tugindia at tug.org
http://tug.org/mailman/listinfo/tugindia
End of tugindia Digest, Vol 39, Issue 2
***************************************
More information about the tugindia
mailing list