From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/20307 Path: news.gmane.org!.POSTED!not-for-mail From: Florian Cramer Newsgroups: gmane.text.pandoc Subject: Re: pandoc on cygwin's shell Date: Tue, 5 Jun 2018 03:31:43 -0700 (PDT) Message-ID: <23ae3775-6081-41ed-821f-965a87b8450c@googlegroups.com> References: <11f3d0c4-d3d1-4ec5-ba5f-c4fe6e05e052@googlegroups.com> <20170723073929.GA67976@macbook-air-2.home> <20170726071135.GA15440@Johns-MBP.home> <794616e3-f260-4656-b90a-563b820d5db1@googlegroups.com> <730d6fe9-cef2-4839-8090-c28ea609375a@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_13989_1182351147.1528194703435" X-Trace: blaine.gmane.org 1528194579 496 195.159.176.226 (5 Jun 2018 10:29:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 5 Jun 2018 10:29:39 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCQL5QHVQ4ERBEGN3HMAKGQEXPIF53I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jun 05 12:29:34 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot0-f185.google.com ([74.125.82.185]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQ9Da-0008TH-5R for gtp-pandoc-discuss@m.gmane.org; Tue, 05 Jun 2018 12:29:34 +0200 Original-Received: by mail-ot0-f185.google.com with SMTP id p41-v6sf1365999oth.5 for ; Tue, 05 Jun 2018 03:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=3C/vM++Mf/D0rsFgJ+TXu6zWL7fkzdz+0dXSqHiLJtQ=; b=QDw+53BbBAlTNZUpqejwcaoa3npyEPBPOsKOaOSshMy33i30Z/+IQYNZUp+IZodPXw pDOkUg00YJg2HvdOp3F1pkIadecqZWC3WtABn/eM+mjyyhSjy9YZeuZuMZgWirbSsyuv wiTpHGbZRciBFaoFf/FPo2XPpJsEQ3ekW/MuJIaRnJgcjcq+F12w9EQ9Lm7Qy9U2IQI0 h3WVBpyaL0wdk1y7rh2gwOHnUDqUd3qquVgWbNl6Ce25RCwXmi6YWZuRubDVrmwsmZ8c JSgR2PKuOLYkvF8D+w/+/sQ9t/JmCVCmq4AriFUzcvqnMmhtCwMdJVMIGKiNZDY2hTtA OLTw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=3C/vM++Mf/D0rsFgJ+TXu6zWL7fkzdz+0dXSqHiLJtQ=; b=B596wv3flBy+nwghyS8t0ziaqi3pcKp6ClMTDwVKnB7oNp05qIw0qDip/TFDgQuv+x X9+OAV+ff1WnEu+tCNYnYgNZArmolzEvCTf32wy3H7VO8ipf7di7ZRLqPfvBNo+mPygm 4Axf28scGC93tTl47nshNys9e/MxOWHk/quRhbXY1PCAvVv9q+NljZMQa5KwJH1Dpwra plTOOe/Fc0AUVGkhVPEDhXEUIDWjIc3D00tH7p/zBV4y6hVpOdebFQe+M2/ia/NS9oOC okPgFN+xVm9rWdCGMcWaMRQztON3PcsTqqWUTD3q22cJRAm9m/3B4BGnxT5H/2Y2QxoP Ks9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=3C/vM++Mf/D0rsFgJ+TXu6zWL7fkzdz+0dXSqHiLJtQ=; b=ZEibBopjOVwctXQByikUF1siAE3iINeHHSAY72jwoE4ItyWk+1tP/VBl9vbLgqwntD rcKe5mn4JwmhVtK6AQaloObm8tkE06WSVPVBeU1DdELSCDiXnvQEywmSqIBCmsguBZGL srt1/AP1MRVnVHJYCRGjVW1Xcfx8Cq1ZvZWl5wCkh7PyeWuPDbWQHdfCK9v22jxhjVeL ZwZA8ZZlcdFpNF+8+fwgfSMw4Q0XIDURMK7MAglwQX5oigcSImFg6IuJa1EtwCuEsOPH Jchf78G1ZvX35OJvPv5icr+5ke2K1GJ6DvdgvQmg8s316E94/RcmqIVv/BUNcPP+3VDU bjeg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ALKqPwdRwmCwT46+9tpflmHewmllP7SjmbBkxC3XqnW2hW2YBo2paS+1 g5wK230dF9Csv1KvT8jordo= X-Google-Smtp-Source: ADUXVKJ9/KmWCpRF+G0ScgKwkqb+UOmlkQ+zx+H0INxV4UAAopH34srKR8LgOSuJF7Zb2UbVrbWkmw== X-Received: by 2002:aca:d60f:: with SMTP id n15-v6mr595722oig.6.1528194705118; Tue, 05 Jun 2018 03:31:45 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:1c06:: with SMTP id c6-v6ls5063727oic.22.gmail; Tue, 05 Jun 2018 03:31:44 -0700 (PDT) X-Received: by 2002:aca:d984:: with SMTP id q126-v6mr440411oig.8.1528194703993; Tue, 05 Jun 2018 03:31:43 -0700 (PDT) In-Reply-To: <730d6fe9-cef2-4839-8090-c28ea609375a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: flrncrmr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:20307 Archived-At: ------=_Part_13989_1182351147.1528194703435 Content-Type: multipart/alternative; boundary="----=_Part_13990_442739603.1528194703435" ------=_Part_13990_442739603.1528194703435 Content-Type: text/plain; charset="UTF-8" Thanks a lot, Luis, for this workaround! However, I still have trouble getting it work. My steps are the following: 1) Create a shell (wrapper) script that invokes pdfroff (respectively any other needed executable): #!/bin/sh /cygdrive/c/cygwin64/bin/pdfroff $* Then compile this script into a Windows executable with shc: shc -f pdfroff.sh ...rename the resulting executable pdfroff.sh.x to pdfroff.exe and move it into a directory inside c:\ProgramFiles . (I also tried /usr/local/bin and the current working directory.) However, this is still doesn't work with pandoc; I still get the error message "pdfroff not found. Please select a different --pdf-engine or install pdfroff" On Friday, May 25, 2018 at 6:17:07 PM UTC+2, Luis Rivera wrote: > > > > On Friday, 25 May 2018 06:16:36 UTC-5, Florian Cramer wrote: >> >> Is there some practical fix for this issue in the meantime? Linking the >> Cygwin tex binaries into a Windows system directory or something similar? >> >> I've been struggling with this issue for quite a long time... (It also >> occurs when you try to use pdfroff as a backend for the PDF writer, with >> pdfroff being installed in Cygwin.) >> >> > pdfroff is a shell program; so what I've done is to compile it into an > executable with Javier Rosales's shell compiler [shc]( > http://www.datsi.fi.upm.es/~frosal/) and make pandoc happy: it checks for > and executable, it finds it, and then runs it. I've done the same for the > TeX family: originally, they are symiinks, so I wrapped the calls to each > of them (pdflatex, xelatex, lualatex) into shell programs and compiled > aliases accordingly. > > Hope that helps, > > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/23ae3775-6081-41ed-821f-965a87b8450c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_13990_442739603.1528194703435 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks a lot, Luis, for this workaround!

