From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26999 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Luis Rivera Newsgroups: gmane.text.pandoc Subject: Re: pdfroff invalid argument on cygwin Date: Tue, 24 Nov 2020 16:58:32 -0600 Message-ID: References: <385521f0-4f35-4b60-bc3d-245dc1eeed6fn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5295"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pandoc-discuss Original-X-From: pandoc-discuss+bncBDX2TPNZVQNBBJFA636QKGQEDLSDWBA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Nov 24 23:58:47 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f61.google.com ([209.85.128.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1khhGp-0001Ig-SC for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 24 Nov 2020 23:58:47 +0100 Original-Received: by mail-wm1-f61.google.com with SMTP id k23sf126466wmj.1 for ; Tue, 24 Nov 2020 14:58:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1606258727; cv=pass; d=google.com; s=arc-20160816; b=ncZUiDJTpNoFfCTdAfZBhNroFng8f/w2SJbdLLRQUJ/7se95kGTPcgjlFZX29+pedl UEXfMW30AlexhWOL/4cRtZeyF4QDHfbzmMU8QlfGP8flj97g9TK3T7Ej9ar1ibg94kqU WgTDNO1YC5jYVZ/CGeuf7K1+8qvcT3Xj/VYkWcIRv4DdrkLz5EfYoYyEYF4ZUMS2m4c2 cxA29chfkSkPmuhYGkwHvQPqDxosR2cYoIETA50d+1IP+SsuuLj+xX6TkvnAiUokpVMc bIxk+2DCRajvyHA0YiIQzx8gOl1zi/3rLIV31m1s3uBuus6+li0Dpv2b7MDcvwVRKL3F NO/Q== 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:reply-to:cc:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=9Kz5Grty3jlpvSIg3QXtiLU6yalcz7jEjdjHBdiLZmU=; b=yzvke0FYFuBF1Lk2z5TQekTdUmGxPxDIYJCKIUfVX17/oLz5q4agbd1QDUJLqHhQpr 5163zDranOX2PPDZRfRCzKxc1bHuKQgljZW6oVPFHfMV0KrxFooUU7UVbzAp1xNu6V+5 UPkb7Uoa8wvxGSOkQDfzYf6+fmwPv0j7xWY55s3hjou1rhtUGJfYpjF6PPYmNlKhqg36 6IvISIr9+OFtxN3DKXymrD4M9jnvIsvlJ5YiAOEoXGHoNpZbcJk2NNAKymAmYXV6Ct+F MH9IWEdNDfwM0YE10h+WYZzud7bteivjndvTfpmmyBqY++Puchms7SYsyUfKkho0bzEG 5Sxg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e7XIbh7f; spf=pass (google.com: domain of jlrn77-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::632 as permitted sender) smtp.mailfrom=jlrn77-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:cc:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=9Kz5Grty3jlpvSIg3QXtiLU6yalcz7jEjdjHBdiLZmU=; b=J/Miqq9R5d5KRUaQIh7/+dDHDDdNDBi1+mtcodyvhefavzfzkngINjHfXXfkT3F1uC kw2BHqU074IxqaInvszatRIypvjLXxcoUSewtKHVu0bGnbtNdEbcq7yBRrJ4Lr8psXOT vw+Hcd6GltasptdoUSMUnlnKjZMrfmn0YvVDT/tb0VpS8LbkKm9bxCZxhZu6V8jv2p3I OnF1Gtprj3u3BO30H24+F7wcTmeKrOJtqLPhfhCg5uLjsfnm7ivDnOQe42t7Fub3KwMl gNlIkwPeuFu9G7bcU1EQAnL381Np6hVDVOm9NkmviujSmdbj6uaPJ786MeGdXkQfmQKo rMog== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:cc :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=9Kz5Grty3jlpvSIg3QXtiLU6yalcz7jEjdjHBdiLZmU=; b=sncmcz2LQL0iy8RSb4kIA2FqbqpuqiUjjrVESVrbAsMXQiXoB7EZzah692uIe9jxQ1 zkrfKOiTrCBOsEndz2qCZg0j516/szZRjjyKBtXjscniy/pdZrz78Ke1Gl3I9ATPGfZV u791eXSEfMLE3Bra7XvGqOREHK8P6sJ3q1h80lq5FpUApcW95pFo1Rk/DZqqQPDdLSKd eFv8jJ/VcQB+ruPbWqJrym56lt1djqQeixSyOL+vW5Zep1OU4L2imcqL6WZXhco1/6+r f3InyAfxKze2LjVez30BLfZAKTczXPWSV04C+nWdMZxLzdir0ys7e6vDLoPjKmbEzpI3 3J5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:cc:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=9Kz5Grty3jlpvSIg3QXtiLU6yalcz7jEjdjHBdiLZmU=; b=LIcr+8rM/Da/2bCGUxmEtn0ky2MDgzub4L+jcM9hk5cIGqy0QuSQVCbfFbLXysqnLF OsYSHySb/UQrRjycW3jmeu+LI+T42xaXhPa91C9VuOXzfNNksPaRvIllQpy9OaDeRoP2 350fZgDFeQjwdR6tZoCEnOh+wWvjO3xbrWDwqVcjdf0D/mCIXk1u3iq2lzllmtI6qHTz GVo86AaBPBs5V25b05eR861s27VOAeCiYyGtVmfJ/wvMF2qHS43TN5XpOOK0Gn3OQEWS z2gYCz04MEWaKgVvXEknyqNbF1T73KatT3/bKyBO5hb685aKNKsrrntKsm60A0ZJ0QSA 3Uug== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532XNal6Sa0UXMiTeD0RWL0hXILt/8XSDnAwE8uZolaT2Kgnpr63 VnxfPLVRSZgLiGs2TMReg7E= X-Google-Smtp-Source: ABdhPJzFsV1EWrmLrQf6bpb6FmnFzu1miQqiM/nX2y7lU4jVhlQItQCTnC7W+eBtLYcE5o5rTjHTlA== X-Received: by 2002:a5d:4087:: with SMTP id o7mr768946wrp.27.1606258727564; Tue, 24 Nov 2020 14:58:47 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:adf:e5c2:: with SMTP id a2ls355235wrn.3.gmail; Tue, 24 Nov 2020 14:58:43 -0800 (PST) X-Received: by 2002:adf:dd04:: with SMTP id a4mr782195wrm.77.1606258723897; Tue, 24 Nov 2020 14:58:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606258723; cv=none; d=google.com; s=arc-20160816; b=RA/U8oxppOiCZZPFoFccHRgg0Wjz3mflrLB5uzLJbHonpf0UP3JOErrRtGni03bNNs oJM+67pVl2VgnFkFnCEqUsMpN5lEK3D1iQBOskUrU5S4Lz5/k3oorLOYzWMazs5HR7VC 70JjxdhIZuumyD0K+xQZLo7t0QD040qfLKVC4Uf3R/jyxxAtUeggdAUuIEUlB9LVMt6g vmCQusCXUru4UPVh4msJb0AGzNe+Z36UC+M6NyCTczzib0zOCi3vGCcwKTplxiZYcowu sG/nSlJ2Gm8+xNYbgtRBxCUFtG93DoLUl8XZAcHPaPaOcpG0WgOBGCozgeE4P/J0raX9 8zGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bgZCsSh2Q2aL+YNiZm7Pll/h8EHw6qci8otp79rdsK0=; b=ZLbyFCttS2/PMoWjWaXOU9uxrRhg2pv8VP+Z84MGjcXs7cWtJTJgrYhBmznDusYG9E 8yYgWcyG3rT1PrieDLXL9Nel8mMPJrUzftCTrglQA/tqtxFpmm46ZjJLfLuUSezw9RlN KtQ7mzFWAruajXRWNJnq2Xb25vRbTa0t41MEUV0GD/+V34sMPsZRxf7vP9qYUkj7roeh 7703GmjTjkDXwm8CT4UN8TrnWNrNAaTTpnTUDcEODY6Afr5fVjVsPMQrfR1V4NC4hAzA 6YlGyrjbq/2j8z3/KhWAeWefw3chfzzIE4lxDPlXDy3NUewQv1tCw8BDtv0YjMXsbywE VmOQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e7XIbh7f; spf=pass (google.com: domain of jlrn77-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::632 as permitted sender) smtp.mailfrom=jlrn77-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com. [2a00:1450:4864:20::632]) by gmr-mx.google.com with ESMTPS id o187si18914wma.2.2020.11.24.14.58.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Nov 2020 14:58:43 -0800 (PST) Received-SPF: pass (google.com: domain of jlrn77-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::632 as permitted sender) client-ip=2a00:1450:4864:20::632; Original-Received: by mail-ej1-x632.google.com with SMTP id i19so280704ejx.9 for ; Tue, 24 Nov 2020 14:58:43 -0800 (PST) X-Received: by 2002:a17:906:3687:: with SMTP id a7mr655401ejc.210.1606258723343; Tue, 24 Nov 2020 14:58:43 -0800 (PST) In-Reply-To: X-Original-Sender: jlrn77-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e7XIbh7f; spf=pass (google.com: domain of jlrn77-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::632 as permitted sender) smtp.mailfrom=jlrn77-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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.io gmane.text.pandoc:26999 Archived-At: Luis Rivera On Tue, 24 Nov 2020 at 12:03, John MacFarlane wrote: > > "jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" writes: > > > --verbose reports, on -t ms > > > > [makePDF] Command line: > > pdfroff "-ms" "-mpdfmark" "-mspdf" "-e" "-t" "-k" "-KUTF-8" "-i" > > > > while on -t latex > > > > [makePDF] Command line: > > pdflatex "-halt-on-error" "-interaction" "nonstopmode" "-output-directory" > > "./tex2pdf.-573d55defdd5e31a" "./tex2pdf.-573d55defdd5e31a/input.tex" > > > > So somehow the command line seems to be incomplete for the -ms option: it > > does not point to the input source. > > It's functioning as a pipe in this case; pandoc sends the text > of the source file to stdin in the process. > I tested with a busybox-w32 and a native windows port of groff with the same results. I fear the problem is that the windows executable I'm forced to use on Cygwin doesn't support pipes, or the pipe gets somehow broken. So, the workaround to fix this problem is by providing the pipe explicitly pandoc -s -t ms 3oc.md | pdfroff -KUTF-8 -ms -e -t -mpdfmark -mspdf - > 3oc.pdf A simple shell script does the job. The man page for groff implies that the call to -k with -K is redundant. Cheers,