From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/17904 Path: news.gmane.org!.POSTED!not-for-mail From: Ulrike Fischer Newsgroups: gmane.text.pandoc Subject: Re: How to use LaTeX command "\write18{}" in Pandoc Date: Thu, 13 Jul 2017 16:31:47 +0200 Message-ID: References: <9a1c3693-5d46-4de0-921b-3408ca893bad@googlegroups.com> <20170712114354.GA21458@MacBook-Air-2.local> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1499956325 4241 195.159.176.226 (13 Jul 2017 14:32:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 13 Jul 2017 14:32:05 +0000 (UTC) User-Agent: 40tude_Dialog/2.0.15.41de To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDS4Z3WZ2UDRBYMIT3FQKGQEVIYNG2A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jul 13 16:31:59 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wm0-f62.google.com ([74.125.82.62]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVf9o-0000eY-VN for gtp-pandoc-discuss@m.gmane.org; Thu, 13 Jul 2017 16:31:57 +0200 Original-Received: by mail-wm0-f62.google.com with SMTP id y5sf1919448wmh.0 for ; Thu, 13 Jul 2017 07:32:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1499956322; cv=pass; d=google.com; s=arc-20160816; b=o6NcTIAbvjgaco7RIip0LvZWg6egONIgA4540RDQI7sKw65AIpjmUNXd/Lo4itVD1p nwDS07GiIX5LYXckjHpxnhkyu3HIWsJ7eD95DsueigkT6zZoilGYr1QdMHDMQ21OMvJ2 1jZU8QEOcmQT07KKmmQOFwBfH1sQ/ydEicggOE3EBakCnAZ6qDtBCE8qm7jD0v7yPn2G Li5dOBzqTk4HYYVt+Y2ycrmDA/2w6GP8+m6fROzMuxI5ROHPGMeSFYJKWfp9P9CEEOTK gTBxBA2fUrBXgXw3LJJnlKnXLWFrK2RVhHgJ9IRzRJOJ7J8/GO3cdqA5mEllk5C8tL2J BwIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:user-agent:mime-version:reply-to :references:message-id:lines:date:subject:from:to :arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=meFyVatBBX6ikB2cPKtK37ClAD+jp0+Yg7XcJXYAOG8=; b=Zgrf/qI72klYr120mgQhUTzWFhZ9awB0e2ENtM6P/eVbkSx5ZjC5/1JmUhwhLyQj+M VB+WALxiH4YN5JmJa85VQRHS2LR0befmVlzw3HWZbL/vDvJ6OXkpBZ1K9qzlhyc4LLhh 3N0ErH+9eyMfH6p0Xp/giZ9NPow8dtKS7C5o5y3l9+Rhzgcq1Y5+ZbfJqmQvDlKpRKf5 slZ0IxXC/y0nqL2VkizW3qneFon+aMVd9fmtg8wMo58mpIK/STZkd2nAjP9hyMtMjM34 oIsN8eBu0GdBZBrFL5grgV5NPCaQ4BFlTrFE823xW0Wbx4ex+gpCozq82HHsxdqMZumo 8RGg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gtp-pandoc-discuss@m.gmane.org) smtp.mailfrom=gtp-pandoc-discuss@m.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:to:from:subject:date:lines:message-id:references:reply-to :mime-version:user-agent:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=meFyVatBBX6ikB2cPKtK37ClAD+jp0+Yg7XcJXYAOG8=; b=juTjODf+wPs1Ei7Gcv2WYjJZDwmEQDih+SFbcQe1Pl/z/NSiBA3pD/WWslglQge24Z BvWBxae7a3mTgz8G4T914ZuPzkGqapVM/jhOSC6wNx5z216CHfjECCXpVWzeOUtu+RYu gn2IAtXU6Ckxt+pV+Aj5tg6OfqKLOHIpxVLoLS8t1hLKKtdHYChFZ+TOZHVFWDiiAoJj 1wzyCJv8ekc1/6WZI4boWE28x8q7WvIsYVkmVDNNz4KQ0yBAWR6puw64GyvBuI1Q0Lnr QQWqmEN/pbpA8SZwGfc+ytjHkr4Ud3FHnqavwLhg8HDVtP0XmRRybfrT4HdyWiXqGEHA 081g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:to:from:subject:date:lines:message-id :references:reply-to:mime-version:user-agent:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=meFyVatBBX6ikB2cPKtK37ClAD+jp0+Yg7XcJXYAOG8=; b=fpgtbh4K0ECrxpKtmsJWJ3byfNGk9sJ/XuceRF0w1Sqojjv5TkCJuRzhg9zIMX8mLB gkvX+enJ9BLVip9X7Rm8zXjN+4vBIyIq8o6REMKNIuqAHgWFnngpx+P5mspDdVY6+SNa tpf1C2btRIaQTp0AfsFLx6EkKyH3oTmEDBb54FVCPCBcLoLjaM+3ZtQLSVDCY2gOrV5L Z5PlHaT8JabPpwqrecjC0I+J8Vyw6Xmh1mSB2wZmNqu+bPH8Q5HP0untfTQYQWoMEmUW 67JPaycMbdSnc8VyXK40pKojYQUJKn9boTSQGvmL9xgfO2C+vvvVrWYZBlLf8q0+7czo h/8g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIVw1117W4lpgjXUu2lkMWMOqYY2y6utmTqu+ZT7W04NnEeVGXs4bJWV M2q4sVdpCibVCg== X-Received: by 10.28.214.19 with SMTP id n19mr3014wmg.9.1499956322792; Thu, 13 Jul 2017 07:32:02 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.28.38.131 with SMTP id m125ls830544wmm.12.canary-gmail; Thu, 13 Jul 2017 07:32:01 -0700 (PDT) X-Received: by 10.223.166.130 with SMTP id t2mr233628wrc.13.1499956321677; Thu, 13 Jul 2017 07:32:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499956321; cv=none; d=google.com; s=arc-20160816; b=DIDzLc+oRlpTH9iOsFVqDdBgLo/bRXAZu34PqkD/wNtuf0zuMPVMmtSIFHBegfWgC6 pJ9k6kqfXpYMwE4zg9jSvy2F1iGDgmuI3xcE+u2ABqsptJB9Nyrc09bQhU+aBtbRgdkO GPnjorvzjT6iatSfRW4YhOEEy8e3Zr2JveIoMjdPxhEsRBZV7gYHgdfYIwbnJrfe7STv qb3tHvUoT2mNtamJerpZd229nF6hhKUzFaQY+QS69X4Uco9eh8avdm/NvPxuvhPK7IEL ON6cJQKXi8RoqXwWsXJaGgnQGVDEGgEow7Y6RoCDc9vq/gIr3OoICRtBvPOjadvBCvK1 rd3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-transfer-encoding:mime-version:reply-to :references:message-id:lines:date:subject:from:to :arc-authentication-results; bh=F9AX0SubHv1ZH/gvxmm+IJBnQm3bu7m400TC+w74RD0=; b=Af9lPVUmXjHDJKUXPSQhU/hJRA2uvtamQuC7g3vulsWM2xJOUxIJbIETJ0eNBqnAnG LqXyqKcbac9vPSdDSDqkPiW0ytjW9jciKAz4P1BLcCbErfmp/mPjhjJ7VmWVVLLlzgTS yHz9H35tBpDDTumk0G14w4ydciXsAoTUHPfeWAYhwc+62LpEF0UPPL+GyWGTeuox0mV+ FlCfLslyEdqdhwjCNKBEZl0ig5lg5Wz5MZ2nfhX9Oscq0EElJw/lnRe0kbs/eCxh34UB w1aoJtBpLrImpLHXHihHVtxUbLTIgOW7KKrjmCvb6iehGrxSIxDRRReRCQC4Px8CzvVS hy0w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gtp-pandoc-discuss@m.gmane.org) smtp.mailfrom=gtp-pandoc-discuss@m.gmane.org Original-Received: from blaine.gmane.org ([195.159.176.226]) by gmr-mx.google.com with ESMTPS id f67si479229wme.1.2017.07.13.07.32.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jul 2017 07:32:01 -0700 (PDT) Received-SPF: neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gtp-pandoc-discuss@m.gmane.org) client-ip=195.159.176.226; Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dVf9l-0000Rf-LA for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Thu, 13 Jul 2017 16:31:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet-VEh2mgPqUsheXY1tMh2IBg@public.gmane.org X-Original-Sender: gtp-pandoc-discuss@m.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gtp-pandoc-discuss@m.gmane.org) smtp.mailfrom=gtp-pandoc-discuss@m.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:17904 Archived-At: Am Wed, 12 Jul 2017 13:43:54 +0200 schrieb John MacFarlane: > I can modify the LaTeX reader so it handles this special > case better. (A LaTeX control sequence must be a sequence > of letters -- here the '18' specifies a file handle, I > think.) > > In the mean time, try defining a macro synonym: > > \newcommand{\mywrite}[1]{\write18{#1}} > > and then use `\mywrite`. There is no need for an own command. Load the shellesc package and use \ShellEscape and \DelayedShellEscape instead of \immediate\write18 and \write18 -- it is recommended anyway as it has the benefit to also work with luatex where \write18 no longer exists. -- Ulrike Fischer http://www.troubleshooting-tex.de/