{shell-escape} is about the “--shell-escape” argument, i.e. to enable external running of commands from inside the ‘.tex’ file.

learn more… | top users | synonyms (1)

0
votes
0answers
21 views

How to remove restricted \write18 in kile

I am new in latex world. I am using Ubuntu 14.04 and kile2.1.3. I am trying to edit a tex file in the folder given by somebody. It is the tesis format of one of the University. After I edit the ...
5
votes
1answer
74 views

copy finalised PDF to new directory

I want to automatically make a copy of the finalised PDF in a new directory once it is compiled. As part of my workflow, each article (of my thesis) (and the associated graphics) is stored in its own ...
4
votes
1answer
57 views

\includesvg produces “No room for a new \read”

I've already searched a lot about it and I'm aware of both questions "No room for a new \read" with writing a journal and No room for a new \read/\write. Still, I couldn't find a solution to ...
2
votes
0answers
52 views

Problem importing eps files with auto-pst-pdf

First post, so I hope I'm doing it right. I use Windows 7, TexMaker, MikTex 2.9. TexMaker and MikTex are newly reinstalled, and that's where the problem started. It worked before, but not now. I ...
0
votes
0answers
89 views

plink 'Invalid handle': how to redirect stdin and stdout?

In my tex file I want to call plink (command line application for PuTTY) in order to execute a remote command and read the output. When I do this I get an error 'Unable to read from standard input: ...
3
votes
3answers
79 views

\input{} as argument for \inputgraphic{}

I got a question very similar to this post (\includegraphics{\input{|shell command}}) which unfortunately hasn't been really answered. The aim is to make a command that invokes a python script to ...
0
votes
0answers
133 views

Feynmp-auto: why is the diagram not included in the pdf file?

When trying to draw a Feynman diagram using the feynmp-auto package, there simply is no result, the pdf comes out as a blank page. I use TeXstudio and MikTeX, and run the file with pdflatex. I have ...
14
votes
2answers
176 views

Is there any way to interact with the shell but keep the same session open?

I'm preparing some course material (PDF) for a tutorial that involves the Unix command line. Because I strive for automation (some call that laziness), I've written a little package that allows me, ...
0
votes
0answers
25 views

Help with using /pstool with sibling directories by moving files to the auxilary directory

Broadly, I want to achieve the pstool equivalent of \graphicspath (which is a known issue when working with non-sub directories). As far as I can tell, the only solution without changing openout_any ...
3
votes
2answers
60 views

makeindex and restricted \write18

I use the nomenclature package to create nomenclature sections for my papers. I haven't done a paper in a while with a nomenclature, but today it is not working. In order to use the nomenclature ...
0
votes
0answers
208 views

pdflatex error \write18 and pdflatex.fmt not found

I have a TexLive 2014, but it doesn't work as I expected! It's seem to be an issu ever seen but I don't understand what can I do! This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) ...
2
votes
1answer
257 views

How to do shell-escape in TeXWorks?

I know this question has been asked a lot of times, however I can't seem to fix my problem. My problem is as follows, I am using MikTex 2.9 and TeXWorks and I try to add the --enable-write18 to enable ...
2
votes
1answer
213 views

xelatex -shell-escape permission

I'm quite confused what means -shell-escape option. I'm trying to beutify creating my tikz images (differently from editing PDFs in Photoshop). I'm using xelatex and TeXnicCenter. I haven't read shell ...
5
votes
2answers
110 views

Timing response of externally called commands via write18: blocking or not?

I was wondering: when we use \immediate\write18{...} to run commands in an external shell from Latex, is the \write18 a blocking call or not? In other words, will it wait for the external code to ...
1
vote
1answer
214 views

“Shell escape not enabled” error, even though write18 is enabled

I have enabled write18 by telling TeXlipse to call pdfLaTeX using the --enable-write18 option. However, this does not seem to work properly. The code \documentclass{scrartcl} \usepackage{tikz} ...
1
vote
0answers
253 views

externalize pfgplots fails with shell escape enabled (TexLive-2013 Mac)

I have the following Problem: I am using matlab2tikz to get my Matlab plots into latex. I have very large time series, that i already cut down using resampling. Nevertheless my I need a lot more time ...
3
votes
1answer
167 views

\write18 encoding

I wrote a bash script osmimage (source for tests), that downloads a map given by an address. I want to write a package that calls this script with \write18, but there are a few problems. The ...
6
votes
1answer
118 views

