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

4
votes
0answers
53 views

Problem with writing the output of kpsewhich to a file

I create in my folder a file "blub.temp" and then tried out the following \documentclass{article} \usepackage[T1]{fontenc} \usepackage{shellesc} %correct small bug in shellesc: ...
0
votes
0answers
43 views

Enable shell escape in texniccenter for latex->dvi->pdf

Since I have many tikz figures in my dissertation, I would like to externalize them as suggested in this topic: How to expand TeX's "main memory size"? (pgfplots memory overload) But I ...
1
vote
0answers
44 views

How can I plot a google maps in sharelatex?

I found a way to do this but not in Sharelatex, it is possible? The problem is activate \write18 in sharelatex, how can I do this? \documentclass{article} %\usepackage[latin1]{inputenc} ...
0
votes
1answer
55 views

Run pdflatex.exe from LuaLaTeX document

My document-combiner combine pdf-files via package pdfpages using command \includepdf. But before including, a source tex compiling by pdflatex.exe to produce the pdf. But now I have a little ...
6
votes
0answers
99 views

Chemical compound numbering in pdfLaTeX without `--shell-escape`?

The package chemscheme, included in chemstyle, allows for temporary text "tags" in .eps files to be replaced with designated chemical compound enumerations (A, B, C, ...; 1, 2, 3, ... ; etc.). This ...
2
votes
1answer
35 views

Piping \write18 commands and ltxguide

The following works in an article: \documentclass[a4paper]{article} \title{Foo} \author{Me} \begin{document} \input{|"echo foo bar | grep foo"} \end{document} Instead of that \input, this also ...
2
votes
1answer
67 views

gnuplottex and shell-escape

I am trying to get gnuplottex running in this MWE: \documentclass[a4paper, 11pt]{article} \usepackage[cm]{fullpage} \usepackage{gnuplottex} \begin{document} \begin{figure}% \centering% ...
3
votes
0answers
60 views

How to escape double quotes in \input

I'm trying to call shell commands that contain multiple (nested) quotation marks. This is, for instance, what I would write on the shell: $ python -c "print \"Hello World\"" which produces Hello ...
0
votes
0answers
75 views

TexStudio EPS to PDF doesn't work (Macbook El Capitan)

I had a problem running for weeks, still not able to solve it. Could anyone help me? The EPS to PDF works fine on Windows or ShareLaTeX, however, it does't work on Macbook El Capitan. Below is the ...
0
votes
0answers
49 views

How to enable -shell-escape in TeXworks?

I am trying to compile a Tikz diagram externally. I am using TeXworks 0.4.6 and have done everything as per this response. Here is my code: \documentclass[12pt]{article} \usepackage{pictexwd,dcpic} ...
1
vote
1answer
43 views

accessing bash to get git information in TeX macro

I'm not sure if this is possible, but my goal is to include some information about the current point of my LaTex file in its git source history in the PDF output of my file. What I want to be able ...
5
votes
0answers
66 views

Unable to get music notation with abc package

I want to do some simple music notation and decided to try the abc package as a less-steep option. However when I tried the simple example: \documentclass{article} \usepackage{abc} \begin{document} ...
2
votes
1answer
73 views

XeLaTeX with tikz external library produces pdfs of wrong size

I am trying to use TikZ and its external library together with XeLaTeX for example in this MWE where I use scrbook for compatibility to my large document, where the error occurs. % !TEX TS-program = ...
2
votes
1answer
108 views

Missing Display Fonts at eps Figure Export from Tikz

This question is similar to the one here. The accepted answer there seems to be working in general, I get a readable .eps-file. If I open it however it looks pixelated and the fonts seem weird. At ...
8
votes
1answer
98 views

How to generate robust verbatim bibliography data

I'm trying to generate a .bib-shaped "biblatex" database from a git change log. A typical(?) item looks like this: @gitcommit{f1750d6, author = {Brent Longborough}, date = {2013-12-15}, title = ...
1
vote
0answers
46 views

Copy file automatically with write18

With the following mini-template, I want to copy the distnate pdf file into another one automatically as I run pdflatex with --shell-escape: \documentclass{article} \begin{document} Just a test. ...
0
votes
1answer
51 views

Running pythontex from TeX using \immediate\write18 fails

Running pythontex from TeX using \immediate\write18 fails, for reasons that are unclear to me. See my example file below. Running pdflatex -shell-escape p.tex does not produce the pycode.txt file ...
1
vote
1answer
113 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
57 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
578 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
128 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
61 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
153 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
85 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
63 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
314 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
119 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
2answers
133 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
81 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
426 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
75 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
264 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
246 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
298 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
789 views

tikzexternalize in TeXMaker doesn't work [closed]

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
172 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
28 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 ...
1
vote
1answer
818 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 ...
5
votes
2answers
154 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 ...
5
votes
1answer
136 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
141 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
534 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
532 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
120 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
834 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
264 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, ...
3
votes
2answers
346 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
470 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) ...
6
votes
1answer
1k 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
819 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 ...