{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
1answer
7 views

Enable \write18 for package getmap

Is there a way to enable write18 from the tex file without adding any parameters in the config files ? The idea would be to build this file without modifying anything else but this file.
1
vote
1answer
48 views

Passing details (commands) between two

I'm working on my CV and the covering letter and I would like to compile both documents (two different document classes) in one run (more or less). Either way, I followed the example as shown in this ...
3
votes
1answer
198 views

Using gmp with shell-escape in Windows 10, MiKTeX 2.9, WinEdt 9.1

Windows 10, MiKTeX 2.9 64-bit, WinEdt Build: 20150731 (v. 9.1) - 64-bit. I have updated the filename database and all format files in MiKTex 2.9. I am using the gmp package that allows MetaPost ...
1
vote
1answer
40 views

TexMaker hangs when running shell scripts [closed]

I have trouble using \write18 within TexMaker. I created a 'user command' within TexMaker, which invokes a simple shell script. But even that has trouble executing. It just seems to wait forever. ...
3
votes
2answers
17 views

Pgfplots: raw gnuplot set datafile commentchars '#%'; How to escape '%'?

MWE \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \usepgfplotslibrary{groupplots} \makeatletter \def\Printdimensionless#1{\strip@pt \dimexpr #1\relax} \makeatother ...
4
votes
1answer
88 views

Postprocess pdf with \write18

I want to run a postprocessing script on my pdf. For integration with my editor it should be executed at the end of the pdflatex run, automatically -- ideally without having to change the compilation ...
1
vote
0answers
44 views

Resizing images based on DPI and display size

I find that my pdfs are exceedingly large, since I use many high quality pictures in them. To automatically reduce the quality, I found this question [ Can pdflatex (or any tex package) automatically ...
3
votes
1answer
52 views

Macro expansion in \write

I want to use a macro in \write18, but this causes the space after it to be ignored. The following example prints foobar to test.txt, whereas I want it to print foo bar: \documentclass{standalone} ...
6
votes
2answers
206 views

Get return value of `\write18`

I'm using \immediate\write18{./somescript.sh} to execute my own shell script at the beginning of the latex compilation process. Is there a possibility to get the return value afterwards?
5
votes
1answer
80 views

Filtering through an external command in LaTeX?

Is there any way in LaTeX to define an environment, say, \begin{markdown} This will be *processed* as [Markdown](http://daringfireball.net/projects/markdown/)! \end{markdown} which passes the ...
7
votes
1answer
67 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
51 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
181 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
42 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
145 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
178 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
151 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 ...
2
votes
1answer
335 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
98 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
23 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
263 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
63 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
104 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
135 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
103 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
110 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
179 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
307 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
98 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
428 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
225 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
53 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
176 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
350 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
771 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
528 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
137 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
647 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} ...
3
votes
0answers
603 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
209 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
169 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
547 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
425 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
164 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 ...
9
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
124 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 ...
7
votes
1answer
379 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
147 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
146 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
620 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 ...