Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2511 > unrolled thread
| Started by | Roshni Rajkumari <rajkumari.roshni@gmail.com> |
|---|---|
| First post | 2014-07-10 23:25 -0700 |
| Last post | 2014-08-13 14:44 +0200 |
| Articles | 6 — 6 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
how to include graphics in latex in linux Roshni Rajkumari <rajkumari.roshni@gmail.com> - 2014-07-10 23:25 -0700
Re: how to include graphics in latex in linux zariya.tuhina@gmail.com - 2014-07-21 22:39 -0700
Re: how to include graphics in latex in linux James <jjpuzzles@wowway.com> - 2014-07-22 06:19 -0700
Re: how to include graphics in latex in linux Karl <mail.kfr@gmx.net> - 2014-07-22 17:04 +0200
Re: how to include graphics in latex in linux Dan Luecking <LookInSig@uark.edu> - 2014-07-23 14:32 -0500
Re: how to include graphics in latex in linux giacomo boffi <pecore@pascolo.net> - 2014-08-13 14:44 +0200
| From | Roshni Rajkumari <rajkumari.roshni@gmail.com> |
|---|---|
| Date | 2014-07-10 23:25 -0700 |
| Subject | how to include graphics in latex in linux |
| Message-ID | <281c8dcb-3805-44bb-83bc-25904e617712@googlegroups.com> |
\begin{figure}[h!]
\centering
\includegraphics[width=4.0in]{PayShirk}
\caption{Payoff of a cooperating }
\label{figurePayShirk}
\end{figure}
while doing this in miktek m getting proper output..the figure is saved in png format..
But its not working in linux environment..Do i have to save my figure in .eps format??
each time its coming figure not found even if i save my figure in .eps format.
Please help
[toc] | [next] | [standalone]
| From | zariya.tuhina@gmail.com |
|---|---|
| Date | 2014-07-21 22:39 -0700 |
| Message-ID | <0e186b75-778f-4311-8d13-89cd0b93a08f@googlegroups.com> |
| In reply to | #2511 |
On Friday, July 11, 2014 11:55:47 AM UTC+5:30, Roshni Rajkumari wrote:
> \begin{figure}[h!]
>
> \centering
>
> \includegraphics[width=4.0in]{PayShirk}
>
> \caption{Payoff of a cooperating }
>
> \label{figurePayShirk}
>
> \end{figure}
>
>
>
> while doing this in miktek m getting proper output..the figure is saved in png format..
>
>
>
> But its not working in linux environment..Do i have to save my figure in .eps format??
>
>
>
> each time its coming figure not found even if i save my figure in .eps format.
>
>
>
> Please help
Did you include the following line
\usepackage{graphicx}
[toc] | [prev] | [next] | [standalone]
| From | James <jjpuzzles@wowway.com> |
|---|---|
| Date | 2014-07-22 06:19 -0700 |
| Message-ID | <fc4a2005-aa4e-418d-88cc-c8e8cfea6a72@googlegroups.com> |
| In reply to | #2511 |
On Friday, July 11, 2014 2:25:47 AM UTC-4, Roshni Rajkumari wrote: > But its not working in linux environment..Do i have to save my figure in .eps format?? comp.text.tex would be a better group for this question. James
[toc] | [prev] | [next] | [standalone]
| From | Karl <mail.kfr@gmx.net> |
|---|---|
| Date | 2014-07-22 17:04 +0200 |
| Message-ID | <lqluat$aiq$1@news.rz.uni-karlsruhe.de> |
| In reply to | #2511 |
Am 11.07.2014 08:25, schrieb Roshni Rajkumari:
> \begin{figure}[h!]
> \centering
> \includegraphics[width=4.0in]{PayShirk}
> \caption{Payoff of a cooperating }
> \label{figurePayShirk}
> \end{figure}
>
> while doing this in miktek m getting proper output..the figure is saved in png format..
>
> But its not working in linux environment..Do i have to save my figure in .eps format??
>
> each time its coming figure not found even if i save my figure in .eps format.
>
> Please help
>
I expect you are are using pdflatex?
png´s need some helper program for inclusion in pdflatex i think, you
probably don´t have that installed on your linux system. it surely is
available, though.
eps cannot be used with pdflatex, you can either have pdflatex trigger
an automatic conversion to pdf, or directly use the pdfcairo terminal in
gnuplot.
In all cases, a quick web search for "pdflatex <your latex distribution>
eps/png/pdf" will give you the necessary pointers.
Karl
[toc] | [prev] | [next] | [standalone]
| From | Dan Luecking <LookInSig@uark.edu> |
|---|---|
| Date | 2014-07-23 14:32 -0500 |
| Message-ID | <fi20t99ril9vt0pgpvrq2go9hc2pb2sog2@4ax.com> |
| In reply to | #2532 |
On Tue, 22 Jul 2014 17:04:17 +0200, Karl <mail.kfr@gmx.net> wrote:
>Am 11.07.2014 08:25, schrieb Roshni Rajkumari:
>> \begin{figure}[h!]
>> \centering
>> \includegraphics[width=4.0in]{PayShirk}
>> \caption{Payoff of a cooperating }
>> \label{figurePayShirk}
>> \end{figure}
>>
>> while doing this in miktek m getting proper output..the figure is saved in png format..
>>
>> But its not working in linux environment..Do i have to save my figure in .eps format??
>>
>> each time its coming figure not found even if i save my figure in .eps format.
>>
>> Please help
>>
>
>I expect you are are using pdflatex?
>
>png´s need some helper program for inclusion in pdflatex i think, you
>probably don´t have that installed on your linux system. it surely is
>available, though.
>eps cannot be used with pdflatex, you can either have pdflatex trigger
>an automatic conversion to pdf, or directly use the pdfcairo terminal in
>gnuplot.
PdfLaTeX handles the following without helper programs: PDF, PNG, JPEG
and MPS (eps output by metapost).
It will also handle eps transparently if the system configuration
allows tex to call epstopdf (i.e., shell-escape enabled, epstopdf.sty
loaded by graphics.cfg; this is the default in TeX Live since 2013).
In Linux it requires a preinstalled perl interpreter and ghostscript.
In windows, these are supplied with TeX Live.
>
>In all cases, a quick web search for "pdflatex <your latex distribution>
>eps/png/pdf" will give you the necessary pointers.
>
> Karl
Dan
To reply by email, change LookInSig to luecking
[toc] | [prev] | [next] | [standalone]
| From | giacomo boffi <pecore@pascolo.net> |
|---|---|
| Date | 2014-08-13 14:44 +0200 |
| Message-ID | <87lhqs5zk4.fsf@pascolo.net> |
| In reply to | #2511 |
Roshni Rajkumari <rajkumari.roshni@gmail.com> writes:
> [...] the figure is saved in png format
imho the finest "terminal", with regard to inclusion in a LaTeX
document, is cairolatex
in case you don't know about it, i'll give a very short intro
========================================================================
if you use in your gnuplot script
...
set terminal cairolatex {eps | pdf}
set output "file_1.tex"
...
set output
...
gnuplot produces a file named "file_1.tex" and either a "file_1.eps"
or a file "file_1.pdf", according to the option you specified when
setting the terminal, and you use them by having in your latex source
...
\usepackage{xcolor,graphicx}
...
\include{file_1} % NB the aside command it's not "\includegraphics"!
...
the beauty of that is,
- all the typesetting required in the figure is done by latex
(a) using the same font and the same math font used in your
document and
(b) with all the power of latex's math
- while the graphics elements proper, that in other latex aware
terminals are (slowly) drawn by latex itself, are delegated to
the screen/printer driver by inclusion of a vector graphics file
========================================================================
hth, ciao
g
--
Mangiate pure le vostre carote, noi mangeremo le nostre salsicce!
-- Claud, in IHC
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web