Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [shell-escape]

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

1
vote
1answer
66 views

pdfLaTeX not accepting shell commands despite shell-escape option

I am testing the shell escape option, but I am stuck on a very early level -trying to do: \input{|"time /t"}}. My pdfLaTeX is complaining: ! LaTeX Error: File `|"time /t".tex' not found. As far as I ...
0
votes
1answer
53 views

How to make LuaLaTeX multithreaded when `--shell-escape` is enabled? [duplicate]

I found this thread: How to make pdfLaTeX multithreaded when `--shell-escape` is enabled? It works great. But when I change to LuaLaTeX there is still just 1 cpu active. So is there a way to achive ...
1
vote
1answer
26 views

how to compile tex file with -shell-escape in AucTeX using C-c C-c on ubuntu

I want to compile my tex file with -shell-escape option in Emacs + AucTex using C-c C-c key binding. It gave me an error to run with -shell-escape. I know I can do it through terminal by latex -shell-...
0
votes
0answers
26 views

Making \psfrag replacement without using --shell-escape option

I am trying to submit latex manuscript on ScholarOne. In the latex file, I have used \psfrag to make text replacement on .eps file. On my PC I can use auto-pst-pdf package and compile the .tex file ...
1
vote
1answer
34 views

shell-escape and “tput: No value for $TERM and no -T specified”

I am using TexStudio 2.12.6 on TexLive 2015 (Debian). If I add the option --shell-escape to my compile command lualatex --shell-escape -synctex=1 -interaction=nonstopmode -halt-on-error %.tex, I ...
0
votes
0answers
37 views

Can't execute jar from directory with umlaut

Okay so this is quite an exotic question and I am unsure whether it really fits on this page. But as it involves LaTeX I'll post it here. I have written a Java program that I am calling from inside ...
0
votes
0answers
33 views

Enable pdflatex -shell-escape in TeXstudio [duplicate]

My latex editor is TeXstudio and I need to configure it to enable pdflatex -shell-escape, is it possible to do it? compile with pdfLaTex, use Windows 10 and MikteX 2.9
0
votes
0answers
47 views

Display error messages in TeXstudio (--shell-escape)

In order to get three output files at the same time (by one compilation) I added the option --shell-escape and \ifx\conditionmacro\undefined \immediate\write18{% pdflatex --jobname="\jobname" ...
0
votes
3answers
84 views

How to use “Kpathsea” to open a sty file for users modifications

I have a package to create exam paper sujet.sty, in this package I have defined some commands like school which expand to the name of school. \def\school{name-of-school} I thought about using a ...
2
votes
0answers
66 views

A simple example on how to use shell-escape option

I have got an issue when using the moodle package which I suspect is related to the -shell-escape option see this question on TeX-exchange: error when using tikzpicture with moodle package. In my ...
3
votes
2answers
99 views

error when using tikzpicture with moodle package

I want to generate a quiz for my students to be imported within the moodle platform . The quiz includes some figure. I tried the moodle package from texlive 2018 but I get the following error when ...
-1
votes
0answers
21 views

Minted frozencache option throwing error without shell escape

I am using the minted package for code highlighting in my document. However, when I run it to compile my code using shell -escape my citations and hyperlinks don't compile. I need to run my tex file ...
2
votes
1answer
54 views

Tikz external with beamer animations

I'm trying to speed-up compilation of my multi-tikz .tex file. I found this topic and successfully applied the solution ; unfortunately, it doesn't work for animations inside the tikzfigure: Only the ...
0
votes
0answers
27 views

Can I make TeX echo what the document sends to \write18?

I'd like to see what's being sent to the shell (if it is indeed a real shell and not some direct process-spawning) during compilation of my document. (I've solved my original problem, but this ...
0
votes
0answers
41 views

TexShop not recognizing external command

installed Image Magick via MacPorts and seems to be running ok with the terminal at any location: $ convert file.pdf file.png returns the desired results and file. however, when I use TexShop to ...
2
votes
0answers
104 views

Shell command error when compiling with LuaLaTeX shell-escape in Fedora 28 [closed]

When compiling this minimal TeX file with lualatex --shell-escape test.tex I get an initial shell error (that is output to stderr), sh: all: command not found (check in the 7th line). The error doesn'...
3
votes
1answer
90 views

Does --no-shell-escape break \pdf@shellescape?

Edit: since posting the question I've fixed a few mistakes. I don't think they affect the answer given below, but I wanted to correct the record for completeness. Background I have a Python script ...
1
vote
0answers
68 views

Externalize Tikz picture result in error 'pdflatex -holt-on-error but shell escape is used

I am trying to externalize tikz-picture by using the externalize library. I am using Miktex 2.9. I activate the external feature by using \tikzexternalize and also tried \tikzexternalize[shell ...
0
votes
0answers
22 views

Upcase script in titleformat causes TeX capacity exceeded error

I'm trying to get \titleformat to use a shell script upcase instead of \MakeUppercase to upcase the section title in the document but not in the table of contents. (I know \MakeUppercase achieves ...
0
votes
0answers
34 views

Calling and using output from a shell command

There are two things I would like to do but can't see how. First, I would like to input an uppercase version of \word using the elisp function upcase through emacsclient -e. I've written out a naïve ...
1
vote
1answer
69 views

dot2texi fails to convert automatically due to “Shell escape not enabled.” not matter whether -shell-escape is specified to lualatex

The following document fails to compile properly/automatically because dot2texi fails to convert the dot specification and warns about it with Package dot2texi Warning: Shell escape not enabled. (...
0
votes
0answers
156 views

-shell-escape in TexMaker

I edit the commands in Texmaker to the following: latex -interaction=nonstopmode --shell-escape%.tex (for latex) pdflatex -synctex=1 -interaction=nonstopmode --enable-write18 %.tex (for pdflatex) I ...
1
vote
1answer
38 views

Seamless invocation of bib de-duplication script from document source preamble?

Unfortunately, for reasons beyond my control, I am stuck with mendeley as my citation manager which provides an option to export its library to a bib file. My mendeley library is organised into ...
3
votes
1answer
214 views

Is it possible to use the graphviz package on ShareLaTeX?

I am trying to use the graphviz package on ShareLaTeX. I have included both the graphviz and graphicx packages \usepackage[pdf]{graphicx} \usepackage{graphviz} I tried running the simple example ...
5
votes
1answer
95 views

Using standalone package to reduce tikz compile time

I am using standalone package by Martin Scharrer in a report. I read in this answer by Martin that if the document loads with a [mode=buildnew]{standalone} package, then for each picture that is ...
2
votes
1answer
118 views

How to escape to latex within minted comments?

I am using the minted package for typesetting matlab source code. There is an escapeinside option for the listing environment provided by minted to escape to regular TeX commands. However, this does ...
0
votes
0answers
17 views

What do I need to get started with the gnuplottex package? [duplicate]

How do I get started with the gnuplottex package? More specificly, what do I need to download and what directory do I need to put it in? Also how do I turn on shell escape? I heard that you need that ...
1
vote
1answer
52 views

use shell-escape output with newlines in pgfplots/tikz

The following example works: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} \addplot table{ 0 0 0.5 0.25 1 1 }; \end{axis} \end{tikzpicture} \end{...
1
vote
1answer
355 views

How to enable shell escape when building with latexmk and xelatex

The title already says the question. I want to clarify that this is not a duplicate, because existing answers are all for plain latex or pdflatex. Building with latexmk and pdflatex with shell ...
2
votes
1answer
114 views

Input from external program to tikz as a LaTeX command with several arguments

I am in need of a command \myprogram that takes 3 optional and 1 mandatory arguments. When using pdfLateX --shell-escape, \myprogram should call echo '(#1,#2) parabola (#3,#4)' (echo stands here ...
1
vote
1answer
60 views

Combine path from external program with \draw in tikz

I have an external program bezierplot which returns tikz paths. E. g. bezierplot 'x^2' returns (-2.24,5) parabola bend (0,0) (2.24,5); with semicolon. Now I want to call the program with shell-escape/...
1
vote
1answer
87 views

Execute external bash file

This is a follow up to Get write18 to execute after file parsing With the code \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{graphicx,grffile} \newcommand{\filename}...
1
vote
1answer
45 views

Get write18 to execute after file parsing

Follow up to Get write18 to accept / expand command I want to crop a pdf and print it. My \the\pdfshellescape is 1, so my shell-escape is working. My MWE is \documentclass[a4paper,10pt]{article} \...
4
votes
1answer
156 views

Get write18 to accept / expand command

I am trying to use write18 to crop a pdf. The code is \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \newcommand{\filename}{} \newcommand{\croppedfilename}{}...
2
votes
1answer
99 views

Dependence of \write18 to svg-package

In the following MWE I am experiencing a (to me) very weird dependence of the \write18 command and the svg package. \documentclass{article} \RequirePackage{svg} \begin{document} \immediate\...
0
votes
0answers
712 views

Minted: -shell-escape flag [duplicate]

I'm trying to get some source code into my tex-document but only get the error message mentioned in the thread title. I disabled nearly all of the other packages I use but it did not work. \...
1
vote
1answer
143 views

Converting pgfplots usage to includegraphics (cannot use -shell-escape)

I am uploading a paper to arxiv, which does not allow the use of shell-escape. Currently my paper uses pgfplots as in the following MWE: temp.tex ---------------------------- \documentclass{article} ...
2
votes
1answer
316 views

How do I “invoke LaTeX” with flags when using laTeXTools in Sublime Text?

I'm using LaTeXTools for Sublime Text 3, and trying to use the minted package. I get the following error: Package minted Error: You must invoke LaTeX with the -shell-escape flag. [\usepackage] ...
1
vote
0answers
50 views

--shell-escape - Consequences and Reasons [duplicate]

For certain packages to work properly, it seems to be necessary to enable the option --shell-escape, for example with pdflatex and auto-pst-pdf. I am informed that it enables external programs to ...
1
vote
1answer
139 views

In Luatex, how to know effective output directory?

I need to know what is the actual output directory, as set by the -outdir or -output-dir command line switch, because I am executing external programs and I need to give them the exact location of the ...
4
votes
1answer
385 views

lualatex complains when using convert in standalone

With the following file I encounter an error when using both the convert option of standalone and lualatex. Switching either to pdflatex (which I cannot use for this drawing for other reasons) or ...
1
vote
1answer
550 views

pdflatex --enable-write18 autopp.pdf

running pdflatex --enable-write18 myfile.tex under emacs+MikTeX works, but, generates a myfile-autopp.pdf with the graphic and doesn't include it to the myfile.pdf. How to get the graphic inside the ...
3
votes
1answer
158 views

newcommand with argument and shell-escape/write18

This example works with shell-escape: \documentclass{article} \usepackage{python} \begin{document} \begin{python} from sympy import * from sympy.abc import * print "$" + latex(expand( (x+1)*(x-1) )) +...
1
vote
1answer
155 views

How to handle this error while running LaTeX? [duplicate]

What is the reason for the following error? Package minted Error: You must invoke LaTeX with the -shell-escape flag.
7
votes
1answer
3k views

How to have latexmk always use -shell-escape?

I haven't seen this asked specifically, though I have seen related questions. I just installed the minted package and noticed I have to run latex/pdflatex with a command-line option, -shell-escape, ...
4
votes
1answer
413 views

Use minted without unrestricted shell escape

The minted package requires that I enable unrestricted shell escapes (-shell-escape). This is a bit dangerous: it means that malicious latex files can run arbitrary commands and overwrite arbitrary ...
0
votes
1answer
757 views

How to do shell escape?

I read the answers and I'm not getting it. Some of them tell me to use preferences, others tell me to input %!TEX option = --shell-escape at the start. Here's what my screen looks like, to show ...
4
votes
0answers
299 views

Tikz Externalize Wont Work (MWE) [closed]

I have quite a large document that I am working on and tikz externalize has stopped working. Since I have been messing with formatting, I am hoping it is a problem on my end and not a glitch. The ...
3
votes
1answer
188 views

Is there a \write18 bug in XeTeX or am I doing something wrong?

I'm using MiKTeX on Windows 10, latest stable packages on one computer, NEXT packages on the other computer. If I try to typeset the MWE \documentclass{article} \usepackage{tikz} \usetikzlibrary{...
18
votes
3answers
2k views

How should I have found out that LuaTeX removed \write18?

I'm trying very hard not to make this sound like a rant, but I'm very angry right now. I was trying to use the TikZ externalization to create a scatter plot for my thesis. There were too many data ...