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

1
vote
0answers
54 views

Is it still useful disabling \write18 in the era of LuaTeX?

As far as a Lua script can run from a TeX document if compiled with the LuaTeX engine, without any sort of protection against malicious code, has still a sense the disabilitation of the \write18 ...
1
vote
1answer
54 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
45 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
62 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
0answers
67 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
156 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
73 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
115 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
181 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 ...
7
votes
1answer
64 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
98 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
84 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
41 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} ...
24
votes
3answers
472 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
42 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
376 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 ...
1
vote
0answers
169 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
142 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
142 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, ...
20
votes
1answer
280 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
121 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 ...
3
votes
1answer
129 views

Add -shell-escape option to the latex invocation of preview-latex in auctex

I need preview-latex to use the -shell-escape option when it invokes pdflatex, which is required by the minted package for syntax highlighting, as it invokes python. How can I do that?
5
votes
1answer
163 views

\documentclass[convert]{standalone} ignores linebreak

I tried to combine this answer Compile a LaTeX document into a PNG image that's as short as possible with my answer Add column in a table But the pdflatex -shell-escape table.tex ignores ...
5
votes
1answer
1k views

How to enable shell-escape in TeXworks?

I require use of the minted package of similar one which support Prolog syntax-highlighting. Given that I use the TeXworks "IDE", how do I enable shell-escape? Though I attempted—see above—I still ...
6
votes
1answer
361 views

Compiling CircuiTikZ with -shell-escape (pdflatex)

I'm trying to use both CircuiTikZ and pgfplots. In order not to overflow LaTeX memory, I use the TikZ externalize library with -shell-escape command in pdfLaTeX. It compiles the pgfplots nicely, but ...
8
votes
1answer
346 views

Can I make write18 send command lines to Cygwin bash instead of Windows command interpreter?

I am using Windows 7, Cygwin (CYGWIN_NT-6.6-WOW64), and MiKTeX 2.9. I am trying to compile a document of a friend of mine who has written a specific document class file (.cls), a class that is able to ...
5
votes
1answer
905 views

What does “restricted \write18 enabled” mean and why does TexLive keep reporting it?

I've installed a backported version of TL2012 on Ubuntu 12.04, and every time I start pdftex, xetex, luatex, pdflatex, xelatex, or lualatex, I get the statement restricted \write18 enabled. entering ...
0
votes
1answer
106 views

how to escape special chars in \write18?

This is what I'm trying to do (it's just an example, not a real code): \immediate\write18{echo "price: $5.00" > temp.tex} \input{temp.tex} This is what I see in temp.tex: price: .00 What is a ...
7
votes
1answer
84 views

Reading an external file failed with dimension related errors

I want to read an external file one line per read and insert each line as an item. I failed to do so because of dimension related errors. How to solve it? \documentclass{article} \def\trimtok i{} ...
4
votes
2answers
528 views

Using macros in \DeclareGraphicsRule statement using shell command

I am currently working on a document which i am compiling under both linux and windows. As one of the images I use is a tif image, I'd like to have lualatex converting it on-runtime to a format it ...
6
votes
1answer
111 views

Trailing space to end \input| argument

Why do \message{\input|"texlua ..."} and \message{\input|"texlua ..." } give very different results? Notice the extra space before } in the second case. Minimal example to be compiled with pdftex ...
9
votes
3answers
177 views

Using \input|texlua… to emulate \directlua in pdfTeX

When --shell-escape is enabled, pdfTeX allows to run external programs and input the result expandably with \input|"...". Together with the Lua interpreter texlua, this could be used to provide a ...
11
votes
2answers
265 views

Using shell escape to access system time

In an earlier question, I asked for analogs of \pdfelapsedtime (which measures the time since the start of the current run) in XeTeX and LuaTeX. A LuaTeX solution was provided, and is now part of ...
6
votes
1answer
529 views

How do I determine what items to add to my “restricted-shell-escape” safe list?

I am trying to follow the MacTeX-2012 instructions for migrating from (unsafe) shell-escape to using "restricted-shell-escape". But it is unclear to me what items to put in the file that specifies the ...
3
votes
1answer
229 views