How to adapt a batch-script / write18-call to Linux systems

I want to compile a bunch of (independent) documents from a main.tex file. The documents are in subfolders and as they can load input files and graphics from other subfolders I need to change the ...
4
votes
1answer
229 views

Can't enable shell-escape

I've been trying to add the --shell-escape argument to my pdflatex, and right about nothing works. I'll summarize what I've done so far: Add --shell-escape to existing pdflatex.exe Add ...
0
votes
0answers
300 views

pgfplots + gnuplot not working, shell escape and windows PATH are ok

I'm trying to get pgfplots to work with gnuplot to get this answer to work (i.e. triangulate a surface from a set of points). Shell escape was already enabled since I use TikZ externalization. gnuplot ...
19
votes
4answers
398 views

Two pdf versions from one single .TEX file?

I publish a lot for science journals and some of them are very strict on the number of pages your manuscript will be, as usual the final version of the articles is double column but for review and ...
2
votes
1answer
101 views

-shell-escape for gnuplot: it does not works when I launch pdflatex programatically

The situation and the issue When I launch pdflatex from another program, programatically, it seems that, even with the option -shell-escape, I am not able to launch gnuplot. I have asked to ...
6
votes
1answer
719 views

Custom Build Settings in Sublime

I'm using LatexTools for Sublime 2. I want to add the parameter -shell-escape to the build command, but struggling. The documentation says not to edit 'LaTeX.sublime-build', but to edit ...
2
votes
1answer
84 views

Toggle permission to use shell escape in document itself

Permitting LaTeX to execute shell code (aka -enable-write-18) is dangerous. But I sometimes need it due to dot2texi. So in my IDE (which in my case is WinEdt) I manually switch it on when I work ...
6
votes
0answers
247 views

Where and how to enable '--shell-escape' or '--enable-write18' of pdflatex.exe in LaTeXTools of Sublime Text?

I know how to deal with the problem with the older version of LaTeXTools. But recently LaTeXTools has been updated, which turn out to deprive me of knowing what to do. I use Windows+MikTex, by the ...
3
votes
1answer
112 views

Generate .1 files from MetaUML .mp files automatically with latexmk

I'm currently creating a personal LaTeX package and base .tex document that I can use to typeset my Computer Science reports at my university. One of the features I would like to have is to make UML ...
3
votes
2answers
95 views

copy file using \write18 that works on both Windows and Unix

I would like to make an exact copy of a file during a TeX run. It is important that the copy be exact, since I am also comparing files and taking action depending on whether they have exactly the same ...
1
vote
0answers
222 views

restricted write18 is preventing the command: runsystem(gnuplot filename.gnuplot) from being executed

That pretty much says it all. I'm on a mac, using Texmaker, gnuplot works well with aquaterm, I can pass code for diagrams from GeoGebra (geometry package) that works fine. It seems like using ...
5
votes
1answer
1k views

Setting up LaTeX -> DVIPS -> PS2PDF with Shell-Escape (in TeXStudio)

I am trying to set up a "user command" on TeXStudio with the purpose of compiling with shell-escape and the LaTeX -> DviPs -> Ps2Pdf cycle. This is what I have done to get shell-escape to work ...
4
votes
2answers
149 views

How to deal with macro expansion and 'TeX capacity exceeded' when using write18?

This issue is driving me nuts. Ever since the friendly and knowledgeable people here on tex SE have guided me to doing multiple string replacements the proper way, I've been trying to incorporate that ...
4
votes
1answer
224 views

how to execute external commands from (Xe)(La)TeX?

i'm trying to capture output from an external command in a XeLaTeX document. as per http://tex.stackexchange.com/a/20566/28067 and http://stackoverflow.com/a/8929976/256361, i'm specifically doing ...
5
votes
1answer
132 views

External inline filters, markdown, latex, beamer, and standards

I read Converting Markdown to LaTeX, in LaTeX and a couple of related posts. They are about a year old. is there now a quasi-standard package that enables generic filter plugins, allowed if ...
5
votes
1answer
185 views

\includegraphics{\input{|shell command}}

I want define a command "\foo" which outputs the result of a shell command, such as: \newcommand{\foo}[1]{\input{|"#1"}} This works, except if I'm trying to use this command in the context of ...
4
votes
1answer
422 views

