Home >

shell escape

Advertisement
  • Piping \write18 commands and ltxguideMay 30

    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 works: \immediate\write18{echo foo bar | grep foo &g

  • How to escape double quotes in \inputFebruary 16

    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 World. I found here that \input can read

  • Unable to get music notation with abc package

    Unable to get music notation with abc packageJanuary 6

    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} Text \begin{abc}[name=c-dur] X: 1 % start of header

  • XeLaTeX with tikz external library produces pdfs of wrong sizeDecember 17

    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 = xelatex % !TEX TS-options = -shell-escape \document

  • Missing Display Fonts at eps Figure Export from Tikz

    Missing Display Fonts at eps Figure Export from TikzDecember 15

    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 compilation I receive a notification saying Config Er

  • How to generate robust verbatim bibliography data

    How to generate robust verbatim bibliography dataNovember 18

    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 = {Complete name changes Decomplicate top-level PROCs

  • Copy file automatically with write18November 13

    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. \write18{cmd /c copy\jobname.pdf \jobname-print.pdf} \e

  • Running pythontex from TeX using \immediate\write18 failsOctober 19

    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 as desired. However, running pythontex p.tex does. The

  • Enable \write18 for package getmap

    Enable \write18 for package getmapAugust 31

    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. --------------Solutions------------- I sincerely hope it is not

  • Passing details (commands) between twoAugust 23

    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 thread (requires shell-escape) but unfortunately b

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

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

    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 files to be part of your latex document. In order to use

  • TexMaker hangs when running shell scripts August 15

    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. So the problem may not be \write18 per se, but it has

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

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

    MWE \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \usepgfplotslibrary{groupplots} \makeatletter \def\Printdimensionless#1{\[email protected] \dimexpr #1\relax} \makeatother \begin{filecontents}{data_fem_0.dat} id delta E_1 E_2 v_1

  • Postprocess pdf with \write18July 16

    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 command in order not to break the behaviour for ot

  • Resizing images based on DPI and display sizeJune 30

    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 rescale included images which have been reduced in

  • Macro expansion in \writeJune 27

    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} \newcommand*{\foo}{foo} \begin{document} \write18{ech

  • Get return value of `\write18`June 22

    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? --------------Solutions------------- A very elementary approach

  • Filtering through an external command in LaTeX?

    Filtering through an external command in LaTeX?May 26

    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 contents of the environment through an external command (s

  • How to insert a # via \immediate\write18 within a macroMay 18

    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: \newcommand{\CreateBashScript}{% \immediate\write18{echo &

  • tikzexternal, asymptote and duplicated asy filesMay 15

    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} \usepackage{tikz} \usepackage[inline]{asymptote} \usetikzlibrar

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.588 s.