How to output a new line in a .txt file with \immediate\write18

I am trying to create a text file foobar.txt using \immediate\write18, and can not figure out how to properly get the \n so that Unix puts these lines on a new line. The MWE below produces one line ...
3
votes
1answer
697 views

GraphViz and LaTeX; gives blank PDF

I've tried 4 different .sty files (most of which didn't work, some of which gave me errors on rendered page). Now trying with the dot2texi package, which is giving me a blank PDF. I have tried ...
4
votes
1answer
366 views

texlive shell escape problems with psfrag

I work with some scripts that automatically convert the fonts in a plot using psfrag and pstool to another font. However these fail if I use texlive. They work with Miktex. Since I get requests from ...
4
votes
2answers
248 views

Problems When Escaping from Listings

I would like to use LaTeX to document my C++ code, since I am able to typeset mathematics easily, as well as create diagrams using TikZ. I made a minimal LaTeX template for testing, but I have already ...
9
votes
1answer
1k views

Add space after LaTeX command

I'd like to call a command from LaTeX, which looks like this: bash -c "\myCommand -Tpdf #2.dot > #2.pdf" \myCommand is replaced by string variable, however the space after is also removed so I ...
2
votes
1answer
198 views

Biber not run automatically with `-shell-escape`?

I vaguely recall reading somewhere that biber can be run automatically by the biblatex package when -shell-escape is allowed. Do I remember it wrong? As much as I try, biblatex only tells me to run ...
8
votes
1answer
6k views

How can I enable write 18 on a MikTeX installation

I have tried my best, but don't seem to get this one right. How do I enable shell escape in MikTeX? Why XeLaTeX comes with a default for shell escape but not LaTeX?
0
votes
1answer
443 views

How to get DVI files vs PDF files when using pstricks, aquamacs, and mactex

My setup is generating DVI output vs PDF when using pstricks with Aquamacs 2.3a and MacTex 2011 Simple latex files will create pdf files as expected from inside aquamacs and auto view in skim. When ...
5
votes
1answer
6k views

epstopdf warning: “Shell escape feature is not enabled.”

I'm having a bit of trouble trying to include .eps files in a LaTeX document compiled with pdfLaTeX. I've been told that I should use the epstopdf package to convert .eps files to .pdf on the fly. ...
2
votes
0answers
2k views

Enable --shell-escape in TexMaker [closed]

I am trying to use dot2texi package with Texmaker on a Mac, and I am aware that I need to enable shell escape in order to let TeX Live process using external packages. So I edit the commands in ...
8
votes
3answers
347 views

Shell escape after PDF is finished and closed?

I like to escape to the shell using \write18 at the very end of the compilation after the PDF file got completely written and was closed, so that I can use it as part the shell command. Is this ...
4
votes
2answers
243 views

Can TeX post-process the PDF it produces?

This is a follow-up to Can LaTeX be persuaded to produce text output?. Having discovered that pdftotext is the way to go, I'm curious as to whether it is possible to have TeX invoke that command on ...
27
votes
3answers
3k views

What are \immediate & \write18 and how does one use them?

What are \immediate and \write18 and how does one use them? I'd like some examples spanning from basic to advanced scenarios.
8
votes
1answer
385 views

\write18 pass % through to shell

This has sort of been touched on in some other postings, but for path reasons I would like to avoid using a shell script and just use ImageMagick's (IM) convert command line executable directly from a ...
16
votes
2answers
3k views

Write18: capturing shell (script) output as command/variable?

Let's say I compile the following file with pdflatex -shell-escape test.tex: \documentclass{minimal} \begin{document} File listing is: \immediate\write18{ls /usr} \end{document} This will send ...
9
votes
1answer
227 views

Why does \jobname give *s instead of spaces, and how do I fix this?

When I LaTeX a file names test 1.tex with the code \edef\temp{\jobname.txt}\show\temp, I get > \temp=macro: ->test*1.txt. This seems to work fine with LaTeX's internal commands, but if I then ...

1 2