{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)

2
votes
1answer
54 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 ...
2
votes
0answers
38 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
46 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 ...
4
votes
0answers
114 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
70 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
55 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
53 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 ...
4
votes
1answer
168 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
64 views

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

this thing 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 ...
3
votes
1answer
106 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
80 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 ...
4
votes
1answer
95 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
200 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 ...
20
votes
3answers
321 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
84 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
58 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
134 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
248 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 ...
4
votes
2answers
513 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 % ...
23
votes
1answer
502 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 ...
4
votes
1answer
162 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
363 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
130 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
142 views

Does LuaTeX access write18 differently from pdftex?

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
725 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 ...
1
vote
1answer
103 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?
4
votes
1answer
748 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
143 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} ...
5
votes
1answer
764 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 ...
4
votes
2answers
791 views

raw gnuplot in pgfplots

I have a problem with the gnuplot environment in pgfplots. I already set "--enable-write18" in the argument of pdfLaTeX and added the path of gnuplot.exe to the PATH-variable in the advanced system ...
1
vote
1answer
328 views

Using “latex” to externalize tikz graphics wont work

I am lost in tex! I try to run a tay example, which you can find here: EXAMPLE If I run it, using pdflatex -src -interaction=nonstopmode -shell-escape faster-latex-part2.tex everything works fine, ...
7
votes
1answer
112 views

Writing environment content verbatim to file, calling Graphviz and including source/image

Based on Write environment body verbatim to a file I try to write the content of a environment verbatim to a file, call an external tool (in my case the awesome Graphviz) and include the source code ...
6
votes
1answer
100 views

Problem using \write18 in beamer frame

I am stuck in front of this little but annoying problem. I am trying to use a \write18 command in which I use a local variable \mytest. I really don't understand why this SWE works if I comment the ...
0
votes
1answer
608 views

Exporting TikZ figures to .EPS

i'm trying to export a TikZ picture to .eps using the following on Win7 (MikTeX), compiling with pdflatex: \documentclass{article} \usepackage{tikz} \usetikzlibrary{external} ...
5
votes
1answer
894 views

“shell escape” is not enabled - chemscheme/chemstyle

I am having issues with -shell-escape. I do not know really what this is, and how to apply it. Furthermore, I have read elsewhere that I is possibly dangerous to summon this command. Any help would be ...
1
vote
1answer
105 views

Automatically include an SE flair in output document [duplicate]

Under the assumption that my machine is connected to the Internet, how can I automatically include my TeX.SE flair in my output document at compile time? My understanding is that an SE flair is ...
6
votes
1answer
345 views

gnuplottex and lualatex

EDIT: This question covers a bug in gnuplottex which will be fixed in TeXLive 2013.If you still want to have the bug fixed, download the latest upstream version from CTAN and compile it yourself. ...
7
votes
2answers
625 views

PSTricks and LaTeX vs. pdfLaTeX

I'm trying to convert my thesis to pdfLaTeX, as latex + dvips behaves ugly when it comes to break (really long) URLs... I'm using up-to-date TeXLive 2012 on Linux. The only problem is (so far), that ...
8
votes
1answer
115 views

Suppress message during compilation

I use a macro with \write18 and \@@input, several times in each page of a large document. But \@@input output a message during compilation: (filename) This is very annoying and flood the other ...
1
vote
1answer
145 views

emacs whizzytex latex options, minted, -shell-escape

I want to use whizzytex with emacs because of its superior speed compared to other wysiwyg options available. The only thing preventing me from doing so is that my latex documents use the minted ...
3
votes
2answers
122 views

How to use a TeX macro with a CSV list to filter an external file

The code below produces the results I desire, which is a list of the lines with XXX={<value>} with a <value> which is not one of the allowed list of values: However, this solution ...
2
votes
1answer
63 views

Associate array of returns of commands

I'm trying to get strings from an external program, as shown in this example: \documentclass{article} \usepackage{fontspec} \usepackage{xunicode} \newcounter{verse} \stepcounter{verse} ...
26
votes
3answers
675 views

Is Arara safe/secure

I have just begun playing around with arara and I am curious if there are safety/security concerns. For example, pdflatex from TeX Live has shell escape disabled by default. If the TeX Live team think ...
2
votes
1answer
67 views

Specify file name shell access via \@@input

Background: I need to perform a conditional branch based on the first three characters of a file. I found a rather simple solution (on a Unix system, or PC with cygwin installed): head -1 ...
4
votes
3answers
2k views

How to invoke latex with the -shell-escape flag in TeXMakerX?

This is a follow-up question on the post: Creating a table around a java script code highlighted using minted where invoking -shell-escape flag in TeXStudio is one of the two questions posted by the ...
2
votes
1answer
275 views

Equivalent to TeXLive's --restricted-shell-escape for MiKTeX?

I often work on Windows, so need to use MiKTeX. I recently found the minted package, which needs to call the external command pygmentize. I currently call xelatex with the -shell-escape option to ...
6
votes
1answer
337 views

How to invoke \write18{pdflatex “\def\param{…}\input{filename}”}?

Why can't I compile the following even though I have enabled -shell-escape? \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{inputfile.tex} %\def\paramA{standalone} ...
5
votes
2answers
313 views

Does the lualatex shell enable behavior differ from pdflatex on purpose?

I am trying to use TikzEdt, an editor for TikZ graphics. For some tasks TikZ needs to call other commands so I tried to enable this by the parameter --shell-escape passed to lualatex (on Windows, ...
22
votes
1answer
376 views

What does --shell-escape do?

I stumbled upon an example, which needed to be compiled with the additional option --shell-escape. Using this option it worked just fine, but I'm curious: Why or when is this option needed and ...
8
votes
1answer
216 views

How do you detect restricted write18 support

I know about \ifeof18 and \pdfshellescape to detect, if \write18 is enabled, but both only tell me, if it's enabled at all. I need to use a program which isn't in the list of commands restricted ...