larskotthoff / gnuplottex

Gnuplot graphs in LaTeX. See http://www.ctan.org/pkg/gnuplottex
3 stars 1 forks source link

Gnuplottex wont plot and cant find `rm` or `touch`. #9

Closed talkalotsonius closed 4 years ago

talkalotsonius commented 6 years ago

I'm running Mac OS 10.10.5 with MacPorts Version 2.4.0 and gnuplottex ver. 0.9.2 with MacTex 2017 (also tested on MacTex 2015 - same result).

pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017)
kpathsea version 6.2.3
Copyright 2017 Han The Thanh (pdfTeX) et al.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.29; using libpng 1.6.29
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 3.04

I want to compile the following document

\documentclass[12pt,a4paper]{scrartcl}

\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
%\usepackage[T1]{fontenc} 
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{pdfpages}
\usepackage[pdftex]{thumbpdf}
\usepackage{epstopdf}
\usepackage{graphicx}
\usepackage{color}
\usepackage{float}
\usepackage{rotating}
\usepackage{hyperref}
\usepackage{wrapfig}
\usepackage{booktabs}
\usepackage{ltablex}
%\usepackage{tabularx}
\usepackage{mathtools}
%\usepackage{drawmatrix}
\usepackage{multirow}
\usepackage{chngcntr}

\usepackage{latexsym}
\usepackage{keyval}
\usepackage{ifthen}
\usepackage{moreverb}
%\usepackage{shellesc}

\usepackage{gnuplottex}

% custom identifiers

\makeatletter
\@addtoreset{section}{part}
\makeatother
[...]
\begin{document}
[...]
\newpage
\part{Mechanik}
\section{Mechanik von Massepunkten}
\begin{figure}[h]%
    \centering%
    \begin{gnuplot}[terminal=epslatex, terminaloptions=color dashed]
        plot  sin(x)
    \end{gnuplot}
    \caption{This is a simple example using the epslatex-terminal.}%
    \label{pic:epslatex}%
\end{figure}%
[...]

\end{document}

The log-file reveals: Package gnuplottex Warning: Shell escape not enabled. (gnuplottex) You'll need to convert the graphs yourself..

The pdftex warning output is:

Process started: /usr/texbin/pdflatex --shell-escape -synctex=1 -interaction=nonstopmode "abc".tex

sh: touch: command not found

system returned with code 32512

sh: rm: command not found

system returned with code 32512

sh: rm: command not found

system returned with code 32512

Process exited normally

It creates the dummy write18-test file and writes to it but after that it will not hand over any commands past that. So in fact ShellEscape works but it strange enough can't preform touch or rm.

total 3152
drwxr-xr-x@ 17 leifstolberg  staff   578B Jul 22 11:20 .
drwxr-xr-x@ 22 leifstolberg  staff   748B Jan  6  2017 ..
-rw-r--r--@  1 leifstolberg  staff   6.0K Jul 21 14:58 .DS_Store
-rw-r--r--@  1 leifstolberg  staff    42K Oct 31  2016 physics copy.tex
-rw-r--r--@  1 leifstolberg  staff    89B Jul 22 11:20 physics-gnuplottex-fig1.gnuplot
-rw-r--r--@  1 leifstolberg  staff    18K Jul 22 11:20 physics.aux
-rw-r--r--@  1 leifstolberg  staff   380K Jul 22 11:05 physics.dvi
-rw-r--r--@  1 leifstolberg  staff   108K Jul 22 11:20 physics.log
-rw-r--r--@  1 leifstolberg  staff   8.3K Jul 22 11:20 physics.out
-rw-r--r--@  1 leifstolberg  staff   372K Jul 22 11:20 physics.pdf
-rw-r--r--@  1 leifstolberg  staff   440K Jul 22 11:20 physics.synctex.gz
-rw-r--r--@  1 leifstolberg  staff   117K Jul 22 11:20 physics.tex
-rw-r--r--@  1 leifstolberg  staff    13K Jul 22 11:20 physics.toc
drwxr-xr-x@  9 leifstolberg  staff   306B Jul 21 12:56 tmp
**-rw-r--r--@  1 leifstolberg  staff     2B Jul 21 17:01 w18-test-2017721788.tex**
-rw-r--r--@  1 leifstolberg  staff    42K Oct 30  2016 zahlenmengen.jpg
larskotthoff commented 6 years ago

Can you post the path to the rm and touch commands please?

talkalotsonius commented 6 years ago

Hi, On Mac OS per default rm should be in /bin and touch should be in /usr/bin. FYI the working command echo is also in /bin.

total 3152
drwxr-xr-x@ 17 leifstolberg  staff   578B Jul 22 11:20 .
drwxr-xr-x@ 22 leifstolberg  staff   748B Jan  6  2017 ..
-rw-r--r--@  1 leifstolberg  staff   6.0K Jul 21 14:58 .DS_Store
drwxr-xr-x@ 76 leifstolberg  staff   2.5K Dec 24  2016 Mitschrieb SS14
-rw-r--r--@  1 leifstolberg  staff    42K Oct 31  2016 physics copy.tex
-rw-r--r--@  1 leifstolberg  staff    89B Jul 22 11:20 physics-gnuplottex-fig1.gnuplot
-rw-r--r--@  1 leifstolberg  staff    18K Jul 22 11:20 physics.aux
-rw-r--r--@  1 leifstolberg  staff   380K Jul 22 11:05 physics.dvi
-rw-r--r--@  1 leifstolberg  staff   108K Jul 22 11:20 physics.log
-rw-r--r--@  1 leifstolberg  staff   8.3K Jul 22 11:20 physics.out
-rw-r--r--@  1 leifstolberg  staff   372K Jul 22 11:20 physics.pdf
-rw-r--r--@  1 leifstolberg  staff   440K Jul 22 11:20 physics.synctex.gz
-rw-r--r--@  1 leifstolberg  staff   117K Jul 22 11:20 physics.tex
-rw-r--r--@  1 leifstolberg  staff    13K Jul 22 11:20 physics.toc
drwxr-xr-x@  9 leifstolberg  staff   306B Jul 21 12:56 tmp
-rw-r--r--@  1 leifstolberg  staff     2B Jul 21 17:01 w18-test-2017721788.tex
-rw-r--r--@  1 leifstolberg  staff    42K Oct 30  2016 zahlenmengen.jpg
leifstolberg@LeifBook:~/Dropbox/UNI/div/physforothers $ more w18-test-2017721788.tex 
t
larskotthoff commented 6 years ago

Hmm, I don't have a Mac to test this on. It should work if you simply disable shell escape and convert the graphs yourself though.