Use restricted-shell-escape with TexStudio on TexLive?

The package auto-pst-pdf.sty needs shell-escape to run, but shell escape is known to be seriously unsafe. Is there a possibility to tell auto-pst-pdf.sty to use restricted-shell-escape instead? I'm ...
23
votes
3answers
462 views

How to compile the same input file for each of LaTeX font packages installed in our machine?

Inspired by my question How to create a PDF presentation for each available Beamer theme automatically?, now I want to compile my input file for each available LaTeX font package installed in my ...
4
votes
1answer
96 views

Why does \includegraphics[\varone]{\vartwo} not compile?

I want to convert each EPS image imported from within the input file to a PDF version and save it with its original name separately. The code below simulates the real condition in which we don't want ...
1
vote
1answer
104 views

External command visibility in Texmaker

How commands defined in my shell RC file (e.g. .bashrc) can be made visible to Texmaker? Consider the following code: \begin{tikzpicture} \begin{axis} \addplot shell {python -c 'print 0,0'}; ...
2
votes
1answer
223 views

Programmatically load an image from LyX

Following the accepted answer to this question: Can I use an image located on the web in a LaTeX document? I am trying to insert the following code to a trivial LyX document: \write18{wget ...
1
vote
1answer
490 views

shell-escape is not enabled with emacs

I use Emacs as an editor, and I would like to compile a file that contains PSTricks code with LuaLaTeX. The version of Emacs is : GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.18). My ...
5
votes
2answers
1k views

How to enable --shell-escape when using pdflatexmk?

I want to use the auto-pst-pdf package and therefore I need the --shell-escape option to be enabled. I did this in my TeXShop preferences as follows: However when I use pdflatexmk (by writing % ...
25
votes
1answer
863 views

How to make pdfLaTeX multithreaded when `--shell-escape` is enabled?

I am using \write18 enabled (or --shell-escape) with externalization to compile a bunch of PGFplots. The first run takes much time, and I noticed that pdflatex only runs on one CPU core. Is there any ...
5
votes
1answer
259 views

output-directory and shell commands

Let's use a small example to use gnuplot to draw a nice function using tikz. \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw plot[domain=-3:3,samples=100] ...
1
vote
2answers
613 views

TeXworks with XeLaTeX + MakeIndex + BiBTeX + shell escape?

I have tried following this answer, but it gives me: xelatex.exe: Invalid command-line option xelatex.exe: Data: unknown option Shell-escape is required for minted, and is enabled for ...
6
votes
1answer
141 views

Shell-escape with LaTeX 3

What is the LaTeX 3 equivalent to \write18 if there is one? I want to call lilypond from within my TeX document.
6
votes
0answers
194 views

Does LuaTeX access write18 differently from pdftex? [closed]

Im trying to make a speedup-option for gnuplottex using md5 checksums. This works like a charm for pdftex, but it fails for LuaTeX. The comparison of the checksums work, the difference occurs when ...
2
votes
1answer
2k views

Enabling “--shell-escape” on TeXworks under MiKTeX

After resolving the problem on my previous question, I applied to finally install Gnuplot 4.6; and after a successful installation I had to allow the --shell-escape option on TeXworks, so I added a ...
2
votes
1answer
152 views

How can we enable -shell-escape to tex4ht's htlatex or related program?

Can we enable -shell-escape through any option without editing the default htlatex program? OR Can we achieve this using mk4ht ht?
5
votes
1answer
1k views

Emacs and latexmk setup for --shell-escape

If I want --shell-escape, do I just need to add it to my .latexmkrc file as $pdf_mode = 1; $pdflatex = 'pdflatex --shell-escape -interaction=nonstopmode %O %S -file-line-error -synctex=1'; ...
8
votes
1answer
171 views

Write18: LuaTeX has an encoding problem, where XeLaTeX does not

xelatex (with option --shell-escape) compiles this document fine: \documentclass{article} \usepackage{fontspec} \begin{document} LuaTeX is not \immediate\write18{echo uber | sed y/u/ü/ > inc.tex} ...
6
votes
1answer
1k views

How can I setup PGFPlots to work with gnuplot?

Notes: I'm using Windows 8 and TeXworks. Also, I have never used gnuplot by itself, so I am unfamiliar with it. I'm trying to use PGFPlots with gnuplot to graph functions. I have not been able to ...