Graphics, Figures & Tables ⇒ .JPG and .eps images in the same file.
Re: .JPG and .eps images in the same file.
Regards,
sridhar
OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
.JPG and .eps images in the same file.
Sorry I have been away for a while...localghost wrote: Usually GnuPlot sets the right bounding box. But I don't know which terminal you are using for the output. When I used it to get my data sets plotted, I set the terminal to postscript.The GnuPlot manual shows that there are many more terminals (also pdf). The job is simplified by using the gnuplottex package. Nowadays I use pgfplots (based on pgf/tikZ) or pstricks to generate plots. The advantage is a better consistency of the whole document since the default font is used.Code: Select all
set term post eps enhanced
I am using:
Code: Select all
set term post eps enhanced
Re: .JPG and .eps images in the same file.
I am trying to use gnoplottex for my graphs. I have a problem. When I compile I get the error Shell escape not enabled. I am using the --enable-write18 in the field 'Command line arguments to pass to the compiler' for the output profile I am using (LaTeX to pdf).
any suggestions?
thanks
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
.JPG and .eps images in the same file.
Code: Select all
\usepackage[miktex]{gnuplottex}
There is some preliminary work to do before everything works fine. These steps require that you know how to handle your operating system. The file REAMDE.Windows in the Gnuplot archive suggests to use the pgnuplot.exe executable for external calls. Rename this file to gnuplot.exe so that the compiler can find it. But that is not enough. The path to the Gnuplot executables has to be added to the PATH environment variable of your system.
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
.JPG and .eps images in the same file.
I did everything you said. Renamed pgnuplot.exe to gnuplot.exe, set the environment variable path to the bin folder of gnuplot.
I have a doubt about the terminal. I set the terminal as follows in my .tex file:
Code: Select all
\begin{gnuplot}[terminal=pdf]
plot sin(x)
\end{gnuplot}
I still get the following warning:
"package gnuplottex Waring:Conversion of thesys-gnuplottex-fig1.gnuplot failed. please convert thesys-gnuplottex-fig1.gnuplot manually".
At least I don't get the "shell escape not enabled" warning any more.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: .JPG and .eps images in the same file.
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10