However, I still have trouble getting it work. My steps are the following= :

1) Create a shell (wrapper) script that invokes = pdfroff (respectively any other needed executable):


= #!/bin/sh<= br>

/cygdrive= /c/cygwin64/bin/pdfroff $*


Then compile this script into a= Windows executable with shc:

shc -f pdfroff.sh

...rename the = resulting executable pdfroff.sh.x to pdfroff.exe and move it into a directo= ry inside c:\ProgramFiles . (I also tried /usr/local/bin and the current wo= rking directory.)

However, this is still doesn'= ;t work with pandoc; I still get the error message "pdfroff not found.= Please select a different --pdf-engine or install pdfroff"
=


On Friday, May 25, 2018 at 6:17:07 PM UTC+2, Luis Ri= vera wrote:

On Friday, 25 May 2018 06:16:36 UTC-5, Florian Cramer wrote:
Is there some practical fi= x for this issue in the meantime? Linking the Cygwin tex binaries into a Wi= ndows system directory or something similar?=C2=A0

I'= ;ve been struggling with this issue for quite a long time... (It also occur= s when you try to use pdfroff as a backend for the PDF writer, with pdfroff= being installed in Cygwin.)


pdfroff is a shell program; so what I've done is to compile it in= to an executable with Javier Rosales's shell compiler [shc](http://www.datsi.fi.upm.es/~frosal/) and make pandoc h= appy: it checks for and executable, it finds it, and then runs it. I've= done the same for the TeX family: originally, they are symiinks, so I wrap= ped the calls to each of them (pdflatex, xelatex, lualatex) into shell prog= rams and compiled aliases accordingly.

Hope that h= elps,

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/23ae3775-6081-41ed-821f-965a87b8450c%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_13990_442739603.1528194703435-- ------=_Part_13989_1182351147.1528194703435--