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

6
votes
1answer
49 views

How to insert a # via \immediate\write18 within a macro

It seems that using \immediate\write18{echo "\string#!/bin/bash (version 1)" > \jobname.command}% outside of a \newcommand works great. However, I want to invoke within a \newcommand: ...
1
vote
0answers
29 views

tikzexternal, asymptote and duplicated asy files

I'm trying to work with tikzexternal and asymptote for my documents. Here is a sample TeX document : \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
4
votes
1answer
79 views

Run a shell script (with parameters) from a PDF generated by LaTeX

I want to have a link in my PDF generated by pdflatex which executes a shell script, and this part works great. The problem I am running into is that I need the link in the PDF to be able to pass ...
2
votes
1answer
29 views

Psfragfig conflict with bibliography

I have a problem using psfragfig and \bibliopraphy. When I don't include the biblio-fille via \bibliography(biblio) the command \psfragfig works well. Once I apply \bibliography(biblio) I can read in ...
0
votes
0answers
92 views

Tikz externalisation not working despite enabling write 18 or shell escape

I am trying to set up tikz externalisation so I can save individual images as .pdfs (and eventually .png's). I am trying to run the following code in TeX works, W7, MikTex 2.9. I have changed the ...
1
vote
1answer
144 views

Shell Escape in Miktex 2.9 for CSVsimple

I am quite new to LateX and I have been trying for the past few days to do a Shell escape in Miktex 2.9/ TeXworks in my pdflatex+Makeindex+bibtex typesetter so that I could be able to use the ...
1
vote
0answers
87 views

Memory overload due to pgfplots / tikz

first of all, I need to mention that there are 2 related threads, that I found usefull: 1, 2. I am working with TeXstudio 2.8.8 on Win 7 64bit (i5 @3.3GHz, 8GB RAM - if this matters). My goal is to ...
1
vote
1answer
168 views

tikzexternalize in TeXMaker doesn't work

I'm having some troubles while compiling my thesis with the tikz externalize feature in Texmaker. I created the user command: "D:/laTex/texlive2014/bin/win32/pdflatex.exe" -synctex=1 ...
2
votes
0answers
67 views

Options problem with LaTeX using AucTeX

In my file, I use the package minted that require to use the option -shell-escape . In order to use this option, I need to add the following line in AucTeX : %%% TeX-command-extra-options: ...
1
vote
0answers
21 views

\immediate\write18 cannot handle %? [duplicate]

I would like to do something like this: \immediate\write18{git log -1 --pretty=format:"%h-%ad" --date=short > /tmp/temp.dat } however, xelatex cannot proceed because the % means comment out if I ...
0
votes
1answer
87 views

How to do shell escape in Texniccenter?

I heard that PStricks pictures can be compiled separately using the command shell escape. What should I do in order to implement it in my document? I cannot find any tutorial explaining the procedure ...
0
votes
0answers
42 views

Character escaping in \input{|“command”}

This includes two main questions: A)Which characters are forbidden in between the quotes (" ") of an \input{|"command"}? B)How can those forbidden characters be escaped so that they, infact, can be ...
5
votes
2answers
88 views

Writing environments out to files and prepending/appending additional code

I am using the following code snippet to write environments out to files and run arbitrary commands (like python or Rscript). It works quite nice however I would like to write something to the file ...
0
votes
0answers
109 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
94 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
93 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
134 views

Problem importing eps files with auto-pst-pdf [closed]

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
229 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
93 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 ...
1
vote
0answers
325 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
207 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
39 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
119 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
284 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) ...
4
votes
1answer
599 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
415 views

xelatex -shell-escape permission [closed]

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
120 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
522 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} ...
2
votes
0answers
447 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
192 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
147 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
446 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 ...
19
votes
4answers
413 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
144 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 ...
7
votes
1answer
2k 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 ...
3
votes
1answer
111 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
1answer
313 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
139 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
125 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
466 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 ...
6
votes
1answer
2k 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
223 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
352 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
153 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
234 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
583 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 ...
24
votes
3answers
497 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
109 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
123 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
309 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 ...